:root {
  /* FONDO BEIGE */
  /* CAMBIO: Restaurado el color beige */
  --color-fondo: #F7F0E6;
  /* Beige Claro / Crema (Lienzo principal) */

  /* GAMA DE CAFÉS (Monocromático) */
  --color-texto: #4A352A;
  /* Café Oscuro Profundo (Texto principal) */
  --color-principal: #8B5E3C;
  /* Marrón Tierra (Botones, títulos) */
  --color-secundario: #C3976C;
  /* Camel Suave (Acentos de borde, líneas) */
  --color-texto-secundario: #7E6D5F;
  /* Taupe / Café-Grisáceo (Texto secundario) */
  --color-footer: #3D2C20;
  /* Marrón Muy Oscuro (Footer, anclaje) */

  /* ACENTO DE CAFÉ (Para iconos) */
  --color-acento: #A1662F;
  /* Marrón Cobre / Coñac (Iconos) */

  /* COMPLEMENTARIO */
  --color-blanco: #FFFFFF;
  /* Blanco puro (Para contrastes) */
}

/* ==============================
   2. ESTILOS GLOBALES / BODY
============================== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  /* CAMBIO: El fondo de la página ahora es BLANCO */
  background-color: var(--color-blanco);
  color: var(--color-texto);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-texto);
  font-weight: 600;
}


/* ==============================
   3. NAVBAR
============================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  background-color: var(--color-blanco);
  position: fixed;
  overflow: visible;
  /* 🔹 Fijo en la pantalla */
  top: 0;
  left: 0;
  width: 100%;
  /* 🔹 Que abarque todo el ancho */
  z-index: 1000;
  /* 🔹 Encima de todo */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-container img {
  width: 50px;
  height: auto;
}

.logo-container h2 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-texto);
  margin: 0;
}



header nav a {
  position: relative;
  /* Necesario para posicionar la línea */
  margin: 0 8px;
  text-decoration: none;
  color: var(--color-texto);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 10px;
  /* Eliminamos border-radius ya que no es un botón de fondo */
  transition: color 0.3s ease;
}

/* Esta es la configuración de la línea (inicialmente invisible/ancho 0) */
header nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  /* Grosor de la línea */
  bottom: 2px;
  /* Posición desde abajo */
  left: 50%;
  /* Para que crezca desde el centro (opcional) */
  background-color: var(--color-acento);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  /* Centrar el punto de origen */
}

/* Efecto Hover */
header nav a:hover,
header nav a:active {
  color: var(--color-acento);
  /* El texto cambia al color acento */
  background-color: transparent;
  /* Nos aseguramos de que no haya fondo */
}

/* Animación de la línea al hacer hover */
header nav a:hover::after,
header nav a:active::after {
  width: 100%;
  /* La línea se expande al 100% del ancho */
}

/* El botón CTA se mantiene igual, solo asegúrate de que no entre en conflicto */
.btn-cta {
  background-color: var(--color-principal);
  color: var(--color-blanco);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95rem;
}


/* Si quieres que el botón NO tenga la línea de abajo, añade esto: */


/* ===============================
   MEGA MENU PREMIUM - ESCRITORIO
   =============================== */

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;

  position: absolute;
  top: 110%;
  right: 0;              /* 🔥 clave */
  left: auto;            /* 🔥 quitamos el centrado */
  transform: translateY(-10px);

  width: 1000px;         /* ajusta si quieres */
  max-width: 95vw;

  padding: 30px;

  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2000;
}


/* ACTIVACIÓN */
.dropdown-content.show {
 opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}


/* COLUMNAS */
.mega-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* TÍTULOS */
.mega-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-acento);
  border-bottom: 1px solid rgba(166, 124, 82, 0.2);
  padding-bottom: 8px;
}

