/* =========================================================================
   ESCUELA NUEVA TIERRA — Sistema de estilos
   Basado en el Manual de Marca v1.0
   Paleta: Negro Cosmos (fondo) · Marfil Luz (texto) · Verde Tierra + Dorado Conciencia (acentos)
   Tipografía: Cormorant Garamond (serif, titulares) · Inter (sans, cuerpo)
   ========================================================================= */

/* ---------- Fuentes (autoalojadas) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
  --cosmos:        #0A0A0A;  /* Negro Cosmos — fondo principal */
  --cosmos-soft:   #141210;  /* Variante para secciones alternas */
  --cosmos-card:   #17150F;  /* Fondo de tarjetas */
  --ivory:         #F4EBDD;  /* Marfil Luz — texto principal */
  --ivory-dim:     #C9C1B3;  /* Texto secundario */
  --ivory-faint:   #8A857A;  /* Texto tenue / notas */
  --green:         #4E6F3A;  /* Verde Tierra */
  --green-light:   #7FA05F;  /* Verde claro para texto/hover sobre oscuro */
  --gold:          #C8942D;  /* Dorado Conciencia */
  --gold-light:    #E0B24E;  /* Dorado claro para hover */
  --line:          rgba(244, 235, 221, 0.12); /* Líneas sutiles */
  --line-strong:   rgba(244, 235, 221, 0.22);

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-h: 82px; /* altura de la barra de menú fija */
  --maxw: 1140px;
  --maxw-narrow: 760px;
  --radius: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--cosmos);
  color: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: var(--ivory);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ivory); }
em { font-style: italic; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.section-index {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 0.8rem;
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-soft { background-color: var(--cosmos-soft); }

.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ivory-dim); }

/* ---------- Botones / CTA ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.28s var(--ease);
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background-color: var(--gold);
  color: var(--cosmos);
  border-color: var(--gold);
}
.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--cosmos);
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  color: var(--ivory);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-group.center { justify-content: center; }

.link-arrow {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.link-arrow:hover { color: var(--gold-light); }
.link-arrow::after { content: '→'; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 24px;
  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .logo img { height: 60px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--ivory-dim);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 1.2rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ivory);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background-color: var(--ivory);
  transition: all 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(200, 148, 45, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(78, 111, 58, 0.12), transparent 60%),
    var(--cosmos);
}
.hero .container { position: relative; z-index: 2; }

/* Hero con fotografía de fondo */
.hero-photo {
  background-image: url('../assets/img/hero-golden-light.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* prioriza la parte alta del plano (la cabeza) y recorta por abajo */
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.08) 0%, rgba(10, 10, 10, 0.26) 72%, rgba(10, 10, 10, 0.70) 100%),
    radial-gradient(ellipse 80% 58% at 50% 46%, rgba(10, 10, 10, 0.34), transparent 74%);
}

.hero-inner { max-width: 820px; }
.hero-inner.center { margin-left: auto; margin-right: auto; }

.hero-title {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1.02;
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.hero .claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ivory);
  max-width: 640px;
  margin: 0 auto 2.8rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.5);
}

/* Indicador de scroll (invita a bajar sin vender) */
.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.scroll-cue:hover { color: var(--gold); }
.scroll-arrow {
  width: 1px; height: 46px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
}
.scroll-arrow::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 7px; height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
  animation: scrollBounce 2s infinite ease-in-out;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px) rotate(45deg); opacity: 1; }
}

/* Aura de rayos de colores — eco de los rayos del logo (alegría creadora) */
.rays {
  position: absolute;
  top: 42%; left: 50%;
  width: 120vw; height: 120vw;
  max-width: 1100px; max-height: 1100px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(from 0deg,
    rgba(192, 57, 43, 0.10),
    rgba(224, 123, 57, 0.10),
    rgba(232, 181, 58, 0.12),
    rgba(95, 160, 85, 0.10),
    rgba(63, 119, 176, 0.09),
    rgba(126, 90, 160, 0.10),
    rgba(192, 57, 43, 0.10));
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: raysSpin 48s linear infinite;
}
@keyframes raysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .rays { animation: none; }
  .scroll-arrow::after { animation: none; }
}

