/* ======================================
   1. VARIABLES & RESET
====================================== */
:root {
  /* --- Colores Principales --- */
  --bg-a: #FB6B3F; /* Naranja claro */
  --bg-b: #D94C2C; /* Naranja oscuro */
  --text-white: #ffffff;
  --text-dark: #1b1b1b;
  
  /* --- Patrón Triángulos --- */
  --tri-size: 230px; 
  --tri-h: calc(var(--tri-size) * 0.866);
  --tri-color-1: rgba(255, 255, 255, 0.07);
  --tri-color-2: rgba(255, 255, 255, 0.04);

  /* --- Layout & Espaciado --- */
  --hero-max-width: 1480px;
  --page-gutter: 24px;
  --border-radius-btn: 12px;

  /* --- Navbar (Glass/Scroll) --- */
  --nav-btn-bg: rgba(255, 255, 255, 0.15);
  --nav-btn-hover: rgba(255, 255, 255, 0.28);
  
  /* --- Tipografía --- */
  --font-main: "Montserrat", system-ui, -apple-system, sans-serif;
  --title-hero: clamp(2.8rem, 5vw, 6.4rem);
}

/* Reset Básico */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-main); overflow-x: hidden; color: var(--text-dark); }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ======================================
   2. NAVBAR (FIXED & SCROLL EFFECT)
====================================== */
.site-header {
  position: fixed; /* Fijo siempre */
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px var(--page-gutter);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent; /* Inicio transparente */
}

