/* ==========================================================================
   Colegio La Montaña — "Aquí nadie sube solo"

   ÍNDICE
    1. Variables (colores, tipografía, medidas)
    2. Base
    3. Botones
    4. Header
    5. Hero
    6. Siluetas de cordillera
    7. Placeholders de fotos
    8. Cifras
    9. Secciones
   10. Carta
   11. Historia por capítulos
   12. Proyecto
   13. Un día
   14. Equipo
   15. Testimonios
   16. Crecemos contigo
   17. Admisión
   18. Contacto
   19. Footer
   20. WhatsApp flotante
   21. Animaciones
   22. Responsive

   Para cambiar un color, edita su variable en la sección 1.
   ========================================================================== */

/* ===== 1. Variables (colores, tipografía, medidas) ===== */
:root {
  /* Azules institucionales (base) */
  --c-navy:   #0F2A4A;  /* Azul Montaña: títulos, secciones oscuras */
  --c-blue:   #1A45B0;  /* Azul Escudo: botones y enlaces (del escudo oficial) */
  --c-blue-2: #12348A;  /* hover */
  --c-sky:    #6FB1EC;  /* Azul Cielo: decoraciones */
  --c-sky-2:  #9FCBF3;  /* Cielo claro: texto sobre navy */
  --c-mist:   #EAF2FB;  /* Niebla: fondo de sección */

  /* Calidez */
  --c-paper:  #FBF7F0;  /* Crema: fondo general */
  --c-sand:   #F4EADB;  /* Arena: secciones alternas */
  --c-sun:    #F4C02E;  /* Dorado Escudo: CTA de matrícula, destacados */
  --c-sun-2:  #E0AA10;
  --c-terra:  #B3171D;  /* Rojo Escudo (texto): antetítulos, etiquetas */
  --c-terra-deco: #E0393E; /* Rojo Escudo (decorativo): garabatos */
  --c-sprout: #2E7D5B;  /* Verde brote: crecimiento */
  --c-wa:     #0E7A42;  /* WhatsApp accesible */
  --c-wa-2:   #0A6536;  /* WhatsApp hover */

  /* Texto */
  --c-ink:    #13233A;
  --c-muted:  #5B6473;
  --c-line:   #E6DCCB;

  /* Blanco */
  --c-white:  #fff;

  /* Tintes suaves para fondos de íconos y etiquetas */
  --c-green-soft: #E3F2EA;  /* fondo verde (chip "gratis", pilar 4) */
  --c-green-line: #BFE0CD;  /* borde del chip "gratis" */
  --c-wa-line:    #CFE7D9;  /* borde del botón suave de WhatsApp */
  --c-gold-soft:  #FDF0D3;  /* fondo dorado (etiqueta "nuevo", pilar 2) */
  --c-red-soft:   #FBE3E3;  /* fondo rojo (pilar 3) */
  --c-blue-pale:  #DCE9F7;  /* cordillera de fondo */
  --c-blue-dash:  #C9D9EE;  /* línea punteada de la historia */
  --c-blue-line:  #CFE0F3;  /* borde de las etiquetas de valores */

  /* Acentos puntuales */
  --c-gold-ink:   #8A5A00;  /* texto sobre --c-gold-soft */
  --c-gold-deep:  #B7791F;  /* ícono del pilar 2 */
  --c-sun-soft:   #F7D46A;  /* sol de los placeholders */
  --c-green-glow: #8FE0B5;  /* "sube" en las cifras */
  --c-done-bg:    #CDEBDB;  /* estado "logrado": fondo */
  --c-done-ink:   #135E3D;  /* estado "logrado": texto */

  /* Avatares del equipo (inicio del degradado) */
  --c-avatar-2: #F7C96B;
  --c-avatar-3: #7CC6A0;
  --c-avatar-4: #F3A68A;

  /* Formulario: errores */
  --c-invalid: #C2410C;  /* borde de campo inválido */
  --c-error:   #B3261E;  /* mensaje de error */

  /* Transparencias (el número tras "a" = % de opacidad) */
  --c-white-a06: rgba(255, 255, 255, .06);
  --c-white-a10: rgba(255, 255, 255, .1);
  --c-white-a12: rgba(255, 255, 255, .12);
  --c-white-a45: rgba(255, 255, 255, .45);
  --c-white-a60: rgba(255, 255, 255, .6);
  --c-white-a72: rgba(255, 255, 255, .72);
  --c-white-a85: rgba(255, 255, 255, .85);
  --c-white-a94: rgba(255, 255, 255, .94);
  --c-white-a95: rgba(255, 255, 255, .95);
  --c-paper-a86: rgba(251, 247, 240, .86);  /* header translúcido */
  --c-blue-a12:  rgba(26, 69, 176, .12);    /* anillo de foco en formularios */
  --c-blue-a28:  rgba(26, 69, 176, .28);    /* sombra botón principal */
  --c-sky-a22:   rgba(111, 177, 236, .22);
  --c-sky-a30:   rgba(111, 177, 236, .30);
  --c-sky-a35:   rgba(111, 177, 236, .35);
  --c-sun-a16:   rgba(244, 192, 46, .16);
  --c-sun-a28:   rgba(244, 192, 46, .28);
  --c-sun-a30:   rgba(244, 192, 46, .3);
  --c-sun-a35:   rgba(244, 192, 46, .35);
  --c-sun-a45:   rgba(244, 192, 46, .45);
  --c-wa-a35:    rgba(14, 122, 66, .35);    /* sombra botón flotante */

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Formas y medidas */
  --radius-sm: 12px;
  --radius:    22px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 74, .05), 0 4px 14px rgba(15, 42, 74, .05);
  --shadow:    0 14px 34px rgba(15, 42, 74, .09);
  --shadow-lg: 0 28px 60px rgba(15, 42, 74, .16);
  --container: 1180px;
  --header-h:  78px;
}