/* LINKS */
.dropdown-content a {
  color: var(--color-texto);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

/* EFECTO MODERNO HOVER */
.dropdown-content a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 70%;
  background: var(--color-acento);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.dropdown-content a:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.dropdown-content a:hover {
  background: #F7F0E6;
  color: var(--color-acento);
  padding-left: 18px;
}

/* BOTÓN ACTIVO */
.dropbtn.active-color {
  color: var(--color-acento);
}


/* =========================================
   HEADER Y NAV
   ========================================= */

.menu-toggle {
  display: none;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;

  position: static;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  border: none;
  padding: 0;
}

.nav-links a {
  color: var(--color-texto);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-acento);
}
.btn-volver {
  display: none;
}
/* ==============================
   4. HERO
============================== */
.hero {
  height: 100vh;
  background: url('../contenido/fondopag.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-blanco);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 4rem;
  margin: 0 0 20px 0;
  font-weight: 700;
  color: var(--color-blanco);
}

.hero-text p {
  font-size: 1.5rem;
  margin: 0 0 25px 0;
  color: var(--color-blanco);
}

.hero-text a.btn-cta {
  font-size: 1.2rem;
  padding: 12px 25px;
  border-radius: 25px;
}

/* Animación de entrada hero */
.hero-text h1,
.hero-text p,
.hero-text a {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(3px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

/* ==============================
   5. SECCIONES GENERALES
============================== */
.caracteristicas,
.servicios,
.trabajos,
.carrusel-auto {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* ==============================
   6. CARACTERÍSTICAS
============================== */
.caracteristicas {
  padding: 60px 20px;
  /* CAMBIO: Se vuelve transparente para mostrar el fondo blanco del body */
  background-color: transparent;
  text-align: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--color-texto);
  font-weight: bold;
}

.caracteristicas-destacadas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.caracteristica-item {
  /* CAMBIO: La tarjeta es BEIGE */
  background: var(--color-fondo);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease, filter 0.8s ease;
  opacity: 0;
  transform: translateY(50px);
}

.caracteristica-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.caracteristica-item i {
  font-size: 2.2rem;
  color: var(--color-acento);
  margin-bottom: 15px;
}

.caracteristica-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-texto);
}

.caracteristica-item p {
  font-size: 0.95rem;
  color: var(--color-texto-secundario);
  line-height: 1.5;
}

.caracteristica-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* ==============================
   7. CARRUSEL AUTOMÁTICO (DETALLADO)
============================== */
.carrusel-auto {
  background-color: var(--color-blanco);
  /* CAMBIO 1: Quitado el padding lateral (5%) para que ocupe todo el ancho */
  padding: 80px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.carrusel-auto .section-title {
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--color-texto);
  font-weight: bold;
}

.carrusel-auto-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  /* CAMBIO 2: Eliminada la restricción de ancho */
  /* max-width: 1200px; */
  margin: 0 auto;
}

.carrusel-auto-track {
  display: flex;
  gap: 50px;
  animation: moverCarrusel 28s linear infinite;
  will-change: transform;
}

.carrusel-auto-item {
  flex: 0 0 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* CAMBIO 3: Eliminado el filtro grayscale para que siempre tenga color */
  /* filter: grayscale(100%); */
  transition: all 0.4s ease;
}

.carrusel-auto-item img {
  width: 160px;
  height: auto;
  transition: transform 0.4s ease;
  border-radius: 10px;
}

.carrusel-auto-item:hover {
  /* CAMBIO 4: Se quita el filtro, pero se mantiene el zoom */
  /* filter: grayscale(0%); */
  transform: scale(1.07);
}

/* Movimiento del carrusel automático */
@keyframes moverCarrusel {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==============================
   8. SERVICIOS (VERSIÓN MÁS LIMPIA Y COMPACTA)
============================== */
.servicios {
  padding: 80px 20px;
  background-color: transparent;
  text-align: center;
  border-radius: 15px;
}

.servicios .section-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 50px;
  color: var(--color-texto-secundario);
}

/* Grid de tarjetas: CAMBIO */
.servicios-fila {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 50px auto;
}

/* Tarjeta: CAMBIO */
.servicio-tarjeta {
  /* CAMBIO: La tarjeta es BEIGE */
  background: var(--color-fondo);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Iconos: CAMBIO */
.servicio-tarjeta i {
  font-size: 2.2rem;
  color: var(--color-acento);
  margin: 0 0 15px 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Título: CAMBIO */
.servicio-tarjeta h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-texto);
}

