/* === Estilos base === */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color:black;
  color: #f2f2f2;
  overflow-x: hidden;
}

/* === HEADER === */
header {
  background: linear-gradient(90deg, #ff5a00, #ffb200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

header img {
  height: 60px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  color: #222;
}

/* === SECCIÓN HERO === */
.hero {
  background: url('https://pin.it/5FfROlag2') center/cover;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3em;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px 25px;
  border-radius: 10px;
  max-width: 90%;
}

.hero button {
  background: #ff5a00;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: 20px;
}

.hero button:hover {
  background: #ff7a1a;
}

/* === TARJETAS DE SERVICIOS === */
.Caja {
  padding: 50px 5%;
  text-align: center;
}

.tarjetas-contenedor {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  flex-wrap: wrap;
  justify-content: center;
}

.tarjeta {
  position: relative;
  width: 320px;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
}

.tarjeta img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.tarjeta:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 1.2rem;
}

.overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.overlay p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.overlay a {
  color: #00ff88;
  text-decoration: none;
  font-weight: bold;
}

.overlay a:hover {
  text-decoration: underline;
}

/* === NAVEGACIÓN DE TARJETAS === */
.navegacion {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.navegacion button {
  background: #005eb8;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.navegacion button:hover {
  background: #004c8c;
}

/* === CARRUSEL DE MARCAS === */
.Barra {
  padding: 60px 20px;
  text-align: center;
  background-color: #111;
}

.marcas-carrusel {
  overflow: hidden;
  position: relative;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  background: #111;
  height: 150px;
  display: flex;
  align-items: center;
  border-radius: 10px;
}

.marcas-track {
  display: flex;
  gap: 40px;
  animation: scroll 25s linear infinite;
}

.marcas-track img {
  width: 180px;
  height: 80px;
  object-fit: contain;
  filter: brightness(1);
  transition: transform 0.3s, filter 0.3s;
}

.marcas-track img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Animación de desplazamiento continuo */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* === ENCABEZADO DE MARCAS === */
.marcas-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.marcas-header h2 {
  font-size: 1.8rem;
  color: #ffffff;
  width: 100%;
  text-align: center;
}

.btn-marcas {
  background-color: #00796b;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-marcas:hover {
  background-color: #005f52;
}

/* === FOOTER === */
footer {
  background: #1a1a1a;
  text-align: center;
  padding: 15px;
  color: #bbb;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px;
  }

  nav {
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .tarjetas-contenedor {
    flex-direction: column;
    align-items: center;
  }

  .marcas-carrusel {
    width: 95%;
  }
}