/* ===== 2. Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font); font-size: 17.5px; line-height: 1.65;
  color: var(--c-ink); background: var(--c-paper); -webkit-font-smoothing: antialiased;
}
img, iframe { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-2); }
h1, h2, h3, h4 { color: var(--c-navy); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
}
h3, h4 { font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--c-navy); color: var(--c-white); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: var(--c-white); }
:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ===== 3. Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .97rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--c-blue); color: var(--c-white); box-shadow: 0 8px 20px var(--c-blue-a28); }
.btn--primary:hover { background: var(--c-blue-2); color: var(--c-white); }
.btn--soft { background: var(--c-white); color: var(--c-wa); border-color: var(--c-wa-line); }
.btn--soft:hover { border-color: var(--c-wa); color: var(--c-wa); }
.btn--sun { background: var(--c-sun); color: var(--c-navy); box-shadow: 0 8px 20px var(--c-sun-a35); }
.btn--sun:hover { background: var(--c-sun-2); color: var(--c-navy); }
.btn--line { border-color: var(--c-white-a45); color: var(--c-white); }
.btn--line:hover { border-color: var(--c-white); color: var(--c-white); }
.btn--line-dark { border-color: var(--c-line); color: var(--c-navy); background: var(--c-white); }
.btn--line-dark:hover { border-color: var(--c-blue); color: var(--c-blue); }
.btn--wa { background: var(--c-wa); color: var(--c-white); }
.btn--wa:hover { background: var(--c-wa-2); color: var(--c-white); }

/* ===== 4. Header ===== */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--c-paper-a86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--c-line); box-shadow: var(--shadow-sm); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo + nombre */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--c-navy); }
.brand img { width: 48px; height: auto; }
.brand--light img { width: 52px; }
.brand:hover { color: var(--c-navy); }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__pre { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; font-variation-settings: "SOFT" 100; }
.brand--light, .brand--light:hover { color: var(--c-white); }
.brand--light .brand__pre { color: var(--c-white-a60); }

/* Menú */
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 24px; }
.nav__list a { color: var(--c-ink); font-size: .95rem; font-weight: 600; position: relative; padding: 6px 0; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 6px; width: 100%;
  /* trazo = --c-terra-deco (no admite variables) */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c20-4 40-4 60-1s28 1 36-2' fill='none' stroke='%23E0393E' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--c-navy); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }

/* Botón hamburguesa (móvil) */
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--c-navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 5. Hero ===== */
.hero {
  position: relative; padding: 64px 0 150px; overflow: hidden;
  background:
    radial-gradient(700px 420px at 90% 0%, var(--c-sky-a30), transparent 65%),
    radial-gradient(600px 380px at 0% 100%, var(--c-sun-a16), transparent 65%),
    var(--c-paper);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--c-white); color: var(--c-navy); border: 1px solid var(--c-line);
}
.chip--free { background: var(--c-green-soft); border-color: var(--c-green-line); color: var(--c-sprout); }
.chip--free::before { content: "●"; margin-right: 6px; font-size: .7em; vertical-align: 2px; }