/* Estrellas sutiles del hero */
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; }
.star {
  position: absolute;
  background: var(--ivory);
  border-radius: 50%;
  animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.75; } }

/* ---------- Bloque Filosofía (teaser) ---------- */
.philo-teaser { text-align: center; }
.philo-photo { position: relative; overflow: hidden; }
.philo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(10, 10, 10, 0.74), rgba(10, 10, 10, 0.84)),
    url('../assets/img/raicescreadoras.webp') center 42% / cover no-repeat;
}
.philo-teaser .container-narrow { position: relative; z-index: 2; }
.philo-teaser h2 { margin-bottom: 1.5rem; }
.philo-teaser p { color: var(--ivory-dim); font-size: 1.15rem; }
.philo-teaser .link-arrow { margin-top: 2rem; }

/* ---------- Módulos (grid de tarjetas) ---------- */
.modules-section {
  position: relative;
  overflow: hidden;
  background-color: #FCFAF4; /* Blanco cálido — bloque luminoso */
}
.modules-section .container { position: relative; z-index: 2; }

/* Logo grande como filigrana de fondo */
.modules-bg-logo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/img/logos/logo-secundario.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(620px, 78%);
  opacity: 0.08;
}

/* Programa · logo secundario asomando desde el borde superior del bloque:
   solo se ve el 25,598% inferior (las raíces); el resto queda oculto arriba */
.program-modules .modules-bg-logo {
  inset: auto;
  top: 0;
  left: 50%;
  width: min(70%, 798px);          /* ≈ 70% del contenedor (máx. 1140px) */
  aspect-ratio: 1 / 1;             /* logo cuadrado 1254×1254 */
  transform: translate(-50%, -74.402%);
  background-image: url('../assets/img/logos/logo-secundario.png');
  background-position: top center;
  background-size: contain;
  opacity: 1;
}

/* Texto oscuro sobre el fondo claro del bloque 2 */
.modules-section .section-index { color: var(--green); }
.modules-section .section-head h2 { color: var(--cosmos); }
.modules-section .section-head p { color: rgba(10, 10, 10, 0.66); }

.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ivory-dim); }
.section-head .eyebrow { color: var(--gold); }


/* ---------- Bloque Pack completo ---------- */
.pack {
  text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(78, 111, 58, 0.14), transparent 70%),
    var(--cosmos-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pack h2 { margin-bottom: 1.2rem; }
.pack p { color: var(--ivory-dim); max-width: 620px; margin-left: auto; margin-right: auto; }
.pack .btn-group { margin-top: 2.2rem; }

/* Ventajas de la primera edición — panel destacado dentro de .pack */
.edition {
  max-width: 880px;
  margin: 3rem auto 2.6rem;
  padding: 2.6rem 2.4rem 2.8rem;
  text-align: center;
  border: 1px solid rgba(200, 148, 45, 0.4);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 85% 130% at 50% 0%, rgba(200, 148, 45, 0.16), transparent 68%),
    var(--cosmos-card);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.edition-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cosmos);
  background-color: var(--gold);
  padding: 0.42rem 0.95rem;
  border-radius: 100px;
}
.edition-note {
  color: var(--gold-light) !important;
  margin-top: 1rem;
  font-size: 1.02rem;
}
.edition .how-grid { margin-top: 2rem; text-align: left; }
.edition .how-item p { max-width: none; }

/* ---------- Página Programa ---------- */
/* Franja de datos clave ("cómo funciona") — pastillas */
.program-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  max-width: 900px;
  margin: 2.4rem auto 0;
}
.fact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background-color: var(--cosmos-soft);
  font-size: 0.85rem;
  color: var(--ivory-dim);
}
.fact strong { color: var(--gold-light); font-weight: 600; }