/* Párrafo: CAMBIO */
.servicio-tarjeta p {
  font-size: 1rem;
  color: var(--color-texto-secundario);
  line-height: 1.5;
  padding: 0;
}

/* Hover: CAMBIO */
.servicio-tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.servicio-tarjeta:hover i {
  color: var(--color-secundario);
  transform: scale(1.1);
}

/* ==============================
   9. PROCESO / TIMELINE (CON TARJETAS DE VIDRIO)
============================== */

/* (Esta sección no usa --color-fondo, así que no necesita cambios) */

.proceso {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../contenido/fondoProceso.jpeg') center/cover no-repeat fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.proceso .section-title {
  color: var(--color-blanco);
}


.proceso-timeline {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 60px;
  max-width: 1200px;
  margin: 60px auto 0;
  position: relative;
  flex-wrap: wrap;
}

.proceso-timeline::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--color-principal);
  z-index: 0;
  border-radius: 2px;
  top: 90px;
}

.proceso-step {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 20px;
  width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  position: relative;
  transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.8s ease;
  opacity: 0;
  transform: translateY(50px);
}

.proceso-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.proceso-step .numero {
  background: var(--color-principal);
  color: var(--color-blanco);
  font-weight: bold;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.proceso-step .icono {
  background: linear-gradient(135deg, var(--color-principal), var(--color-secundario));
  color: var(--color-blanco);
  font-size: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proceso-step:hover .icono {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.proceso-step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-blanco);
}

.proceso-step p {
  font-size: 0.95rem;
  color: var(--color-blanco);
  opacity: 0.9;
  line-height: 1.4;
  flex-grow: 1;
}

/* ==============================
   9.1. PROCESO (Responsive)
============================== */

@media (max-width: 1100px) {

  .proceso-timeline {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .proceso-timeline::before {
    top: 90px;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: auto;
    right: auto;
  }
}

@media (max-width: 500px) {
  .proceso-step {
    width: 100%;
    max-width: 300px;
  }
}

/* ==============================
   10. CARRUSEL (MANUAL / TRABAJOS) - ACTUALIZADO
============================== */
.trabajos {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  /* overflow: hidden; <-- Se mantiene comentado como en tu original */
}

.carrusel {
  position: relative;
  margin-top: 20px;
}

/* Visor para ocultar las fotos que se salen */
.carrusel-viewport {
  position: relative;
  overflow: hidden;
  /* Importante para touch: evita que seleccione texto al arrastrar */
  user-select: none;
  -webkit-user-select: none;
}

.carrusel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s ease-in-out;
  /* Mejora táctil: permite scroll vertical de la página mientras tocas el carrusel */
  touch-action: pan-y pinch-zoom;
}

.carrusel-item {
  flex: 0 0 auto;
  width: calc((100% - 40px) / 3);
  min-width: 250px;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease, box-shadow 0.5s ease;
}

.carrusel-item.visible {
  transform: translateY(0);
  opacity: 1;
}

.carrusel-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.5s ease;
  cursor: pointer;
  /* Para que salga la manita al pasar el mouse */

  /* Agregamos esto para que al deslizar en móvil no se arrastre la imagen "fantasma" */
  -webkit-user-drag: none;
  
}

.carrusel-item:hover img {
  transform: scale(1.05);
}

.carrusel-item .overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.65);
  color: var(--color-blanco);
  font-size: 1em;
  text-align: center;
  transition: bottom 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  border-radius: 0 0 15px 15px;
}

.carrusel-item:hover .overlay {
  bottom: 0;
  opacity: 1;
}

.carrusel-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* --- BOTONES DEL CARRUSEL --- */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--color-blanco);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.carrusel-btn.prev {
  left: -60px;
}

.carrusel-btn.next {
  right: -60px;
}

.carrusel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.08);
}

/* =========================================
   NUEVO: INDICADORES (PUNTITOS)
========================================= */
.carrusel-indicadores {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  /* Separación de las fotos */
  width: 100%;
  position: relative;
  z-index: 10;
}