/* Contenedor interno para centrar */
.site-header__inner {
  max-width: var(--hero-max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* --- ESTADO SCROLLED (JS activa esto) --- */
.site-header.scrolled {
  background: rgba(217, 76, 44, 0.98); /* Naranja casi opaco */
  padding: 12px var(--page-gutter); /* Se hace más pequeño */
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(5px);
}

/* Marca */
.brand {
  display: flex; flex-direction: column; color: #fff;
  font-weight: 900; font-size: 1.4rem; line-height: 1;
}
.brand__underline {
  width: 100%; height: 4px; background: #fff; margin-top: 4px; border-radius: 4px;
}

/* Menú Desktop */
.site-nav__list { display: flex; align-items: center; gap: 2.5rem; }
.site-nav__link {
  color: #fff; font-weight: 700; font-size: 0.95rem; opacity: 0.9;
  transition: opacity 0.2s;
}
.site-nav__link:hover { opacity: 1; }

/* Botón Navbar */
.button--buy-now {
  background: var(--nav-btn-bg);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff; padding: 0.8rem 1.4rem; border-radius: var(--border-radius-btn);
  font-weight: 800; font-size: 0.9rem; transition: all 0.2s;
}
.button--buy-now:hover {
  background: #fff; color: var(--bg-b); transform: translateY(-2px);
}

/* Hamburguesa (oculta en desktop) */
.nav-toggle { display: none; }

/* ======================================
   3. HERO SECTION
====================================== */
.hero {
  position: relative; min-height: 100vh;
  padding-top: 80px; /* Espacio para el navbar fijo */
  background: linear-gradient(135deg, var(--bg-a) 0%, var(--bg-b) 60%);
  isolation: isolate;
  display: flex; flex-direction: column;
}

/* Patrón Triángulos */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    conic-gradient(from 150deg at 50% 13.4%, var(--tri-color-1) 0 60deg, transparent 60deg 360deg),
    conic-gradient(from 150deg at 50% 13.4%, var(--tri-color-2) 0 60deg, transparent 60deg 360deg);
  background-size: var(--tri-size) var(--tri-h);
  background-position: 0 0, calc(var(--tri-size)/2) calc(var(--tri-h)/2);
  mix-blend-mode: overlay; pointer-events: none;
}

.hero__layout {
  flex: 1; width: 100%; max-width: var(--hero-max-width);
  margin: 0 auto; padding: 40px var(--page-gutter) 80px;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 80px; color: #fff;
}

/* Textos Hero */
.hero__content { transform: scale(0.95); transform-origin: left center; }
.hero__title {
  font-size: var(--title-hero); font-weight: 900; line-height: 0.95;
  text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero__title-line { display: block; }
.hero__subtitle { font-size: 1.6rem; font-weight: 800; margin-bottom: 32px; opacity: 0.95; }

/* Lista */
.hero-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.hero-list__item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; }
.hero-list__icon {
  width: 24px; height: 24px; background: #fff; color: var(--bg-b);
  border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 900;
}

/* Botones Hero */
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.button {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 1.1rem 1.8rem; border-radius: 16px;
  font-weight: 800; font-size: 0.9rem; text-transform: uppercase;
  transition: transform 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: #fff; color: var(--bg-b); box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.button--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.8); }
.button--outline:hover { background: rgba(255,255,255,0.1); }
.hero__note { font-size: 0.9rem; opacity: 0.10; font-weight: 600; margin-top: 10px; text-align: center; max-width: 685px; }

/* Mockup Libro */
.hero__mockup {
  position: relative; width: 380px; height: 540px; justify-self: center; margin-top: -20px;
}
.hero__mockup-frame {
  width: 100%; height: 100%; border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(0,0,0,0.2));
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 50px 100px rgba(0,0,0,0.4); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.hero__mockup-inner {
  width: 85%; height: 88%; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2); box-shadow: inset 0 0 40px rgba(0,0,0,0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.hero__mockup-text { font-size: 1.5rem; font-weight: 900; line-height: 1.1; text-transform: uppercase; color: #fff; }
.hero__mockup-separator { width: 40px; height: 3px; background: #fff; margin: 15px 0; }

/* ======================================
   HERO: LIBRO 3D INTERACTIVO (OPEN ON HOVER)
====================================== */
.hero__mockup {
  position: relative;
  width: 100%;
  max-width: 400px; /* Tamaño del libro */
  height: 540px;    /* Altura del libro */
  margin-top: 0;
  display: flex;
  justify-content: center;
  perspective: 2000px; /* Profundidad 3D */
  z-index: 10;
}

.book-container {
  width: 320px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* El Libro en sí */
.book {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  transform-style: preserve-3d;
  transform: rotateY(-30deg); /* Rotación inicial para que se vea 3D */
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

/* --- CARAS DEL LIBRO --- */

/* 1. Portada (La imagen que subiste) */
.book__cover {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background-color: #E64522;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  z-index: 2;
  transform-origin: left; /* Gira desde el lomo */
  transform: translateZ(25px); /* Grosor frontal */
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 
    inset 4px 0 10px rgba(0,0,0,0.1), /* Sombra lomo interno */
    5px 5px 15px rgba(0,0,0,0.15);
  transform-style: preserve-3d; /* Para que los hijos respeten el 3D */
}

/* Reverso naranja de la portada (se ve cuando se abre) */
.book__cover.is-open::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #CA5C03;
  border-radius: 4px 12px 12px 4px;
  backface-visibility: hidden;

}

.book__img {
  width: 100%; height: 100%; object-fit: cover;
  backface-visibility: hidden; /* Oculta la imagen cuando se voltea */
}

/* 2. Lomo (Spine) */
.book__spine {
  position: absolute;
  width: 50px; /* Grosor del libro */
  height: 98%; /* Un pelín menos que la altura */
  top: 1%;
  left: -25px; /* Mitad del grosor */
  background-color: #CA5C03; /* Naranja más oscuro */
  transform: rotateY(90deg);
  border-radius: 2px;
}

/* 3. Páginas Internas (Simulación) */
.book__page {
  position: absolute;
  width: 98%; height: 96%;
  top: 2%; left: 1%;
  background-color: #fff; /* Papel blanco */
  border-radius: 4px 10px 10px 4px;
  z-index: 1;
  transform: translateZ(22px); /* Pegado a la portada */
  background-image: linear-gradient(to right, rgba(0,0,0,0.05) 0%, transparent 10%);
  padding: 30px;
  box-sizing: border-box;
  overflow: hidden;
  font-size: 0.8rem;
  color: #555;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
}

/* Texto falso para que parezca real */
.book__page-content h3 { 
  color: #333; /* Color gris oscuro (antes era naranja) */
  text-align: center; /* Centrado */
  
  font-family: "Georgia", "Times New Roman", serif; 
  font-weight: 900; 
  font-size: 1.5rem;
  margin-top: 8px;
  margin-bottom: 20px; 
}
.book__page-content p { 
  text-align: justify; /* Justificado a ambos lados */
  color: #333;         /* Color gris oscuro */
  
  font-family: "Georgia", "Times New Roman", serif; 
  font-size: 0.85rem; 
  line-height: 1.6; 
  margin-bottom: 15px; 
}
.fake-text { width: 100%; height: 8px; background: #eee; margin-bottom: 8px; border-radius: 2px; }
.fake-text:last-child { width: 60%; }

/* 4. Contraportada (Atrás) */
.book__back {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background-color: #CA5C03;
  border-radius: 4px 12px 12px 4px;
  transform: translateZ(-25px) rotateY(180deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* --- ANIMACIÓN AL PASAR EL MOUSE (HOVER) --- */

/* Cuando pasas el mouse sobre el contenedor... */
.hero__mockup:hover .book {
  /* El libro gira para ponerse de frente */
  transform: rotateY(0deg) translateX(30px);
}

.hero__mockup:hover .book__cover {
  /* La portada se abre como una puerta (-160 grados) */
  transform: translateZ(25px) rotateY(-160deg);
  box-shadow: -5px 5px 20px rgba(0,0,0,0.2);
}


/* Ajuste Móvil */
@media (max-width: 1200px) {
  .hero__mockup {
    height: 400px;
    margin-top: 40px;
  }
  .book-container { width: 240px; height: 360px; }
  
  /* En móvil, hacemos que la animación sea automática o al toque */
  .book { transform: rotateY(-20deg); }
}

/* ======================================
   4. SECCIÓN: LO QUE APRENDERÁS (.learn)
====================================== */
.learn {
  background: #ffffff;
  padding: 100px var(--page-gutter) 120px;
  position: relative;
  z-index: 1; /* Asegura que esté sobre cualquier elemento flotante */
}

.learn__container {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
}

/* Títulos de Sección */
.learn__title {
  color: var(--text-dark);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.learn__subtitle {
  color: #5a5a5a;
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

/* Grid de Tarjetas (3 columnas) */
.learn__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

/* Tarjeta Individual */
.learn-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 20px; /* Bordes suaves como en la imagen */
  padding: 40px 32px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Icono Naranja con Gradiente */
.learn-card__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-a), var(--bg-a));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 20px rgba(217, 76, 44, 0.25); /* Sombra naranja */
  transition: transform 0.3s ease;
}
.learn-card__icon svg {
  width: 32px; height: 32px;
  stroke-width: 2;
}

/* Tipografía Tarjeta */
.learn-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2b2b2b;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.learn-card__text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Hover Effects (Tarjeta) */
.learn-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  
}


.learn-card:hover .learn-card__icon {
  transform: scale(1.05) rotate(-3deg);
}



/* ======================================
   RESPONSIVE GENERAL
====================================== */
@media (max-width: 1200px) {
  .hero__layout { grid-template-columns: 1fr; text-align: center; gap: 60px; }
  .hero__content { transform: none; display: flex; flex-direction: column; align-items: center; }
  .hero-list { align-items: center; }
  .hero-cta { justify-content: center; }
}
@media (max-width: 1200px) {
  .hero-list {
    display: inline-flex; /* Hace que la caja se ajuste al contenido */
    flex-direction: column;
    align-items: flex-start; /* ALINEA LOS ITEMS A LA IZQUIERDA */
    text-align: left;
    margin-left: auto; /* Centra el bloque completo */
    margin-right: auto;
    width: fit-content; /* El ancho es el del texto más largo */
  }
  
  .hero-list__item {
    width: 100%; /* Asegura que ocupen el espacio */
    justify-content: flex-start; /* Icono y texto a la izquierda */
  }
}

@media (max-width: 900px) {
  :root { --tri-size: 160px; }
  
  /* Navbar Móvil */
  .site-header { padding: 15px var(--page-gutter); }
  .nav-toggle { display: block; background: transparent; border: none; width: 40px; height: 40px; z-index: 101; cursor: pointer; }
  .nav-toggle__bar { display: block; width: 26px; height: 3px; background: #fff; margin: 5px auto; border-radius: 2px; transition: 0.3s; }
  
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Menú desplegable */
.site-nav {
    /* Posición flotante tipo tarjeta */
    position: absolute;
    top: calc(100% + 0px); /* Un poco separado del header */
    left: 20px;
    right: 20px; /* Márgenes laterales para que flote */
    
    background: #ffffff;
    border-radius: 24px; /* Bordes muy redondeados (Clave en la referencia) */
    padding: 20px 25px;  /* Espacio interno generoso */
    
    /* Sombra suave para dar profundidad */
    box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.02);
    
    /* Animación de entrada */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999;
  }

  /* Estado Abierto */
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Lista de enlaces */
  .site-nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio vertical entre cada enlace */
    width: 100%;
    margin: 0;
    padding: 0;
    /* ALINEACIÓN A LA IZQUIERDA (Como en la foto) */
    align-items: flex-start; 
  }

  /* Estilo de los Textos (Links) */
  .site-nav__link {
    display: block;
    color: #1a1a1a; /* Negro sólido */
    font-size: 16px; 
    text-decoration: none;
    border: none; /* Sin líneas divisorias */
    padding: 0;
    width: 100%;
    text-align: left; /* Fuerza el texto a la izquierda */
  }
  
  /* BOTÓN "COMPRAR AHORA" */
  .site-nav .button--buy-now {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 100%; /* Ancho completo */
    
    /* Color Naranja Intenso */
    background-color: #E64522; 
    color: #fff;
    border: none;
    
    margin-top: 5px; /* Separación grande respecto a los links */
    padding: 14px;    /* Botón alto */
    border-radius: 12px; /* Bordes del botón suavizados */
    
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(230, 69, 34, 0.25);
  }

  .site-nav__list .site-nav__item:last-child {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  /* Grids */
  .learn__grid { grid-template-columns: 1fr; }
  .makers-quote { flex-direction: column; text-align: center; border-left: 0; border-top: 6px solid var(--bg-b); padding: 30px; }
  .makers-quote__mark { margin: 0 0 10px 0; display: block; }
  .makers-author { flex-direction: column; }
}

/* =========================================================
   CORRECCIÓN ESPECÍFICA SOLO PARA IPHONE (iOS)
   (Iguala los botones de abajo con los de arriba)
========================================================= */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px) {
    
    /* 1. Contenedor de botones CTA (Abajo) */
    .cta__actions {
      flex-direction: column; /* Uno debajo del otro */
      width: 100%;
      gap: 12px; /* Mismo espacio exacto que el Hero */
      margin-bottom: 10px; /* Mismo margen que el Hero */
      align-items: stretch;
    }

    /* 2. Estilo de los botones CTA (Abajo) */
    .cta .btn {
      width: 100%;
      /* Copiamos las medidas exactas de tu botón .button del inicio */
      padding: 1.1rem 1.8rem; 
      border-radius: 16px; /* Para que sean igual de redondos */
      font-size: 0.9rem;
      min-width: 0; /* Evita desbordamientos en iOS */
      height: auto;
      
      /* Asegurar centrado flex en iOS */
      display: inline-flex;
      justify-content: center;
      align-items: center;
    }
  }
}

/* ======================================
   SECCIÓN 5: HECHO POR HACEDORES (.makers)
   (Versión: Altura VH + Fotos Grandes)
====================================== */
.makers {
  background-color: #FDE9E4;
  padding: 100px var(--page-gutter);
  text-align: center;
  position: relative;
  
  /* --- ESTO HACE LA SECCIÓN "MÁS GRANDE" --- */
  min-height: 75vh; /* Ocupa el 75% de la altura de la pantalla */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra todo el contenido verticalmente */
  /* ----------------------------------------- */
}

.makers__container { max-width: 1200px; margin: 0 auto; width: 100%; }

.makers__title {
  color: var(--text-dark);
  font-size: clamp(2.4rem, 5vw, 3.8rem); /* Título un poco más grande también */
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.makers__subtitle {
  color: #6a6a6a;
  font-size: 1.15rem;
  margin-bottom: 60px;
}
.makers__link { color: var(--bg-b); font-weight: 700; text-decoration: none; }

/* --- CAJA DE CITA (Compacta) --- */
.makers-quote {
  background: #fff;
  border-radius: 16px;
  max-width: 600px; 
  margin: 0 auto 80px; /* Más aire abajo */
  padding: 24px 32px;
  border-left: 6px solid var(--bg-b);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  text-align: left;
  display: flex; align-items: center; justify-content: center;
}

.makers-quote__mark {
  color: rgba(217, 76, 44, 0.25);
  font-size: 2.5rem;
  margin-right: 12px;
  line-height: 0;
  transform: translateY(5px);
}

.makers-quote__text {
  font-size: 1.25rem; 
  font-weight: 800;
  font-style: italic;
  color: #262626;
  margin: 0;
  line-height: 1.3;
}

/* --- BLOQUE DE EQUIPO --- */
.makers-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px; /* Más separación horizontal */
  flex-wrap: wrap;
}

.makers-avatars {
  display: flex;
  padding-left: 20px;
  align-items: center;
}

/* Círculos de los avatares XL */
.makers-avatars__item {
  width: 110px; 
  height: 110px;
  
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  margin-left: -25px; 
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #ddd;
  transition: transform 0.3s ease, z-index 0.2s, border-color 0.3s;
}

.makers-avatars__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.makers-avatars__item:hover {
  transform: translateY(-5px) scale(1.1); /* Animación visible pero elegante */
  z-index: 10; 
  border-color: var(--bg-b);
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

/* Textos del equipo */
.makers-author__meta {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.makers-author__name {
  font-weight: 900;
  color: #272727;
  font-size: 1.5rem; /* Nombre bien legible */
  margin-bottom: 4px;
}
.makers-author__role {
  font-size: 1.1rem;
  color: #7a7a7a;
}

/* --- Responsive (Versión: 4 arriba, 2 abajo y pegaditos) --- */
@media (max-width: 900px) {
  .makers { 
    min-height: auto; 
    padding: 80px var(--page-gutter); 
  }

  .makers-author {
    flex-direction: column;
    /* Quitamos el gap para controlar la unión con márgenes negativos */
    gap: 10px; 
  }

  .makers-avatars {
    justify-content: center;
    padding-left: 0;
    
    /* TRUCO MATEMÁTICO: */
    /* Limitamos el ancho para forzar que solo quepan 4 círculos */
    /* (80px * 4) - solapamientos = aprox 260px. Ponemos 290px por seguridad */
    max-width: 290px; 
    
    margin: 0 auto; /* Centramos el bloque */
    flex-wrap: wrap; 
  }

  .makers-avatars__item {
    width: 80px; 
    height: 80px; 
    
    /* Solapamiento Horizontal */
    margin-left: -16px; 
    
    /* Solapamiento Vertical (Para que los de abajo suban y se peguen) */
    margin-top: -15px;
    
    flex-shrink: 0; /* Mantiene el círculo perfecto */
    border-width: 3px; /* Borde un poco más fino en móvil para que no se vea tosco */
  }

  /* El primer avatar de la lista no debe moverse a la izquierda */
  .makers-avatars__item:first-child {
    margin-left: 0;
  }
  
  /* Compensa el margen negativo superior de la primera fila para que no se corte */
  .makers-avatars {
    padding-top: 25px;
  }

  .makers-author__meta { 
    text-align: center; 
    margin-top: 15px; /* Un poco de aire extra después de las fotos */
  }
}

/* ======================================
   SECCIÓN 6: TU HISTORIA (.journey)
   (Versión: Icono dentro + Borde Naranja)
====================================== */
.journey {
  background: #ffffff;
  padding: 110px var(--page-gutter) 130px;
  text-align: center;
  position: relative;
  overflow: hidden; 
}

.journey__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Títulos --- */
.journey__title {
  color: var(--text-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.journey__subtitle {
  color: #666;
  font-size: 1.15rem;
  margin-bottom: 70px;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* --- Grid --- */
.journey__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

/* --- Tarjetas --- */
.journey-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 24px;
  /* Padding ajustado para dar aire arriba del icono */
  padding: 40px 30px; 
  margin-top: 0; /* Ya no necesitamos margen externo arriba */
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
  
  /* Transiciones suaves para borde, sombra y movimiento */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease, 
              border-color 0.3s ease;
}

/* Iconos (Ahora dentro de la tarjeta) */
.journey-card__icon {
  width: 80px; height: 80px;
  /* Margen normal para separar del título */
  margin: 0 auto 24px; 
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 2rem;
  background: var(--bg-a);
  
  /* Sombra suave naranja */
  box-shadow: 0 10px 20px rgba(217, 76, 44, 0.2);
  
  /* Animación interna del icono */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.journey-card__icon svg { width: 34px; height: 34px; fill: currentColor; }

/* El Tercer Card (Resultado) es VERDE */
.journey-card:nth-child(3) .journey-card__icon {
  background: #26C281;
  box-shadow: 0 10px 20px rgba(38, 194, 129, 0.25);
}

/* Textos */
.journey-card__title {
  font-size: 1.35rem; font-weight: 800; color: #2b2b2b; margin-bottom: 12px;
  transition: color 0.3s ease;
}
.journey-card__text {
  font-size: 0.98rem; color: #666; line-height: 1.6;
}

/* --- HOVER EFFECTS (El toque mágico) --- */
.journey-card:hover {
  transform: translateY(-8px); /* Flota un poco */
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  /* BORDE NARANJA (Consistencia con 'Aprenderás') */
  border-color: var(--bg-b); 
}

/* El icono crece un poquito */
.journey-card:hover .journey-card__icon {
  transform: scale(1.08);
}

/* --- Botón CTA Inferior --- */
.journey__cta { margin-top: 60px; }

.journey__cta .button {
  background: linear-gradient(to right, #FB6B3F, #f05431);
  color: #fff;
  padding: 1.2rem 3.5rem;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 20px 40px rgba(217, 76, 44, 0.3);
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journey__cta .button:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(217, 76, 44, 0.45);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .journey__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ======================================
   SECCIÓN 7: BONUS (Diseño Identico al Cliente)
====================================== */
.bonus {
  position: relative;
  padding: 120px var(--page-gutter);
  background: linear-gradient(135deg, var(--bg-a) 0%, var(--bg-b) 100%);
  isolation: isolate;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Patrón Hexagonal */
.bonus::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 17.32V51.96L30 69.28L0 51.96V17.32L30 0Z M30 104L60 86.68V51.96L30 34.64L0 51.96V86.68L30 104Z' fill='none' stroke='%23ffffff' stroke-opacity='0.3' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px auto; 
  background-repeat: repeat;
  background-position: center;
  mix-blend-mode: overlay;
  opacity: 0.8;
}

.bonus__wrap {
  width: 100%;
  max-width: 900px; /* Ajustado para que se vea compacto */
  position: relative; z-index: 1;
}

/* --- Tarjeta Principal --- */
.bonus__card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.25); 
  /* CLAVE: Padding interno para crear el marco blanco alrededor del header */
  padding: 12px; 
}

/* --- Cabecera Naranja (Tipo Isla) --- */
.bonus__head {
  background: linear-gradient(to right, #FB6B3F, #f05431);
  padding: 24px 32px;
  color: #fff;
  /* CLAVE: Bordes redondeados propios para separarse del marco blanco */
  border-radius: 16px; 
}

.bonus__badge { display: flex; align-items: center; gap: 20px; }

/* Icono del Header: Fondo BLANCO, Icono NARANJA (Match referencia) */
.bonus__badge-icon {
  width: 48px; height: 48px;
  background: #fff; 
  color: var(--bg-b);
  border-radius: 12px;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.bonus__badge-icon svg { width: 26px; height: 26px; fill: currentColor; }

.bonus__badge-text { display: flex; flex-direction: column; gap: 4px; }
.bonus__badge-eyebrow { 
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.9; font-weight: 700; 
}
.bonus__badge-title { font-size: 1.4rem; font-weight: 800; line-height: 1; }

/* --- Cuerpo --- */
.bonus__body { padding: 40px 50px; }

.bonus__title {
  color: #222;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bonus__subtitle {
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Lista */
.bonus__list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 50px; }

.bonus__item {
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 1.05rem; color: #333; font-weight: 600;
}

/* Check: Fondo NARANJA sólido, Icono BLANCO (Match referencia) */
.bonus__item .check {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--bg-a), var(--bg-b));
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(217, 76, 44, 0.3);
}
.bonus__item .check svg { width: 14px; height: 14px; fill: currentColor; stroke-width: 1; }

/* --- Nota Inferior --- */
.bonus__note {
  background: #FFF5F2;
  border-radius: 12px;
  padding: 24px 30px;
  /* Borde izquierdo curvo simulado */
  border-left: 6px solid var(--bg-b);
}

.bonus__note-strong {
  color: #222; /* Texto oscuro como en la referencia (no naranja) */
  font-weight: 800;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
}

.bonus__note-sub {
  color: #888;
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .bonus { padding: 60px var(--page-gutter); }
  .bonus__card { padding: 8px; } /* Menos marco en móvil */
  .bonus__head { padding: 20px; border-radius: 16px; }
  .bonus__body { padding: 30px 20px; }
  }

  /* ======================================
   SECCIÓN 8: TESTIMONIOS (Galería de Imágenes)
====================================== */
.testi {
  background: #fff;
  padding: 110px var(--page-gutter);
  text-align: center;
  position: relative;
}

.testi__wrap {
  /* Hacemos el contenedor más ancho para que quepan las 4 fotos */
  max-width: 1320px; 
  margin: 0 auto;
}

/* --- Cabecera --- */
.testi__head { margin-bottom: 60px; }

.testi__title {
  color: #222;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.testi__subtitle {
  color: #888;
  font-size: 1.1rem;
  font-weight: 400;
}

/* --- Grid para Imágenes (4 columnas) --- */
.testi__grid {
  display: grid;
  /* 4 columnas iguales en escritorio */
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px;
  align-items: start; /* Alinea arriba por si tienen alturas distintas */
}

/* --- Tarjeta de Imagen --- */
.testi__image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden; /* Recorta la imagen redondeada */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra suave */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #f4f4f4; /* Fondo mientras carga */
  line-height: 0; /* Elimina espacio fantasma bajo la imagen */
}

.testi__image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Asegura que se vea bien */
  transition: transform 0.4s ease;
}

/* --- Efecto Hover --- */
.testi__image-card:hover {
  transform: translateY(-8px); /* Flota */
  box-shadow: 0 20px 50px rgba(0,0,0,0.15); /* Sombra fuerte */
}

/* Zoom sutil en la foto al pasar el mouse */
.testi__image-card:hover img {
  transform: scale(1.03);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .testi__grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columnas */
  }
}

@media (max-width: 600px) {
  .testi__grid {
    grid-template-columns: 1fr; /* Móvil: 1 columna grande */
    max-width: 400px; /* Limitamos el ancho para que no sean gigantes */
    margin: 0 auto;
  }
}

/* ======================================
   MODAL / LIGHTBOX (Zoom de Imágenes)
====================================== */

/* 1. Cambio de cursor en las tarjetas */
.testi__image-card {
  cursor: zoom-in; /* Muestra una lupa al pasar el mouse */
  position: relative;
}

/* Icono de lupa superpuesto (Opcional, para que sea obvio que se puede clicar) */
.testi__image-card::after {
  content: "🔍";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.testi__image-card:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.testi__image-card:hover img {
  filter: brightness(0.9); /* Oscurece un pelín la foto para resaltar la lupa */
}


/* 2. El Modal (Fondo Oscuro) */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed; 
  z-index: 3000; /* Encima de TODO (Navbar tiene 1000) */
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); /* Fondo negro al 90% */
  backdrop-filter: blur(5px);
  
  /* Flex para centrar la imagen */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
  /* Animación de entrada */
  animation: fadeIn 0.3s ease;
}

/* 3. La Imagen dentro del Modal */
.modal__image {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: contain;
  
  /* Animación de zoom al abrir */
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 4. Botón de Cerrar (X) */
.modal__close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 3001;
}

.modal__close:hover,
.modal__close:focus {
  color: var(--bg-a); /* Se pone naranja al hover */
  text-decoration: none;
}

/* Animaciones Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Ajuste Móvil */
@media (max-width: 700px) {
  .modal__image { width: 95%; }
  .modal__close { top: 20px; right: 20px; font-size: 40px; }
}

/* ======================================
   DESACTIVAR MODAL EN MÓVIL (< 900px)
====================================== */
@media (max-width: 900px) {
  /* Quitar el cursor de lupa */
  .testi__image-card {
    cursor: default; 
  }
  
  /* Ocultar el icono de lupa 🔍 */
  .testi__image-card::after {
    display: none !important;
  }
  
  /* Quitar efectos de hover (brillo) */
  .testi__image-card:hover img {
    filter: none;
    transform: none; /* Opcional: si quieres quitar la flotación también */
  }
  .testi__image-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Sombra original estática */
  }
}

/* ======================================
   SECCIÓN 9: PREGUNTAS FRECUENTES (.faq)
   (Versión: Limpieza Total de Rayas)
====================================== */
.faq {
  /* Fondo rosa muy suave */
  background: #FFF5F0; 
  padding: 110px var(--page-gutter);
  
  /* --- FIX PARA ELIMINAR LAS RAYAS --- */
  position: relative;
  z-index: 10;          /* Obliga a estar encima de cualquier sección anterior */
  overflow: hidden;     /* Corta cualquier cosa que intente entrar desde fuera */
  box-shadow: 0 -20px 0 #FFF5F0; /* Un pequeño "parche" de seguridad arriba */
  /* ---------------------------------- */
}

/* ESTO ES LO IMPORTANTE: Desactiva cualquier patrón fantasma en esta sección */
.faq::before,
.faq::after {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

.faq__wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative; 
  z-index: 2; /* Asegura que el contenido flote sobre el fondo */
}

/* --- Cabecera --- */
.faq__head { text-align: center; margin-bottom: 50px; }

.faq__title {
  color: #222;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.faq__subtitle {
  color: #777;
  font-size: 1.1rem;
  font-weight: 400;
}

/* --- Lista Vertical --- */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 20px; 
}

/* --- Tarjeta de Pregunta --- */
.faq__item {
  background: #fff;
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
  overflow: hidden;
  border: 1px solid transparent; 
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.faq__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

/* Botón (Pregunta) */
.faq__btn {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800; 
  color: #222;
}

/* Flecha (Chevron) Naranja */
.faq__chev {
  width: 20px;
  height: 20px;
  color: var(--bg-b); 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Rotación al abrir */
.faq__item[data-open="true"] .faq__chev {
  transform: rotate(180deg);
}

/* Panel de Respuesta */
.faq__panel {
  height: 0;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__panel p {
  padding: 0 32px 32px;
  color: #555;
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .faq { padding: 80px var(--page-gutter); }
  .faq__btn { padding: 20px 24px; font-size: 1rem; }
  .faq__panel p { padding: 0 24px 24px; }
}

/* ======================================
   SECCIÓN 10: CTA FINAL (Flechas Visibles)
====================================== */
.cta {
  position: relative;
  /* El Gradiente Naranja */
  background: linear-gradient(135deg, #FB6B3F 0%, #E64522 100%);
  padding: 120px var(--page-gutter);
  text-align: center;
  color: #fff;
  overflow: hidden;
  z-index: 1; /* Crea contexto de apilamiento */
}

/* --- EL PATRÓN DE FLECHAS (Flechas Grandes y Gruesas) --- */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  
  /* He modificado el dibujo SVG (el path 'd') para que la flecha ocupe casi todo el cuadro */
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='50' viewBox='0 0 80 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 25h50m-15-15 15 15-15 15' stroke='%23ffffff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  
  /* Ajusta esto para acercar o alejar las flechas entre sí */
  background-size: 90px 88px; 
  
  background-repeat: repeat;
  background-position: center;
  
  opacity: 0.15; 
  mix-blend-mode: overlay; 
}

.cta__wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* --- Resto de Estilos del CTA (Icono, Textos, Botones) --- */
.cta__halo {
  width: 72px; height: 72px;
  margin: 0 auto 30px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
  animation: pulse 3s infinite ease-in-out;
}
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.2); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.cta__halo svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 2; fill: none; }

.cta__title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cta__subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 45px;
  opacity: 0.95;
}

.cta__actions {
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px;
}

/* Botones */
.btn {
  padding: 18px 32px;
  border-radius: 12px;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 260px;
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }

.btn--primary {
  background: #fff; color: #E64522; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.btn--ghost {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff; backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.25); }

/* Footer del CTA */
.cta__tagline {
  font-size: 0.95rem; opacity: 0.9; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 40px;
}
.cta__tagline .dot { margin: 0 6px; opacity: 0.6; }

.cta__rule {
  border: 0; height: 1px; background: rgba(255,255,255,0.3);
  margin: 0 auto 40px; width: 70%;
}

.cta__stats {
  display: flex; justify-content: center; gap: 60px; list-style: none; padding: 0;
}
.cta__stats li { text-align: center; }
.cta__stats strong { font-size: 2rem; font-weight: 900; display: block; line-height: 1; margin-bottom: 6px; }
.cta__stats span { font-size: 0.85rem; text-transform: uppercase; opacity: 0.8; letter-spacing: 1px; }


/* Responsive */
@media (max-width: 768px) {
  .cta__stats { flex-direction: column; gap: 30px; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
/* --- Stats Inferiores --- */
.cta__rule {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto 40px;
  width: 70%;
}

.cta__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  list-style: none;
  padding: 0;
}

/* Animación de los ítems (li) */
.cta__stats li {
  text-align: center;
  /* Animación de entrada: Deslizar hacia arriba */
  animation: statFadeUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0; /* Invisible al inicio */
  transform: translateY(20px); /* Desplazado abajo al inicio */
}

/* Retrasos para efecto escalera (uno tras otro) */
.cta__stats li:nth-child(1) { animation-delay: 0.2s; }
.cta__stats li:nth-child(2) { animation-delay: 0.4s; }
.cta__stats li:nth-child(3) { animation-delay: 0.6s; }

/* Estilo de los Números */
.cta__stats strong {
  font-size: 2.5rem; /* Un poco más grandes para impacto */
  font-weight: 900;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  cursor: default;
}


.cta__stats span {
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 1px;
  display: block;
  transition: opacity 0.3s ease;
}

.cta__stats li:hover span {
  opacity: 1; /* Se vuelve totalmente visible al hover */
}

/* Definición de la animación keyframes */
@keyframes statFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cta__stats { 
    flex-direction: column; 
    gap: 30px; 
  }
  .cta__actions { 
    flex-direction: column; 
    align-items: stretch; 
  }
  .btn { width: 100%; }
}

/* ======================================
   FOOTER (.foot)
   (Diseño Oscuro Final)
====================================== */
.foot {
  background: #222222; /* Fondo gris oscuro sólido */
  color: #999;         /* Texto gris suave */
  padding: 80px var(--page-gutter) 40px;
  font-size: 0.95rem;
}

.foot__wrap {
  /* ANTES: max-width: 1200px; */
  
  /* AHORA: Usamos la misma variable que el Navbar para que alineen perfecto */
  max-width: var(--hero-max-width, 1480px); 
  
  margin: 0 auto;
  width: 100%; /* Asegura que ocupe todo el espacio disponible hasta el máximo */
}

/* --- Fila Superior: Logo (Izq) vs Redes (Der) --- */
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

/* Bloque de Marca */
.foot__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.foot__logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.foot__desc {
  color: #777;
  font-size: 0.95rem;
  margin: 0;
}

/* Enlace Naranja */
.foot__link {
  color: #E64522; 
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}
.foot__link:hover { text-decoration: underline; color: #FB6B3F; }


/* Bloque de Redes Sociales */
.foot__social {
  display: flex;
  gap: 12px;
}

.social {
  width: 44px;
  height: 44px;
  /* Fondo gris translúcido suave */
  background: rgba(255,255,255,0.1); 
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social:hover {
  background: #E64522; /* Se pone naranja al pasar el mouse */
  transform: translateY(-3px);
}

.social svg {
  width: 20px; height: 20px; fill: currentColor;
}


/* --- Línea Divisoria --- */
.foot__rule {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 40px;
}


/* --- Bloque Legal Inferior (CORREGIDO) --- */
.foot__legal {
  display: flex;           /* Activa Flexbox */
  flex-direction: row;     /* Alinea los elementos en FILA horizontal */
  flex-wrap: wrap;         /* Permite que bajen si no caben en móvil */
  justify-content: center; /* Centra todo horizontalmente */
  align-items: center;     /* Alinea verticalmente al centro */
  gap: 10px;               /* Espacio entre textos y puntos */
  
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Ajuste para el texto del copyright */
.foot__legal small {
  font-size: 0.9rem;
}

/* Estilo de los enlaces legales */
.foot__legal-link {
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}
.foot__legal-link:hover { 
  color: #fff; 
  text-decoration: underline; 
}

/* El punto separador */
.foot__sep {
  opacity: 0.4;
  color: #999;
  font-weight: bold;
}

/* ======================================
   AJUSTE DE ALINEACIÓN GLOBAL (Líneas Verdes)
====================================== */

/* 1. Definimos el ancho maestro en el ROOT (si no lo tienes, agrégalo al inicio) */
:root {
  --hero-max-width: 1480px; /* Este es el ancho que manda en todo el sitio */
}

/* 2. Ajuste SECCIÓN 1 (Navbar y Hero) */
.site-header__inner {
  max-width: var(--hero-max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__layout {
  max-width: var(--hero-max-width);
  /* Asegúrate de mantener el margin auto para centrar */
  margin: 0 auto; 
}

/* 3. Ajuste SECCIÓN 2 (Lo que aprenderás) */
.learn__container {
  /* Antes era 1320px, ahora lo igualamos al resto */
  max-width: var(--hero-max-width); 
  
  margin: 0 auto;
  width: 100%;
}

/* --- Ajuste Mobile --- */
@media (max-width: 600px) {
  .foot__legal {
    flex-direction: column; /* En celulares muy pequeños sí los apilamos */
    gap: 8px;
  }
  .foot__sep {
    display: none; /* Ocultamos los puntos en móvil */
  }
}

/* ======================================
   ANIMACIÓN DE ENTRADA (HERO FADE UP)
====================================== */

/* 1. Definimos la animación: de abajo hacia arriba y de invisible a visible */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px); /* Empieza 40px más abajo */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Termina en su lugar original */
  }
}

/* 2. Configuramos los elementos para que usen la animación */
/* Nota: 'forwards' hace que se queden visibles al terminar */

.hero__title,
.hero__subtitle,
.hero-list,
.hero-cta,
.hero__note {
  opacity: 0; /* Importante: invisibles al cargar la página */
  animation: fadeInUp 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

/* 3. Los Retrasos (Stagger): Aquí está la magia de la "escalera" */

/* El Título aparece primero */
.hero__title {
  animation-delay: 0.2s;
}

/* El Subtítulo un poco después */
.hero__subtitle {
  animation-delay: 0.4s;
}

/* La Lista de beneficios */
.hero-list {
  animation-delay: 0.6s;
}

/* Los Botones de compra */
.hero-cta {
  animation-delay: 0.8s;
}

/* La nota final */
.hero__note {
  animation-delay: 1.0s;
}

/* Opcional: El libro también puede entrar suave */
.hero__mockup {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
  animation-delay: 0.5s; /* Aparece junto con la lista aprox */
}


/* ======================================
   ANIMACIÓN DE ENTRADA NAVBAR (FADE DOWN)
====================================== */

/* 1. Definimos una animación especial para el menú (Caída suave) */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px); /* Empieza 20px más arriba (fuera) */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Cae a su sitio */
  }
}

/* 2. Aplicamos la animación al Header */
.site-header {
  /* Mantenemos tus estilos base, solo agregamos esto: */
  opacity: 0; /* Invisible al cargar */
  
  /* Ejecuta la animación de caída */
  animation: fadeInDown 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
  
  /* Sin retraso (0s) para que sea lo primero en aparecer, 
     antes que el título que tiene 0.2s */
  animation-delay: 0s; 
}