/* Grid de módulos con panel visual (placeholder duotono; sustituible por foto) */
.program-modules {
  position: relative;
  overflow: hidden;
  background-color: #FCFAF4;
}
.program-modules .container { position: relative; z-index: 2; }
.program-modules .section-index { color: var(--green); }
.program-modules .section-head h2 { color: var(--cosmos); }
.program-modules .section-head p { color: rgba(10, 10, 10, 0.66); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem;
}
.pcard {
  display: flex;
  flex-direction: column;
  background-color: var(--cosmos-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s var(--ease);
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

/* Panel de imagen. Placeholder = degradado de marca + nº + monograma de filigrana.
   Para poner la foto real: añade <img class="pcard-img"> dentro de .pcard-media. */
.pcard-media {
  position: relative;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--card-a, #6b5324) 0%, var(--card-b, #14100a) 100%);
  overflow: hidden;
}
.pcard-media::after { /* monograma como filigrana */
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/logos/monograma-blanco.png') center / 46% no-repeat;
  opacity: 0.14;
  mix-blend-mode: soft-light;
}
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pcard-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  color: rgba(244, 235, 221, 0.92);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.pcard-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background-color: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--line-strong);
  color: var(--ivory-dim);
}
.pcard-badge.badge-gate { color: var(--gold-light); border-color: rgba(200, 148, 45, 0.55); }

.pcard-body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.6rem 1.6rem 1.7rem; }
.pcard-body h3 { margin-bottom: 0.7rem; }
.pcard .tagline { color: var(--ivory-dim); font-size: 0.96rem; margin-bottom: 1.2rem; }
.pcard-meta {
  list-style: none;
  margin: 0 0 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex-grow: 1;
}
.pcard-meta li { display: flex; gap: 0.6rem; font-size: 0.84rem; color: var(--ivory-dim); margin-bottom: 0.5rem; }
.pcard-meta li:last-child { margin-bottom: 0; }
.pcard-meta .meta-label {
  flex-shrink: 0;
  min-width: 82px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  padding-top: 0.1rem;
}
.pcard-btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.78rem;
  padding: 0.75rem 1.6rem;
}

/* ---------- Equipo teaser (carrusel de tarjetas) ---------- */
.team-teaser { text-align: center; }
.team-carousel { position: relative; margin: 2.8rem auto 0; max-width: 1000px; }
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.5rem 1.5rem;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.team-card {
  scroll-snap-align: start;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--cosmos-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.4rem 1.6rem;
}
.team-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 0.6rem;
}
.team-desc { font-size: 0.9rem; color: var(--ivory-dim); flex-grow: 1; margin-bottom: 1.3rem; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--cosmos-card);
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.25s var(--ease);
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }
@media (max-width: 720px) {
  .carousel-btn { display: none; }
}

/* ---------- Página Filosofía ---------- */
/* Cita / concepto destacado (Alegría Creadora, propósito) */
.philo-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  color: var(--ivory);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.philo-quote em { color: var(--gold); font-style: italic; }
.quote-attr {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-top: 1.8rem;
}

/* Concepto Alegría Creadora — texto + matiz "con cicatrices" */
.concept-note {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 2rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ivory);
}

/* Los 5 valores */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.value-card {
  position: relative;
  background-color: var(--cosmos-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--val, var(--gold));
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.35s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.4); }
.value-card .v-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--val, var(--gold));
  opacity: 0.85;
}
.value-card h3 { margin: 0.6rem 0 0.5rem; color: var(--ivory); }
.value-card .v-kw {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--val, var(--gold));
  margin-bottom: 1rem;
}
.value-card p { color: var(--ivory-dim); font-size: 0.95rem; }

