/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #a8a5a5f0;
  color: #1f2937;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
}

/* ================= NAVBAR ================= */
header {
  background: #0f172a;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  height: 110px; /* 👈 Aumentamos un poco de 100px a 110px */
}

.nav {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%; /* Ocupa los 80px del header */
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 110;
}

.logo-container:hover {
    transform: scale(1.02); /* Efecto sutil al pasar el mouse */
}

.logo-container img {
  height: auto; 
  width: 180px;
  object-fit: contain;
  /* Cambiamos margin-top por un posicionamiento más controlado */
  margin-top: 15px; 
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
  max-width: 100%; /* Evita que el logo sea más ancho que la pantalla */
}

.logo-container:hover img {
  transform: scale(1.05);
}

/* Ajuste de los links para que no se muevan */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 28px;
}

/* EL TEXTO AL LADO DEL LOGO */
.logo-container span {
    font-size: 1.5rem; /* Subimos de 1.2rem a 1.5rem para que combine con el logo grande */
    font-weight: 800;  /* Más negrita */
    color: #ffffff;
    letter-spacing: 0.5px;
}

.nav-links a {
    text-decoration: none;
    color: #a8a5a5f0; /* 👈 Color azul del botón Hero */
    font-weight: 700; /* Un poco más de grosor para que resalte */
    transition: 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

/* CONTACTO EN NAVBAR */
.nav-contact {
    display: flex;
    flex-direction: column; /* Apilados uno sobre otro para que ocupen menos ancho */
    gap: 4px;
    font-size: 0.85rem;
    color: #cbd5f5;
    margin-left: auto; /* Empuja todo a la derecha */
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinea texto e icono a la derecha */
    gap: 8px;
}

.contact-item i {
    color: #2563eb; /* Color azul para resaltar los iconos */
    font-size: 1rem;
}

.contact-item span {
    font-weight: 500;
}

/* AJUSTE RESPONSIVE: Ocultar contacto en móviles para no colapsar el menú */
@media (max-width: 992px) {
    .nav-contact {
        display: none;
    }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 80vh; /* Aumentamos un poco la altura para que luzca la foto */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding: 180px 24px 80px 24px; 
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* CAMBIO CLAVE: background-size: contain evita que se corte la foto */
  /* Pero para que no queden huecos blancos, usamos 'cover' con una posición manual */
  background-size: cover; 
  background-position: center bottom; /* Mantiene la base de la foto (el suelo/container) visible */
  background-repeat: no-repeat;
  transition: opacity 1.5s ease;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn {
  background: white;
  color: #2563eb;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #e5e7eb;
}

/* ================= INFO CARDS ================= */
.section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: center;
}

.card i {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 12px;
}

/* ================= RESEÑAS ================= */
.reviews-section {
  max-width: 1200px;
  margin: auto;
  padding: 90px 24px;
  text-align: center;
}

.reviews-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #0f172a;
}