.indicador {
  width: 10px;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  /* Gris inactivo */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Estado Activo del punto */
.indicador.activo {
  background-color: var(--color-blanco, #fff);
  /* Blanco activo */
  transform: scale(1.3);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* =========================================
   RESPONSIVE DEL CARRUSEL
========================================= */
@media (max-width: 1050px) {
  .carrusel-item {
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 750px) {
  .carrusel-track {
    gap: 15px;
  }

  .carrusel-item {
    width: 100%;
    min-width: 220px;
  }

  .carrusel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {

  /* Espacio extra abajo para que el dedo no tape los puntos */
  .trabajos {
    padding-bottom: 60px;
  }

  .carrusel-item img {
    height: 240px;
  }

  .carrusel-item .overlay {
    font-size: 0.9rem;
    padding: 10px;
  }

  /* En móvil, los botones bajan un poco, pero mantenemos tu diseño */
  .carrusel-btn {
    top: 92%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
  }

  .carrusel-btn.prev {
    left: 20px;
  }

  .carrusel-btn.next {
    right: 20px;
  }

  /* Hacemos los puntos un poco más grandes para touch */
  .indicador {
    width: 12px;
    height: 12px;
  }
}

/* ==============================
   11. LIGHTBOX (IMÁGENES)
============================== */

/* === CAMBIO 2a: Ajuste para Navbar Fijo === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 999;
  flex-direction: column;

  /* RECUERDA: Ajusta este padding-top (100px) 
    a la altura de tu navbar + un margen 
  */
  padding: 100px 20px 20px 20px;
  box-sizing: border-box;
}

/* === FIN DEL CAMBIO 2a === */


.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0;
  transform: scale(0.95);
}

.lightbox img.active {
  opacity: 1;
  transform: scale(1);
}

.lightbox .overlay-text {
  color: var(--color-blanco);
  font-size: 1.2rem;
  text-align: center;
  margin-top: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lightbox.active .overlay-text {
  opacity: 1;
  transform: translateY(0);
}


/* === CAMBIO 2b: Bajar el botón 'X' === */
.lightbox .close-btn {
  position: absolute;
  /* RECUERDA: Ajusta este 'top' (100px) 
    para que coincida con el padding de arriba 
  */
  top: 100px;
  right: 30px;
  font-size: 2rem;
  color: var(--color-blanco);
  cursor: pointer;
  font-weight: bold;
  z-index: 1000;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* === FIN DEL CAMBIO 2b === */


.lightbox .close-btn:hover {
  color: #f1f1f1;
  transform: scale(1.2);
}

.lightbox-img-transition {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-img-transition.active {
  opacity: 1;
  transform: scale(1);
}

/* BOTONES LIGHTBOX (Sin cambios) */
.lightbox .prev-btn,
.lightbox .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(139, 94, 60, 0.8);
  backdrop-filter: blur(8px);
  color: var(--color-blanco);
  font-size: 2rem;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--color-secundario);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 20;
}

.lightbox .prev-btn:hover,
.lightbox .next-btn:hover {
  background: var(--color-secundario);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.lightbox .prev-btn {
  left: 15px;
}

.lightbox .next-btn {
  right: 15px;
}

/*  RESPONSIVE LIGHTBOX */
@media (max-width: 600px) {
  .lightbox img {
    max-width: 100%;
    max-height: 65%;
  }

  .lightbox .prev-btn,
  .lightbox .next-btn {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .lightbox .close-btn {
    /* Mantenemos el 'top' ajustado de 100px */
    top: 100px;
    font-size: 1.8rem;
    right: 20px;
  }
}

@media (max-width: 400px) {
  .lightbox .overlay-text {
    font-size: 1rem;
  }
}

/* ==============================
   12. CTA FINAL (Corregido)
============================== */
.cta-final {
  padding: 50px;
  margin: 20px;
  background: linear-gradient(135deg, var(--color-secundario), var(--color-principal));
  color: var(--color-blanco);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-icon {
  font-size: 3.5rem;
  color: var(--color-blanco);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.cta-final h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-blanco);
}

.cta-final p {
  font-size: 1.1rem;
  color: var(--color-blanco);
  opacity: 0.9;
}

.cta-btn {
  font-size: 1.2rem;
  padding: 15px 30px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cta-btn:hover {
  transform: scale(1.05);
  background-color: var(--color-blanco);
  color: var(--color-principal);
}


/* ==============================
   13. FOOTER MODERNO
============================== */
/* ============================== 
   13. FOOTER MODERNO 
============================== */
.footer {
  background-color: var(--color-footer);
  color: var(--color-secundario);
  padding: 50px 0;
  margin-top: 50px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== CENTRADO GENERAL ===== */
.footer-content {
  display: flex;
  justify-content: center;
  /* CENTRA columnas */
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  /* evita columnas demasiado largas */
  text-align: center;
  /* centra títulos y contenido */
}

.footer-column h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-blanco);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 50%;
  /* CENTRAR */
  transform: translateX(-50%);
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-principal);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  /* Centradas */
  text-align: left;
  /* pero texto alineado */
}

.footer-column ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-column ul li a {
  color: var(--color-blanco);
  opacity: 0.75;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--color-blanco);
  opacity: 1;
  transform: translateX(5px);
}

/* ===== Redes Sociales ===== */
.footer-socials {
  display: flex;
  justify-content: center;
  /* CENTRA en desktop */
  gap: 15px;
  width: 100%;
}

.footer-socials a {
  color: var(--color-blanco);
  background-color: var(--color-principal);
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
  background-color: var(--color-secundario);
  transform: translateY(-5px);
}

/* ===== Footer Bottom ===== */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--color-principal);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-blanco);
}

/* ==============================
   14. MEDIA QUERIES (CONSOLIDADAS)
============================== */

/* -- Desktop / Large tablets -- */
@media (max-width: 1024px) {
  .carrusel-item {
    flex: 0 0 calc(50% - 15px);
  }

  .servicios-fila {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -- Tablet / Mobile -- */
@media (max-width: 768px) {

  /* NAV */
  header {
    padding: 5px 15px;
    height: 50px;
  }

  .logo-container img {
    width: 35px;
  }

  .logo-container h2 {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  /* HERO */
  .hero {
    height: 100vh;
    background-position: center top;
    background-size: cover;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .hero-text a.btn-cta {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* Características */
  .caracteristica-item {
    padding: 20px;
  }

  /* Servicios */
  .servicios-fila {
    grid-template-columns: 1fr;
  }

  /* Proceso */
  .proceso-timeline {
    justify-content: center;
    gap: 20px;
    flex-direction: column;
  }

  .proceso-step {
    flex: 0 1 90%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Carrusel manual */
  .carrusel-item {
    width: 80%;
    margin: 0 auto;
    min-width: auto;
  }

  .carrusel-btn.prev {
    left: 5px;
  }

  .carrusel-btn.next {
    right: 5px;
  }

  /* Carrusel automático */
  .carrusel-auto-item {
    flex: 0 0 120px;
  }

  .carrusel-auto-track {
    gap: 30px;
    animation-duration: 20s;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* -- Small phones -- */
@media (max-width: 480px) {
  .hero {
    height: 60vh;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-text a.btn-cta {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .carrusel-auto-item {
    width: 110px;
  }

  .carrusel-item img {
    height: 200px;
    object-fit: cover;
  }

  .proceso-timeline {
    padding: 0 10px;
  }
}

/* ==============================
   15. UTILIDADES (clases pequeñas)
============================== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* ==============================
   MENÚ RESPONSIVE (móvil)
   Ajuste: Altura completa + Fondo Transparente
============================== */
@media (max-width: 768px) {

  /* --- A. Botón Hamburguesa --- */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    /* Importante: Color claro o cobre para que contraste si el menú pasa por debajo */
    color: var(--color-principal);
    cursor: pointer;
    z-index: 1001;
    /* Debe ser mayor que el menú para que siempre puedas cerrarlo */
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .menu-toggle.active {
    color: var(--color-fondo);
    /* Cambia a claro cuando el menú oscuro está abierto */
    transform: rotate(90deg);
  }

  .nav-links {
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 300px;
  height: 100vh;

  background-color: rgba(61, 44, 32, 0.95);
  backdrop-filter: blur(5px);

  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  border-left: 1px solid var(--color-principal);

  box-sizing: border-box; /* 🔥 AGREGA ESTA LÍNEA */

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 100px 20px 20px;
  gap: 15px;

  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              visibility 0.4s;
  z-index: 1000;
}
  /* --- C. Estado Activo --- */
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  /* --- D. Estilo de Enlaces (Adaptado a fondo oscuro) --- */
  .nav-links a {
    width: 100%;
    font-size: 1.2rem;
    padding: 12px 10px;

    /* CAMBIO: Texto claro (Beige) porque el fondo es oscuro */
    color: var(--color-fondo);

    /* Borde separador sutil y claro */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    /* Fondo blanco semitransparente */
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-secundario);
    /* Camel al pasar el mouse */
    padding-left: 25px;
    border-left-color: var(--color-secundario);
    border-bottom-color: transparent;
  }

  /* ==============================================
     E. DROPDOWN MÓVIL (ESTILO APP / DRILL-DOWN)
     ============================================== */

 /* ==============================================
     E. DROPDOWN MÓVIL (ESTILO APP / DRILL-DOWN)
     ============================================== */

  /* 1. Contenedor base (¡CLAVE: position static para liberar a la nueva pantalla!) */
  .dropdown {
    position: static; /* Esto evita que el menú se quede atrapado en el botón */
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
  }

  .dropbtn {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* 2. El contenido desplegable (¡AHORA SÍ CUBRE EL 100% DEL MENÚ!) */
  .dropdown-content {
    position: absolute; 
    top: 0;
    left: 0;
    
    /* Gracias al position:static de arriba, esto ahora mide lo mismo que tu menú principal */
    width: 100%; 
    height: 100%; 
    
    /* Para que el padding no desborde el tamaño */
    box-sizing: border-box; 
    left: 0;
    right: 0;
    /* Fondo oscuro sólido para tapar los botones de atrás */
    background-color: rgb(61, 44, 32); 
    
    /* Flexbox para acomodar los productos */
    display: flex;
    flex-direction: column;
    padding: 100px 20px 20px;
    gap: 8px;
    
    /* Scroll si hay muchos productos */
    overflow-y: auto; 
    
    /* Empieza oculto a la derecha */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    z-index: 1002;
  }

  /* 3. Clase SHOW (Activa la pantalla) */
  .dropdown-content.show {
    transform: translateX(0);
    visibility: visible;
  }

  /* 4. Estilo del botón "Volver" */
  .btn-volver {

    display: block; 
    color: var(--color-secundario) !important;
    font-size: 1.2rem;
    font-weight: bold;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-secundario) !important;
    text-transform: uppercase;
  }

  /* 5. Estilo de los Sub-Enlaces (Pisos) */
  .dropdown-content a {
    font-size: 0.95rem;
    padding: 8px 10px; 
    
    color: var(--color-fondo);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
  }
  /* 6. Hover/Touch en los enlaces de productos */
  .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-secundario);
    padding-left: 25px;
    border-left-color: var(--color-secundario);
    border-bottom-color: transparent;
  }
}

/* Correcciones Específicas del Footer para Tablet/Mobile */
@media (max-width: 768px) {
  /* ... (resto del código del 768px) ... */

  .footer-content {
    /* Ya tienes: flex-direction: column; */
    align-items: center;
    /* 👈 Centra las columnas en el contenedor */
    text-align: center;
    /* 👈 Centra el texto de las columnas */
  }

  .footer-column {
    min-width: 100%;
    /* Opcional: que ocupe todo el ancho disponible */
  }

  .footer-column ul {
    /* Centrar elementos de la lista */
    display: inline-block;
    text-align: left;
    /* Asegura que el texto de la lista no se rompa */
  }

  .footer-column h3::after {
    /* Centra el separador de los títulos */
    left: 50%;
    transform: translateX(-50%);
  }

  /* Ajustar las listas para centrar los items (íconos y texto) */
  .footer-column ul li {
    justify-content: center;
    /* Centra los items si no tienen mucho texto */
  }

  /* --- AGREGA ESTO EN TU VERSIÓN MÓVIL --- */

}