/* Cómo trabajamos — diferenciadores */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem 2.4rem;
  counter-reset: how;
}
.how-item { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.how-item h3 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  color: var(--ivory);
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}
.how-item h3::before {
  counter-increment: how;
  content: counter(how, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.how-item p { color: var(--ivory-dim); font-size: 0.96rem; }

/* ¿Te reconoces? — invitación */
.recognize { text-align: center; }
.recognize-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin: 2.6rem 0 0;
  text-align: left;
}
.recognize-item {
  background-color: var(--cosmos-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.recognize-item p { color: var(--ivory-dim); font-size: 0.98rem; }
.recognize-item strong { color: var(--ivory); }

/* ---------- Formulario (lista de interesados) ---------- */
.signup-form { max-width: 520px; margin: 2rem auto 0; }
.form-row { margin-bottom: 1rem; text-align: left; }
.form-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 0.5rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background-color: var(--cosmos-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-row textarea { resize: vertical; }
.signup-form-wide { width: 70%; max-width: 900px; }
.form-note { font-size: 0.82rem; color: var(--ivory-faint); margin-top: 0.8rem; }
/* Campo trampa anti-spam: invisible para personas, visible para bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--cosmos-soft);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 78px; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--ivory-dim); font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--ivory-dim); font-size: 0.95rem; }
.footer-col a:hover { color: var(--ivory); }
.social-links { display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ivory-dim);
  transition: all 0.25s var(--ease);
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--ivory-faint); font-size: 0.85rem; }
.footer-bottom .entra { font-family: var(--font-serif); font-style: italic; color: var(--gold); }

/* ---------- Página interior: cabecera de sección ---------- */
.page-hero {
  padding-top: 10rem;
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% -20%, rgba(200, 148, 45, 0.08), transparent 60%),
    var(--cosmos);
}
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* ---------- Contenido largo (filosofía, módulos) ---------- */
.prose { max-width: var(--maxw-narrow); margin: 0 auto; }
.prose h2 { margin: 3rem 0 1.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.8rem; color: var(--gold-light); }
.prose p { color: var(--ivory-dim); }
.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--gold) 50%, transparent);
}
.text-link:hover { color: var(--gold-light); text-decoration-color: var(--gold-light); }
.prose ul, .prose ol { margin: 0 0 1.4rem 1.4rem; color: var(--ivory-dim); }
.prose li { margin-bottom: 0.6rem; }
.prose blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ivory);
}
.prose .note {
  font-size: 0.9rem;
  color: var(--ivory-faint);
  background-color: var(--cosmos-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 2rem 0;
}

/* ---------- Página de módulo: el recorrido por fases ---------- */
.journey { display: flex; flex-direction: column; gap: 2.4rem; }
.journey-phase { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.journey-phase h3 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.phase-range {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.phase-sessions { list-style: none; }
.phase-sessions li { color: var(--ivory-dim); font-size: 0.96rem; margin-bottom: 0.9rem; }
.phase-sessions li:last-child { margin-bottom: 0; }
.phase-sessions strong { color: var(--ivory); }

/* Fila de facilitadores (reusa .team-card fuera del carrusel) */
.facilitators-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.8rem auto 0;
  max-width: 620px;
}

/* ---------- Página de profesor ---------- */
.profesor-hero {
  padding-top: 10rem;
  padding-bottom: 3rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% -20%, rgba(200, 148, 45, 0.08), transparent 60%),
    var(--cosmos);
}
.profesor-hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
}
.profesor-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold);
}
.profesor-photo img { width: 100%; height: 100%; object-fit: cover; }
.profesor-hero h1 { margin-bottom: 0.4rem; }
.profesor-role { color: var(--ivory-dim); margin-bottom: 1.4rem; }
.profesor-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--ivory);
  border-left: 2px solid var(--gold);
  padding-left: 1.3rem;
}

.rainbow-text {
  background: linear-gradient(90deg, #e04b4b, #e0a13d, #d8c93d, #4e9e5a, #3d8fd8, #7a5fd8, #c14fc1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.profesor-specialties { list-style: none; margin: 0; }
.profesor-specialties li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--ivory-dim);
}
.profesor-specialties li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* ---------- Utilidades de animación ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header { padding: 0.5rem 20px; }
  .site-header .logo img { height: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    background-color: var(--cosmos-soft);
    border-left: 1px solid var(--line);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 90;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.6rem; align-items: flex-start; }
  .main-nav a { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 95; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta .btn { display: none; }
  .profesor-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .profesor-photo { max-width: 220px; margin: 0 auto; }
  .profesor-quote { text-align: left; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  section { padding: 3.5rem 0; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; }
}