.reviews-subtitle {
  color: #4b5563;
  margin-bottom: 50px;
  font-size: 1.05rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.review-card {
  background: white;
  padding: 35px;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.stars {
  color: #facc15;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.review-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 20px;
}

.review-card span {
  font-weight: bold;
  color: #111827;
}

.reviews-link {
  display: inline-block;
  margin-top: 55px;
  font-weight: bold;
  color: #2563eb;
  text-decoration: none;
  font-size: 1.05rem;
}

.reviews-link:hover {
  text-decoration: underline;
}

/* ================= SECCIÓN DESTACADA ================= */
.custom-section {
  max-width: 1200px;
  margin: auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.custom-section img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.custom-text h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  color: #111827;
}

.custom-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 25px;
}

.custom-text a {
  display: inline-block;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.custom-text a:hover {
  background: #020617;
  transform: translateY(-2px);
}

/* --- Ajuste para el Efecto Z --- */

/* 1. Aseguramos que todas las custom-section tengan imágenes del mismo alto */
.custom-section img {
    width: 100%;
    height: 450px;      /* Forzamos altura igual en ambas secciones */
    object-fit: cover;  /* Para que no se estire la foto */
    border-radius: 16px;
}

/* 2. Invertimos el orden solo en la sección de transporte en computadores */
@media (min-width: 769px) {
    .transporte-z {
        direction: ltr; 
    }
    
    .custom-section:not(.transporte-z) {
        direction: rtl;
    }

    .custom-text {
        direction: ltr;
    }
}

/* 3. Ajuste para celulares (que se vea la imagen arriba siempre) */
@media (max-width: 768px) {
    .custom-section img {
        height: 300px; /* Un poco más pequeña en celular */
    }
}

/* ================= FOOTER ================= */
footer {
  background: #0f172a;
  color: #d1d5db;
  padding: 40px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-left a {
  color: #93c5fd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.footer-left a:hover {
  color: #ffffff;
}

.footer-right-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: right;
}

.footer-title {
  font-weight: bold;
  color: #ffffff;
}

.footer-contact-item a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #d1d5db;
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: #ffffff;
}

.footer-contact-item i {
  font-size: 1.7rem;
  color: #93c5fd;
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.85rem;
  margin-top: 20px;
  color: #9ca3af;
}

/* CONTACTO DEBAJO DE DIRECCIÓN EN FOOTER */
.footer-contact-info {
    margin-top: 20px; /* Espacio respecto a la dirección */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db; /* Color gris suave del footer */
    font-size: 0.95rem;
}

.contact-item-footer i {
    color: #93c5fd; /* El azul claro que usas en los iconos del footer */
    font-size: 1.1rem;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .contact-item-footer {
        justify-content: center; /* Centra el texto en celulares */
    }
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  color: white;
}

/* ================= CATÁLOGO ================= */
.catalogo-hero {
  text-align: center;
  /* Aumentamos el padding para que el contenedor sea más alto y la foto se vea más */
  padding: 160px 20px 100px 20px; 
  
  background-image: url("../img/fondo.png");
  background-size: cover;
  background-position: center 90%; /* Centrado total */
  background-repeat: no-repeat;
  
  color: white;
  position: relative;
  min-height: 450px; /* Le damos una altura mínima para asegurar que luzca la imagen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.catalogo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.catalogo-hero h1,
.catalogo-hero p {
  position: relative;
  z-index: 2;
}

.catalogo-hero h1 {
  font-size: 3rem;
  letter-spacing: 1px;
}

.categoria {
  max-width: 1200px;
  margin: auto;
  padding: 50px 20px;
  transition: opacity 0.3s ease;
}

.categoria h2 {
  margin-bottom: 20px;
  color: #111827;
}

.categoria h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  border-left: 6px solid #2563eb;
  padding-left: 14px;
  color: #0f172a;
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.producto h3 {
  margin: 15px 10px 5px;
}

.producto p {
  color: #4b5563;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* ================= PRODUCTOS MEJORADOS ================= */

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.producto {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 55px rgba(0,0,0,0.15);
}

.producto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.producto h3 {
  font-size: 1.2rem;
  margin: 18px 12px 6px;
  color: #0f172a;
}

.producto p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 15px;
  padding: 0 12px;
}

.btn-whatsapp {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: 0.3s ease;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}

/* ================= PRODUCTO HORIZONTAL ================= */

.producto-horizontal {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr; 
    gap: 40px; 
    background: white;
    border-radius: 18px;
    padding: 30px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 40px auto;
}

.producto-horizontal img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid #e5e7eb;
}

.producto-info h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 15px;
}

.producto-info ul {
  padding-left: 18px;
  margin-bottom: 20px;
}

.producto-info li {
  margin-bottom: 6px;
  color: #374151;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .producto-horizontal {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .producto-info ul {
    text-align: left;
  }
}