.hero__title { font-size: clamp(2.7rem, 6.4vw, 5rem); margin: 22px 0 20px; line-height: 1.02; }
.scribble { position: relative; white-space: nowrap; color: var(--c-blue); font-style: italic; }
.scribble::after {
  content: ""; position: absolute; left: -4%; right: -4%; bottom: -.12em; height: .32em;
  /* trazo = --c-terra-deco (no admite variables) */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 6 90 4 130 7s50 4 66-2' fill='none' stroke='%23E0393E' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left; animation: draw 1s .5s ease-out both;
}
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.hero__lead { font-size: 1.15rem; color: var(--c-muted); max-width: 33em; }
.hero__lead strong { color: var(--c-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__media { position: relative; }
.blob {
  border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg); object-fit: cover; width: 100%;
}
.blob--alt, .blob--alt.placeholder { border-radius: 44% 56% 52% 48% / 54% 44% 56% 46%; }
.blob.placeholder:not(.blob--alt) { border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; }
.sticker {
  position: absolute; top: 8%; left: -4%;
  background: var(--c-sun); color: var(--c-navy); font-weight: 800; font-size: 1.05rem;
  padding: 10px 18px; border-radius: 16px; transform: rotate(-6deg); box-shadow: var(--shadow);
}
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 1.6s 1s ease-in-out 2; }
@keyframes wave { 0%,100% { transform: rotate(0); } 20%,60% { transform: rotate(16deg); } 40%,80% { transform: rotate(-8deg); } }
.hero__card {
  position: absolute; right: 0; bottom: 6%;
  display: flex; align-items: center; gap: 12px;
  background: var(--c-white); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-lg);
  font-size: .9rem; color: var(--c-muted); line-height: 1.35;
}
.hero__card strong { color: var(--c-navy); }
.hero__card-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--c-mist); }
/* Íconos de línea (hero, contacto y pilares) */
.hero__card-icon svg, .contact__icon svg, .pillar__icon svg {
  width: 22px; height: 22px; fill: none; stroke: var(--c-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== 6. Siluetas de cordillera ===== */
.range { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
.range--bottom { bottom: -1px; height: 120px; }
.range__back { fill: var(--c-blue-pale); }
.range__front { fill: var(--c-navy); }
.range--top { top: -1px; height: 80px; }
.range--top path { fill: var(--c-paper); }
.range--footer { top: -1px; height: 90px; }
.range--footer path { fill: var(--c-sand); }

/* ===== 7. Placeholders de fotos ===== */
.placeholder {
  display: grid; place-items: center; text-align: center;
  width: 100%; height: 100%; min-height: 160px; border-radius: var(--radius);
  color: var(--c-white-a95); font-weight: 700; font-size: .95rem;
  background:
    radial-gradient(circle at 78% 22%, var(--c-sun-soft) 0 8%, transparent 8.5%),
    linear-gradient(160deg, var(--c-sky) 0%, var(--c-blue) 55%, var(--c-navy) 100%);
  position: relative; overflow: hidden;
}
.placeholder::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 48%;
  background: var(--c-white-a12);
  clip-path: polygon(0 100%, 0 62%, 16% 30%, 30% 55%, 50% 8%, 70% 52%, 84% 32%, 100% 58%, 100% 100%);
}
.placeholder span { position: relative; z-index: 1; padding: 0 12px; }
.placeholder small { font-weight: 400; opacity: .8; }

/* ===== 8. Cifras ===== */
.growth { background: var(--c-navy); padding: 30px 0 90px; color: var(--c-white); }
.growth__title { color: var(--c-sky-2); font-family: var(--font); font-size: .85rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-align: center; margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  padding: 26px 24px; border-radius: var(--radius); text-align: center;
  background: var(--c-white-a06); border: 1px solid var(--c-white-a10);
  display: flex; flex-direction: column; gap: 4px;
}
.stat__num { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; color: var(--c-white); }
.stat__label { color: var(--c-sky-2); font-size: .95rem; }
.stat__up { color: var(--c-green-glow); font-size: .82rem; font-weight: 800; }
.stat--sun { background: var(--c-sun); border-color: var(--c-sun); }
.stat--sun .stat__num { color: var(--c-navy); }
.stat--sun .stat__label { color: var(--c-navy); font-weight: 700; }

/* ===== 9. Secciones ===== */
.section { position: relative; padding: 110px 0; }
.section--sand { background: var(--c-sand); }
.section--mist { background: var(--c-mist); }
.section--navy {
  background: radial-gradient(700px 360px at 100% 100%, var(--c-sky-a22), transparent 60%), var(--c-navy);
  color: var(--c-white-a85); padding-top: 160px;
}
.section--navy .section__title, .section--navy h3 { color: var(--c-white); }
.section--navy .section__lead { color: var(--c-sky-2); }
.section__head { max-width: 700px; margin-bottom: 56px; }
.section__head--center { text-align: center; margin-inline: auto; }
/* Antetítulo con rayita */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-terra); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--c-sun); }
.section__title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section__lead { font-size: 1.15rem; color: var(--c-muted); }
.subhead { font-size: 1.3rem; margin: 64px 0 24px; }