.variantes {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.variantes button {
  background: #f1f5f9;
  border: 2px solid #e5e7eb;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

.variantes button:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: scale(1.05);
}

.lista-productos {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.producto-info li {
  line-height: 1.6;
}


.variantes-detalle {
  margin: 20px 0;
  border-top: 1px solid #e5e7eb;
  padding-top: 15px;
}

.variantes-detalle summary {
  cursor: pointer;
  font-weight: bold;
  color: #0f172a;
  background: #f1f5f9;
  padding: 12px 18px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s ease;
}

.variantes-detalle summary:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.variantes-detalle summary::-webkit-details-marker {
  display: none;
}

.variantes-opciones {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.variantes-detalle summary::after {
  content: "▼";
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.variantes-detalle[open] summary::after {
  transform: rotate(180deg);
}

.variantes-detalle {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px dashed #e5e7eb;
} 

.variantes-opciones button {
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;            /* 👈 cambia el cursor */
  font-weight: 600;
  transition: all 0.25s ease; /* animación suave */
}

.variantes-opciones button:hover {
  background-color: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
  transform: scale(1.05);     /* 👈 pequeño zoom */
}

.variantes-opciones button.activo {
  background-color: #25D366;
  color: white;
  border-color: #1ebe5d;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.galeria-producto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.galeria-producto img {
    width: 100%;
    height: 350px;             /* Altura fija para que todas las cards midan lo mismo */
    object-fit: contain;       /* 👈 ESTO hace que la foto se vea COMPLETA, sin cortes */
    background-color: #f5f5f5; /* El fondo gris que rellena los bordes */
    border-radius: 15px;
    border: 3px solid #e5e7eb;
    padding: 10px;             /* Un pequeño aire interno para que la foto no toque los bordes */
}

.miniaturas {
    display: flex;
    gap: 12px;
    justify-content: flex-start; /* Alineadas a la izquierda con la foto */
    margin-top: 15px;
}

.miniaturas img {
    width: 80px; /* Un poco más grandes */
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: 0.3s ease;
}

.miniaturas img:hover {
  border-color: #2563eb;
  transform: scale(1.1);
}

#buscador {
  width: 100%;
  max-width: 500px;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.botones-filtro button:hover {
  background: #444;
}

.producto-oculto {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  overflow-x: hidden;
}

.filtros-catalogo {
  max-width: 380px;
  margin: 30px 60px 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-right: 10px;
}

.filtros-catalogo input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.filtro-desplegable {
  position: relative;
}

.btn-filtrar {
  background: #111;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.menu-filtro {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  width: 200px;
  max-width: 90vw;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 100;
}

.menu-filtro.activo {
  display: block;
}

.menu-filtro button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: white;
  cursor: pointer;
  text-align: left;
}

.menu-filtro button:hover {
  background: #f2f2f2;
}

.producto-horizontal {
  transition: all 0.35s ease;
  opacity: 1;
  transform: scale(1);
}

.producto-oculto {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.producto-horizontal {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de entrada suave */
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clase que aplicaremos por JavaScript */
.animar-cambio {
  animation: aparecer 0.4s ease forwards;
}

@keyframes entradaSuave {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Esta clase se activará sola */
.animar-ahora {
  animation: entradaSuave 0.5s ease-out forwards;
}

/* SECCIÓN GALERÍA */
.galeria-proyectos {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
    text-align: center;
}

.galeria-proyectos h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 40px; /* 👈 AÑADE ESTA LÍNEA (puedes subir a 50px si quieres más espacio) */
}

.galeria-subtitle {
    color: #4b5563;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* LA CARD */
.proyecto-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

/* EL CARRUSEL */
.carousel-container {
    position: relative;
    height: 280px;            /* Subimos un poco el alto para que luzca más */
    overflow: hidden;
    background-color: #f5f5f5; /* El mismo gris suave de tu catálogo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: flex;            /* Flex para centrar la imagen */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;     
    padding: 10px;     
}

/* BOTONES DE NAVEGACIÓN (Solo aparecen al hacer hover) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.2rem;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

.proyecto-card:hover .nav-btn {
    opacity: 1;
}

.nav-btn:hover { background: #2563eb; color: white; }
.nav-btn.prev { left: 15px; }
.nav-btn.next { right: 15px; }

/* TEXTO DE LA CARD */
.proyecto-info {
    padding: 25px;
}

.proyecto-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #1e293b;
}

.link-ver {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.link-ver:hover { border-bottom-color: #2563eb; }

@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* SECCIÓN TRANSPORTE */
.transporte-section {
    padding: 80px 0;
    background-color: #f8fafc; /* Un gris muy suave para diferenciarlo */
}

.transporte-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 0 24px;
}

.transporte-image {
    flex: 1;
}

.transporte-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.transporte-text {
    flex: 1;
}

.transporte-text h2 {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.transporte-text p {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.transporte-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.transporte-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 500;
}

.transporte-list i {
    color: #2563eb; /* El azul de tu marca */
    font-size: 1.2rem;
}

/* Responsive: En celulares la foto va arriba y el texto abajo */
@media (max-width: 768px) {
    .transporte-container {
        flex-direction: column;
        text-align: center;
    }
    
    .transporte-text h2 {
        font-size: 2rem;
    }

    .transporte-list li {
        justify-content: center;
    }
}

/* ================= MÉTODOS DE PAGO ================= */

.footer-payments {
    grid-column: 1 / -1; 
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-payments p {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #93c5fd;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.img-pagos {
    max-width: 350px; /* Ajusta este ancho según cómo quieras que se vea */
    width: 100%;      /* Para que sea responsive en celulares */
    height: auto;
    filter: brightness(0.9); /* Opcional: la oscurece un pelito para que pegue con el fondo oscuro */
    border-radius: 8px;
}

/* Ajuste para que en celulares no quede pegada a los bordes */
@media (max-width: 768px) {
    .img-pagos {
        max-width: 280px;
    }
}

.container-btn-catalogo {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-catalogo-central {
    background-color: #2563eb;
    color: white;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-catalogo-central:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
}

/* ================= SECCIÓN SOBRE NOSOTROS ================= */
.sobre-nosotros-seccion {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.contenedor-nosotros {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.nosotros-imagen {
    position: relative;
}

.nosotros-imagen img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    position: relative;
    z-index: 2;
}

.decoracion-borde {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    border-top: 6px solid #2563eb;
    border-left: 6px solid #2563eb;
    z-index: 1;
}

.subtitulo-marca {
    color: #2563eb;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.nosotros-texto h2 {
    font-size: 2.8rem;
    color: #0f172a;
    margin-bottom: 25px;
}

.nosotros-texto p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

.pilares-nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 35px;
}

.pilar i {
    font-size: 1.8rem;
    color: #2563eb;
    margin-bottom: 10px;
    display: block;
}

.pilar h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #0f172a;
}

.pilar p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.innovacion-box {
    margin-top: 40px;
    padding: 20px;
    background-color: #f1f5f9;
    border-radius: 12px;
    border-left: 5px solid #2563eb;
}

/* Responsive */
@media (max-width: 992px) {
    .contenedor-nosotros {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .nosotros-imagen {
        max-width: 500px;
        margin: 0 auto;
    }
    .pilares-nosotros {
        text-align: left;
    }
    .nosotros-texto h2 {
        font-size: 2.2rem;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  /* --- NAVBAR Y LOGO --- */
  header {
    height: auto; 
    padding: 15px 0;
    position: absolute; /* Mantenemos absolute para que no se mueva */
  }

  .nav {
    flex-direction: column;
    gap: 15px;
    height: auto;
  }

  .logo-container img {
    height: 80px;      
    margin-top: 0;     
  }

  .nav-links {
    position: static;
    transform: none;
    display: flex;
    flex-wrap: wrap;   
    justify-content: center;
    gap: 15px;
    width: 100%;
  }

  /* --- HERO (Ajustado para ver el título) --- */
  .hero {
    padding-top: 220px; /* Suficiente espacio para que baje el título */
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  /* --- SECCIONES Y EFECTO Z EN MÓVIL --- */
  /* En móvil, el efecto Z se quita para que sea cómodo de leer (Imagen arriba, texto abajo) */
  .custom-section, 
  .transporte-container {
    grid-template-columns: 1fr;
    flex-direction: column; 
    text-align: center;
    gap: 30px;
    direction: ltr; /* Reset de dirección para que no se vea raro */
  }

  .custom-section img, 
  .transporte-image img {
    height: 300px; 
    order: -1; /* Fuerza a la imagen a estar siempre arriba del texto */
  }

  .producto-horizontal {
    grid-template-columns: 1fr;
    max-width: 100%;
    text-align: center;
    padding: 20px;
  }

  /* --- FOOTER --- */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .footer-right-block, 
  .footer-left {
    align-items: center;
    text-align: center;
  }

  .footer-contact-item a {
    justify-content: center;
  }
  
  .catalogo-hero {
    padding-top: 200px; /* Más espacio para que el logo/menú no tapen el título */
    min-height: 350px;
    background-position: center center;
  }
  
  .catalogo-hero h1 {
    font-size: 2.2rem; /* Achicamos un poco el texto para que no use tantas líneas */
  }

}

@media (min-width: 1200px) {
    .hero {
        min-height: 90vh; /* En pantallas grandes, le damos más altura para que la foto respire */
    }
    .hero-bg {
        background-position: center center; /* En PC la centramos mejor */
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh; /* En móviles bajamos la altura para que la foto no se estire infinito */
        padding-top: 180px;
    }
    .hero-bg {
        background-position: center; /* Centramos el objeto principal en móvil */
    }
}

/* ================= CORRECCIÓN DISEÑO CATÁLOGO MÓVIL ================= */
@media (max-width: 768px) {
    /* 1. Cambiamos el Grid a una sola columna */
    .producto-horizontal {
        grid-template-columns: 1fr; /* Una columna */
        gap: 20px; /* Reducimos el espacio entre elementos */
        padding: 15px; /* Menos padding para aprovechar el ancho */
        margin: 0 10px 30px 10px; /* Márgenes laterales para no pegar al borde */
    }

    /* 2. Ajuste de la Galería Principal */
    .galeria-producto {
        width: 100%;
    }

    .galeria-producto img {
        height: auto; /* Altura automática para que la imagen no se estire */
        max-height: 250px; /* Limitamos la altura máxima */
        object-fit: cover; /* Aseguramos que la imagen cubra el área */
        border-width: 2px; /* Borde un poco más fino */
    }

    /* 3. Ajuste de Miniaturas (Este es el punto clave del desorden) */
    .miniaturas {
        display: flex;
        flex-wrap: wrap; /* Importante: permite que bajen a la siguiente fila */
        gap: 8px; /* Espacio pequeño entre ellas */
        justify-content: center; /* Centradas */
        margin-top: 10px;
    }

    .miniaturas img {
        width: 60px; /* Tamaño más pequeño para que quepan más */
        height: 50px;
        border-width: 1px;
    }

    /* 4. Ajuste de la Información del Producto */
    .producto-info {
        text-align: left; /* Alineamos el texto a la izquierda para mejor lectura */
        padding: 0 5px;
    }

    .producto-info h3 {
        font-size: 1.3rem; /* Título un poco más pequeño */
        margin-bottom: 10px;
        text-align: center; /* Centramos solo el título */
    }

    .producto-info ul {
        padding-left: 20px; /* Recuperamos el padding de la lista */
        margin-bottom: 15px;
    }

    .producto-info li {
        font-size: 0.9rem; /* Texto de lista un pelo más pequeño */
        line-height: 1.5; /* Mejoramos el interlineado */
        margin-bottom: 8px;
    }

    /* 5. Ajuste de Botones y Desplegables */
    .variantes-detalle summary {
        width: 100%; /* El botón desplegable ocupa todo el ancho */
        justify-content: center; /* Centramos el texto y la flecha */
    }

    .variantes-opciones {
        justify-content: center; /* Centramos las opciones de variantes */
    }

    .btn-whatsapp {
        width: 100%; /* El botón de cotizar ocupa todo el ancho */
        text-align: center;
        margin-bottom: 10px;
    }
}