/* ===== 10. Carta ===== */
.letter { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.letter__media { max-width: 420px; }
.letter__hello { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; color: var(--c-navy); font-variation-settings: "SOFT" 100; }
.letter__body p { font-size: 1.1rem; }
.letter__sign { margin-top: 28px; display: flex; flex-direction: column; }
.letter__signature { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--c-blue); font-variation-settings: "SOFT" 100; }
.letter__role { color: var(--c-muted); font-size: .95rem; }

/* ===== 11. Historia por capítulos ===== */
.route { position: relative; display: grid; gap: 72px; }
.route::before {
  content: ""; position: absolute; left: 50%; top: 20px; bottom: 20px; width: 0;
  border-left: 3px dashed var(--c-blue-dash); transform: translateX(-50%);
}
.chapter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.chapter::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-paper); border: 4px solid var(--c-blue); transform: translate(-50%, -50%); z-index: 1;
}
.chapter:nth-child(3)::before { border-color: var(--c-sun); background: var(--c-sun); box-shadow: 0 0 0 7px var(--c-sun-a30); }
.chapter:nth-child(even) .chapter__media { order: 2; }
.chapter__media .placeholder { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.chapter:nth-child(odd) .chapter__media { transform: rotate(-1.5deg); }
.chapter:nth-child(even) .chapter__media { transform: rotate(1.5deg); }
.chapter__tag {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-blue); background: var(--c-mist); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.chapter__tag--new { background: var(--c-gold-soft); color: var(--c-gold-ink); }
.chapter__text h3 { font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 2rem; letter-spacing: -.01em; }
.chapter__text p { color: var(--c-muted); font-size: 1.08rem; }

/* ===== 12. Proyecto ===== */
/* Subrayado tipo marcador */
.mission em { font-style: normal; color: var(--c-navy); background: linear-gradient(transparent 62%, var(--c-sun-a45) 62%); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  background: var(--c-white); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--c-mist); margin-bottom: 18px; }
.pillar__icon svg { width: 26px; height: 26px; }
/* Color de ícono por pilar */
.pillar:nth-child(2) .pillar__icon { background: var(--c-gold-soft); }
.pillar:nth-child(2) .pillar__icon svg { stroke: var(--c-gold-deep); }
.pillar:nth-child(3) .pillar__icon { background: var(--c-red-soft); }
.pillar:nth-child(3) .pillar__icon svg { stroke: var(--c-terra); }
.pillar:nth-child(4) .pillar__icon { background: var(--c-green-soft); }
.pillar:nth-child(4) .pillar__icon svg { stroke: var(--c-sprout); }
.pillar h3 { font-size: 1.15rem; }
.pillar p { color: var(--c-muted); font-size: .97rem; margin: 0; }

.values { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.values__title { font-size: 1.05rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 18px; border-radius: 999px; background: var(--c-white); border: 1px solid var(--c-blue-line); font-weight: 700; color: var(--c-navy); }

.levels { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.levels li {
  display: flex; flex-direction: column; padding: 22px 26px; border-radius: var(--radius);
  background: var(--c-navy); color: var(--c-sky-2);
}
.levels__k { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: 1.7rem; color: var(--c-white); line-height: 1.2; }

/* ===== 13. Un día ===== */
/* Carrusel horizontal de momentos */
.day {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px;
  scrollbar-width: thin;
}
.moment { scroll-snap-align: start; background: var(--c-white); border-radius: var(--radius); padding: 12px 12px 22px; box-shadow: var(--shadow-sm); }
.moment .placeholder { aspect-ratio: 4 / 3; height: auto; min-height: 0; border-radius: 16px; margin-bottom: 16px; }
.moment time { display: inline-block; font-weight: 800; color: var(--c-terra); font-size: .9rem; margin: 0 10px; }
.moment h3 { font-size: 1.1rem; margin: 4px 10px 6px; }
.moment p { color: var(--c-muted); font-size: .95rem; margin: 0 10px; }

/* Galería */
.gallery { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item .placeholder, .gallery__item img { height: 100%; width: 100%; object-fit: cover; border-radius: 0; min-height: 0; transition: transform .5s; }
.gallery__item:hover .placeholder, .gallery__item:hover img { transform: scale(1.05) rotate(.5deg); }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: var(--c-white-a94); color: var(--c-navy);
  font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}

/* ===== 14. Equipo ===== */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { background: var(--c-white); border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.person:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow); }
.person__avatar, .person__photo { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover; }
.person__avatar {
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--c-white);
  background: linear-gradient(135deg, var(--c-sky), var(--c-blue)); box-shadow: 0 0 0 6px var(--c-sand), 0 0 0 8px var(--c-white);
}
/* Color de avatar por persona */
.person:nth-child(2) .person__avatar { background: linear-gradient(135deg, var(--c-avatar-2), var(--c-terra-deco)); }
.person:nth-child(3) .person__avatar { background: linear-gradient(135deg, var(--c-avatar-3), var(--c-sprout)); }
.person:nth-child(4) .person__avatar { background: linear-gradient(135deg, var(--c-avatar-4), var(--c-terra)); }
.person h3 { font-size: 1.05rem; margin-bottom: 2px; }
.person__role { color: var(--c-terra); font-weight: 700; font-size: .9rem; margin-bottom: 10px; }
.person__quote { color: var(--c-muted); font-size: .92rem; font-style: italic; margin: 0; }
.team__more { text-align: center; margin-top: 32px; color: var(--c-muted); font-size: 1.05rem; }

/* ===== 15. Testimonios ===== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.quote {
  position: relative; margin: 0; padding: 34px 30px 28px; border-radius: var(--radius);
  background: var(--c-white); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote::before {
  content: "“"; position: absolute; top: -10px; left: 22px;
  font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--c-sun);
}
.quote p { font-size: 1.05rem; color: var(--c-ink); }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote footer span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.quote footer small { color: var(--c-muted); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--c-white); background: var(--c-blue); flex: none; }
.quote--feature { background: var(--c-sand); transform: translateY(-14px); }
.quote--feature .quote__avatar { background: var(--c-terra); }
.quote__badge { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-terra); margin-bottom: 8px; }

/* ===== 16. Crecemos contigo ===== */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.goal { padding: 28px 24px; border-radius: var(--radius); background: var(--c-white-a06); border: 1px solid var(--c-white-a12); }
.goal h3 { font-size: 1.15rem; margin-top: 14px; }
.goal p { color: var(--c-sky-2); font-size: .95rem; margin: 0; }
.goal__status { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--c-white-a12); color: var(--c-white); }
.goal__status--done { background: var(--c-done-bg); color: var(--c-done-ink); }
.goal__status--progress { background: var(--c-sun); color: var(--c-navy); }

/* ===== 17. Admisión ===== */
/* Tarjeta "matrícula gratis" */
.free {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: var(--c-white); border-radius: var(--radius-lg); padding: 52px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.free::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--c-sun-a28), transparent 70%);
}
.free__big { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--c-navy); line-height: 1.2; }
.free__big span { color: var(--c-sprout); font-style: italic; }
.free__text p:last-child { color: var(--c-muted); margin: 0; }
.free__price { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 16px; }
.free__amount { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: clamp(5rem, 11vw, 8.5rem); line-height: 1; color: var(--c-blue); }
.free__note { font-weight: 800; color: var(--c-navy); font-size: 1.1rem; line-height: 1.3; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--c-white); box-shadow: var(--shadow-sm); }
.step__num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-sand); color: var(--c-terra); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 16px;
}
.step h4 { font-size: 1.12rem; }
.step p { color: var(--c-muted); font-size: .96rem; margin: 0; }

/* Banda de llamada a la acción */
.cta-band {
  margin-top: 40px; padding: 42px 46px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: radial-gradient(500px 260px at 100% 0%, var(--c-sky-a35), transparent 60%), linear-gradient(135deg, var(--c-navy), var(--c-blue));
  color: var(--c-white-a85);
}
.cta-band h3 { color: var(--c-white); font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.7rem; margin-bottom: 4px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Preguntas frecuentes */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--c-line); padding: 2px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; font-weight: 700; color: var(--c-navy); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-sand); color: var(--c-terra); font-size: 1.3rem; font-weight: 600; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--c-muted); padding-bottom: 16px; margin: 0; }

/* ===== 18. Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { display: grid; gap: 18px; margin-top: 8px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list li > span:last-child { display: flex; flex-direction: column; }
.contact__icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--c-white); }
.contact__label { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-terra); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--c-mist); }
.map iframe { width: 100%; height: 280px; border: 0; }

/* Formulario */
.form { background: var(--c-white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.form h3 { font-family: var(--font-display); font-weight: 600; font-variation-settings: "SOFT" 100; font-size: 1.7rem; margin-bottom: 4px; }
.form__intro { color: var(--c-muted); margin-bottom: 24px; }
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--c-navy); }
.form input, .form select, .form textarea {
  font: 400 1rem var(--font); color: var(--c-ink); padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-line); background: var(--c-paper); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 4px var(--c-blue-a12); background: var(--c-white); }
.form .is-invalid { border-color: var(--c-invalid); }
.form__note { margin: 14px 0 0; font-size: .95rem; color: var(--c-muted); text-align: center; }
.form__note.is-ok { color: var(--c-sprout); font-weight: 700; }
.form__note.is-error { color: var(--c-error); }

/* ===== 19. Footer ===== */
.footer { position: relative; background: var(--c-navy); color: var(--c-white-a72); padding: 140px 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.footer h4 { color: var(--c-white); font-size: .95rem; margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--c-white-a72); }
.footer a:hover { color: var(--c-white); }
.footer__tagline { margin-top: 16px; max-width: 26em; }
.footer__bottom { border-top: 1px solid var(--c-white-a10); margin-top: 48px; padding-top: 24px; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ===== 20. WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--c-wa); color: var(--c-white); padding: 12px 18px 12px 14px; border-radius: 999px;
  box-shadow: 0 12px 28px var(--c-wa-a35); font-weight: 800;
  transform: translateY(120px); transition: transform .35s ease, background .2s;
}
.wa-float.is-visible { transform: none; }
.wa-float:hover { background: var(--c-wa-2); color: var(--c-white); }
.wa-float svg { width: 26px; height: 26px; fill: var(--c-white); }

/* ===== 21. Animaciones ===== */
/* Aparición al hacer scroll (la activa el JS) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .wa-float { transform: none; }

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== 21b. Páginas internas y portada ===== */
/* Encabezado de cada página interna (nosotros.html, equipo.html, ...) */
.page-hero {
  position: relative; overflow: hidden; padding: 72px 0 150px; text-align: center;
  background:
    radial-gradient(600px 360px at 85% 0%, var(--c-sky-a30), transparent 65%),
    radial-gradient(520px 320px at 5% 100%, var(--c-sun-a16), transparent 65%),
    var(--c-paper);
}
.page-hero .container { max-width: 820px; }
.page-hero__title { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; margin: 16px 0 14px; }
.page-hero__lead { font-size: 1.2rem; color: var(--c-muted); max-width: 34em; margin-inline: auto; }
/* Color de la cordillera = color de la sección que sigue */
.page-hero .range__front { fill: var(--c-paper); }
.page-hero--to-sand .range__front { fill: var(--c-sand); }
.page-hero--to-mist .range__front { fill: var(--c-mist); }

/* Tarjetas "Conoce La Montaña" en Inicio: una por página */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; } /* 8 tarjetas = 2 filas de 4 */
.explore__card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  color: var(--c-ink); transition: transform .25s, box-shadow .25s;
}
.explore__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--c-ink); }
.explore__media { aspect-ratio: 16 / 10; overflow: hidden; }
.explore__media img, .explore__media .placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.explore__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.explore__tag { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-terra); }
.explore__body h3 { font-size: 1.4rem; }
.explore__body p { color: var(--c-muted); margin: 0 0 6px; }
.explore__more { margin-top: auto; font-weight: 800; color: var(--c-blue); }

.section--tight { padding-top: 0; }
.page-hero + .section { padding-top: 80px; }

/* Variantes de color de los placeholders (para que no se vean todos iguales
   mientras llegan las fotos reales). Se aplican solas por posición. */
.explore li:nth-child(6n+2) .placeholder, .gallery__item:nth-child(3n+2) .placeholder,
.moment:nth-child(4n+2) .placeholder, .chapter:nth-child(4n+2) .placeholder {
  background: radial-gradient(circle at 78% 22%, var(--c-white-a85) 0 8%, transparent 8.5%), linear-gradient(160deg, var(--c-sun-soft), var(--c-sun-2) 60%, var(--c-gold-deep));
}
.explore li:nth-child(6n+3) .placeholder, .gallery__item:nth-child(3n+3) .placeholder,
.moment:nth-child(4n+3) .placeholder, .chapter:nth-child(4n+3) .placeholder {
  background: radial-gradient(circle at 78% 22%, var(--c-sun-soft) 0 8%, transparent 8.5%), linear-gradient(160deg, var(--c-avatar-3), var(--c-sprout) 70%, var(--c-done-ink));
}
.explore li:nth-child(6n+4) .placeholder, .moment:nth-child(4n+4) .placeholder, .chapter:nth-child(4n+4) .placeholder {
  background: radial-gradient(circle at 78% 22%, var(--c-sun-soft) 0 8%, transparent 8.5%), linear-gradient(160deg, var(--c-avatar-2), var(--c-terra-deco) 65%, var(--c-terra));
}
.explore li:nth-child(6n+5) .placeholder {
  background: radial-gradient(circle at 78% 22%, var(--c-sun-soft) 0 8%, transparent 8.5%), linear-gradient(160deg, var(--c-sky-2), var(--c-sky) 50%, var(--c-blue));
}

/* ===== 22. Responsive ===== */
/* Pantallas medianas: menú más compacto (9 páginas) */
@media (max-width: 1320px) {
  .nav { gap: 20px; }
  .nav__list { gap: 16px; }
  .nav__list a { font-size: .9rem; }
}

/* Menú desplegable: con 9 páginas el menú se pliega antes que el resto del diseño */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--c-paper); padding: 20px 24px 28px; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; /* pantallas bajas */
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); }
  .nav__list a::after { display: none; }
  .explore { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: columnas reducidas */
@media (max-width: 960px) {
  .hero { padding: 40px 0 130px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 520px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .letter { grid-template-columns: 1fr; gap: 40px; }
  .letter__media { max-width: 320px; }
  .route::before { left: 10px; transform: none; }
  .chapter { grid-template-columns: 1fr; gap: 24px; padding-left: 40px; }
  .chapter::before { left: 12px; top: 24px; }
  .chapter:nth-child(even) .chapter__media { order: 0; }
  .pillars, .roadmap, .steps, .team { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .quote--feature { transform: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .free { grid-template-columns: 1fr; padding: 40px 32px; }
  .free__price { justify-content: flex-start; }
  .contact { grid-template-columns: 1fr; }
  .explore { grid-template-columns: repeat(2, 1fr); }
  .chapter__media { max-width: 560px; }
  .page-hero + .section { padding-top: 64px; }
  .page-hero { padding: 52px 0 130px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Móvil */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .section { padding: 76px 0; }
  .section--navy { padding-top: 120px; }
  .section__head { margin-bottom: 40px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .sticker { left: 0; font-size: .95rem; }
  .hero__card { right: 0; font-size: .85rem; }
  .stat { padding: 20px 12px; }
  .stat__label { font-size: .85rem; }
  .pillars, .roadmap, .steps, .levels, .explore { grid-template-columns: 1fr; }
  .team { gap: 14px; }
  .person { padding: 22px 12px; }
  .person__avatar, .person__photo { width: 76px; height: 76px; font-size: 1.3rem; }
  .person__quote { display: none; }
  .chapter__text h3 { font-size: 1.6rem; }
  .day { grid-auto-columns: 78%; }
  .gallery { grid-auto-rows: 150px; }
  .gallery__item--tall { grid-row: span 1; }
  .free { padding: 32px 24px; }
  .cta-band { padding: 32px 24px; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .form { padding: 28px 22px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa-float__label { display: none; }
  .wa-float { padding: 14px; }
}
