/* =============================================================================
   CPI Virtual — sitio institucional
   Dirección visual: escuela premium. Navy profundo, oro, marfil, serif de display
   (Cormorant Garamond, eco del logotipo) + Poppins para texto e interfaz.
   Fuentes alojadas en el propio sitio (sin Google Fonts).
   ============================================================================= */

/* --- Fuentes -------------------------------------------------------------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

/* --- Tokens --------------------------------------------------------------- */
:root {
  --navy-950: #000c1f;
  --navy-900: #001431;
  --navy-800: #001a40;
  --navy: #002256;          /* navy del campus */
  --navy-600: #0b3270;
  --gold: #c9a227;
  --gold-light: #e4be50;
  --gold-pale: #f1dfa6;
  --gold-ink: #7d600c;      /* oro legible sobre fondos claros (AA) */
  --ivory: #faf8f3;
  --ivory-2: #f3efe4;
  --paper: #ffffff;
  --ink: #0b1a33;
  --ink-soft: #4a5468;
  --line: #e6e0d0;
  --line-dark: rgba(228, 190, 80, 0.18);

  --gold-grad: linear-gradient(135deg, #f0d47e 0%, #c9a227 45%, #a9861b 100%);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --header-h: 84px;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 30px 60px -30px rgba(0, 12, 31, 0.35);
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--gold); color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--navy-900); padding: .6rem 1rem; font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.anchor-alias { position: absolute; top: 0; }
.show-sm { display: none; }
@media (max-width: 600px) { .hide-sm, .eyebrow__rule { display: none; } .show-sm { display: inline; } }

/* Grano de película para fondos oscuros (SVG en data URI, permitido por CSP img-src data:) */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* --- Tipografía ----------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
.display em { font-style: italic; color: var(--gold-ink); }
.display--light { color: #fff; }
.display--light em { color: var(--gold-light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--gold-light); }
.hero__eyebrow::before { display: none; }
.eyebrow__rule { width: 2.25rem; height: 1px; background: var(--gold); }

.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-soft); max-width: 58ch; margin-top: 1.4rem; }
.lead--light { color: rgba(236, 240, 247, .78); }
.link { color: var(--gold-ink); text-underline-offset: 3px; }

/* --- Botones -------------------------------------------------------------- */
.btn {
  --pad-y: 1.05rem; --pad-x: 2rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-sans); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn__icon { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 10px 30px -10px rgba(201, 162, 39, .55); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn--ghost { color: #fff; border-color: rgba(228, 190, 80, .55); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { background: rgba(228, 190, 80, .12); border-color: var(--gold-light); }
.btn--sm { --pad-y: .7rem; --pad-x: 1.3rem; font-size: .7rem; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { box-shadow: 0 16px 40px -12px rgba(201, 162, 39, .75); }
  .btn--gold:hover::after { animation: shine .9s var(--ease); }
}
@keyframes shine { to { left: 130%; } }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: #fff;
  transition: background-color .5s var(--ease), height .5s var(--ease), box-shadow .5s var(--ease), backdrop-filter .5s;
}
.site-header.is-solid, .no-js .site-header, html:not(.js) .site-header {
  background: rgba(0, 20, 49, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
  height: 70px;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand__crest { width: 34px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: .08em; }
.brand__sub { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-pale); opacity: .85; }

.site-nav ul { display: flex; align-items: center; gap: 2.2rem; }
.site-nav a:not(.btn) {
  position: relative; text-decoration: none; font-size: .78rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .86); padding-block: .4rem; transition: color .3s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.site-nav__campus { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(228, 190, 80, .45); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1020px) {
  .site-header__campus { display: none; }
  .nav-toggle { display: block; }
  .brand__sub { display: none; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; display: grid; place-items: center;
    background: var(--navy-900);
    opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
  }
  .site-nav[data-open="true"] { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1.6rem; text-align: center; }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0; text-transform: none; }
  .site-nav__campus { display: block; margin-top: 1rem; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  color: #fff; background: var(--navy-900);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.85);
}
.hero__video { filter: grayscale(1) contrast(1.05) brightness(.8) blur(1.5px); }
.hero__video { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(201, 162, 39, .14), transparent 55%),
    linear-gradient(90deg, rgba(0, 12, 31, .96) 0%, rgba(0, 20, 49, .88) 45%, rgba(0, 26, 64, .74) 100%),
    linear-gradient(0deg, rgba(0, 12, 31, .9) 0%, transparent 40%);
  mix-blend-mode: normal;
}
.hero__media::after { /* tinte navy sobre el video en escala de grises (duotono) */
  content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color; opacity: .55;
}
.hero__inner { position: relative; }
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.7rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -0.015em;
  margin-top: .4rem;
}
.hero__title .line { display: block; }
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__lead { margin-top: 1.8rem; max-width: 52ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: rgba(236, 240, 247, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: .8rem 2.6rem; margin-top: 3.6rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark); max-width: 640px;
  font-size: .82rem; letter-spacing: .06em; color: rgba(236, 240, 247, .7);
}
.hero__proof strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2rem; letter-spacing: 0; color: var(--gold-light); line-height: 1.1; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid rgba(228, 190, 80, .5); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: var(--gold-light); border-radius: 2px; animation: scrollcue 2.2s var(--ease) infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --- Credenciales (marquee) ---------------------------------------------- */
.credentials { background: var(--navy-950); border-block: 1px solid var(--line-dark); overflow: hidden; }
.marquee { padding-block: 1.25rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track li {
  display: flex; align-items: center; gap: 3rem; padding-right: 3rem; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: rgba(241, 223, 166, .85);
}
.marquee__track li::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Secciones ------------------------------------------------------------ */
.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section--ivory { background: var(--ivory-2); }
.section--dark { background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.section--dark::before { /* halo dorado */
  content: ""; position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -20vw; top: -25vw;
  background: radial-gradient(circle, rgba(201, 162, 39, .12), transparent 65%);
}
.section-head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* --- Manifiesto ----------------------------------------------------------- */
.manifesto__grid { display: grid; gap: 4rem; align-items: start; }
.folio { margin-top: 3rem; display: flex; flex-direction: column; }
.folio__label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
.folio__num {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(5rem, 11vw, 8.5rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--gold); letter-spacing: .02em;
}
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.pillar__icon { width: 46px; height: 46px; padding: 10px; color: var(--gold-ink); border: 1px solid var(--gold); border-radius: 50%; }
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--navy-900); }
.pillar p { margin-top: .5rem; color: var(--ink-soft); }
@media (min-width: 960px) { .manifesto__grid { grid-template-columns: 1.05fr 1fr; gap: 6rem; } .pillars { margin-top: 2.4rem; } }

/* --- Cifras --------------------------------------------------------------- */
.stats { background: var(--navy); color: #fff; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 2.6rem 1rem; text-align: center; border-left: 1px solid var(--line-dark); }
.stat:nth-child(odd) { border-left: 0; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: var(--gold-light); }
.stat__label { display: block; margin-top: .6rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(236, 240, 247, .72); }
@media (min-width: 820px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } .stat:nth-child(odd) { border-left: 1px solid var(--line-dark); } .stat:first-child { border-left: 0; } }

/* --- Programa ------------------------------------------------------------- */
.curriculum { display: grid; border-top: 1px solid var(--line); }
.module {
  position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; align-items: baseline;
  padding: 1.8rem .5rem; border-bottom: 1px solid var(--line);
  transition: background-color .5s var(--ease), padding-left .5s var(--ease);
}
.module::before { /* barra dorada al hover */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform .5s var(--ease);
}
.module__num { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--gold-ink); }
.module__num svg { width: 30px; height: 30px; }
.module h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.15; color: var(--navy-900); }
.module p { margin-top: .3rem; color: var(--ink-soft); font-size: .98rem; }
.module--final { background: var(--paper); }
.module--final h3 { color: var(--gold-ink); }
@media (hover: hover) {
  .module:hover { background: var(--paper); padding-left: 1.5rem; }
  .module:hover::before { transform: scaleY(1); }
}
@media (min-width: 960px) {
  .curriculum { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
  .module--final { grid-column: 1 / -1; }
}

/* --- Qué incluye ---------------------------------------------------------- */
.perks { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.perk { background: var(--navy-900); padding: 2.6rem 2.2rem; transition: background-color .5s var(--ease); }
.perk:hover { background: #011a3d; }
.perk__icon { width: 34px; height: 34px; color: var(--gold-light); margin-bottom: 1.6rem; }
.perk h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.perk p { margin-top: .7rem; color: rgba(236, 240, 247, .72); font-size: .98rem; }
.perk strong { color: var(--gold-light); font-weight: 500; }
@media (min-width: 700px) { .perks { grid-template-columns: repeat(2, 1fr); } .perk--wide { grid-column: 1 / -1; } }
@media (min-width: 1020px) { .perks { grid-template-columns: repeat(3, 1fr); } .perk--wide { grid-column: span 2; } }

/* --- Plataforma (maqueta) ------------------------------------------------- */
.platform__grid { display: grid; gap: 4rem; align-items: center; }
.features { display: grid; gap: 1.8rem; margin-top: 2.6rem; }
.features li { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; }
.features svg { width: 26px; height: 26px; color: var(--gold-ink); margin-top: .2rem; }
.features h3 { font-weight: 500; font-size: 1.02rem; color: var(--navy-900); }
.features p { color: var(--ink-soft); font-size: .95rem; }

.device { position: relative; perspective: 1600px; }
.device__screen {
  position: relative; border-radius: 14px; padding: 12px; background: linear-gradient(160deg, #1c2a44, #050d1c);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: rotateX(8deg) rotateY(-14deg) rotateZ(1deg); transform-origin: center; transition: transform 1s var(--ease);
}
.device__base { height: 14px; margin: -2px 6% 0; border-radius: 0 0 16px 16px; background: linear-gradient(#c8ccd4, #8d939e); transform: rotateX(8deg) rotateY(-14deg); opacity: .9; }
.ui { border-radius: 6px; overflow: hidden; background: #f6f7f9; font-size: 11px; line-height: 1.3; }
.ui__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #e9ecf1; }
.ui__dot { width: 8px; height: 8px; border-radius: 50%; background: #c9ced8; }
.ui__url { margin-left: 10px; padding: 2px 10px; border-radius: 10px; background: #fff; color: #6b7280; font-size: 9px; }
.ui__body { display: grid; grid-template-columns: 52px 1fr; min-height: 300px; }
.ui__side { background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 14px; }
.ui__side img { width: 22px; height: auto; }
.ui__side i { width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.ui__main { padding: 18px; }
.ui__hello { font-family: var(--font-display); font-size: 18px; color: var(--navy); font-weight: 600; }
.ui__progress { margin-top: 12px; padding: 12px; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(0, 34, 86, .08); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; color: var(--navy); font-weight: 500; }
.ui__progress b { grid-column: 1 / -1; grid-row: 2; }
.ui__progress small { grid-column: 2; grid-row: 1; color: var(--gold-ink); }
.ui__progress b, .ui__card b { display: block; height: 5px; border-radius: 5px; background: #e6e9ef; overflow: hidden; }
.ui__progress em, .ui__card em { display: block; height: 100%; width: 100%; background: var(--gold-grad); transform-origin: left; }
.ui__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.ui__card { display: grid; gap: 8px; padding: 12px 10px; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(0, 34, 86, .06); color: var(--navy); }
.ui__card::before { content: ""; height: 34px; border-radius: 5px; background: linear-gradient(135deg, var(--navy), #2b4f8f); }
.p10 { transform: scaleX(.1); } .p40 { transform: scaleX(.4); } .p62 { transform: scaleX(.62); } .p80 { transform: scaleX(.8); } .p100 { transform: scaleX(1); }
.device__badge {
  position: absolute; left: -8%; bottom: -4%; display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.2rem; border-radius: 999px; background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line-dark); font-size: .8rem; line-height: 1.25;
}
.device__badge svg { width: 30px; height: 30px; color: var(--gold-light); }
.device__badge small { color: var(--gold-pale); font-size: .72rem; }
@media (min-width: 960px) {
  .platform__grid { grid-template-columns: 1fr 1.15fr; gap: 5rem; }
  .device:hover .device__screen { transform: rotateX(4deg) rotateY(-7deg); }
}
@media (max-width: 600px) { .device__badge { left: 0; bottom: -1.4rem; } }

/* --- Cómo funciona -------------------------------------------------------- */
.steps-wrap { position: relative; }
.steps { display: grid; gap: 2.4rem; position: relative; z-index: 1; }
.step { position: relative; padding-left: 4.4rem; }
.step__num {
  position: absolute; left: 0; top: -.3rem; width: 3rem; height: 3rem; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.5rem; border-radius: 50%;
  background: var(--ivory-2); color: var(--gold-ink); border: 1px solid var(--gold);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.step__num.is-lit { background: var(--navy-900); color: var(--gold-light); box-shadow: 0 0 0 6px rgba(201, 162, 39, .15); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--navy-900); }
.step p { margin-top: .4rem; color: var(--ink-soft); }
.steps__track { position: absolute; left: calc(1.5rem - .5px); top: 1rem; bottom: 1rem; width: 1px; background: var(--line); }
.steps__progress { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: top; }
.js .steps__progress { transform: scaleY(0); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.4rem; }
  .step { padding-left: 0; padding-top: 4.6rem; }
  .step__num { top: 0; }
  .steps__track { left: 1.5rem; right: 1.5rem; top: 1.5rem; bottom: auto; width: auto; height: 1px; }
  .steps__progress { transform-origin: left; }
  .js .steps__progress { transform: scaleX(0); }
}

/* --- Inversión ------------------------------------------------------------ */
.plans { display: grid; gap: 1.8rem; max-width: 980px; margin-inline: auto; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 2.8rem 2.4rem;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .025); border-radius: var(--radius-lg);
}
.plan--featured {
  background: linear-gradient(170deg, rgba(201, 162, 39, .14), rgba(0, 20, 49, .2) 40%), var(--navy-800);
  border-color: rgba(228, 190, 80, .55);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(228, 190, 80, .12) inset;
}
.plan__badge {
  align-self: flex-start; padding: .4rem 1rem; border-radius: 999px; background: var(--gold-grad); color: var(--navy-900);
  font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.plan__badge--soft { background: transparent; color: var(--gold-light); border: 1px solid rgba(228, 190, 80, .45); }
.plan__name { margin-top: 1.6rem; font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; line-height: 1.1; }
.plan__desc { margin-top: .3rem; color: rgba(236, 240, 247, .66); font-size: .9rem; }
.plan__price { margin-top: 2rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(3.4rem, 6vw, 4.4rem); line-height: 1; color: #fff; }
.plan__cur { font-size: .5em; vertical-align: .7em; color: var(--gold-light); margin-right: .1em; }
.plan__mxn { font-family: var(--font-sans); font-size: .9rem; font-weight: 400; letter-spacing: .14em; color: rgba(236, 240, 247, .7); }
.plan__period { margin-top: .6rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line-dark); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-pale); }
.plan__list { display: grid; gap: .95rem; margin: 1.8rem 0 2.4rem; flex: 1; }
.plan__list li { display: flex; align-items: center; gap: .8rem; color: rgba(236, 240, 247, .88); font-size: .97rem; }
.plan__list svg { width: 18px; height: 18px; flex: none; color: var(--gold-light); }
.tag { margin-left: .2rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid rgba(228, 190, 80, .4); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-pale); }
.pricing__note { margin-top: 3rem; text-align: center; color: rgba(236, 240, 247, .7); font-size: .95rem; }
.pricing__note a { color: var(--gold-light); text-underline-offset: 3px; }
@media (min-width: 860px) { .plans { grid-template-columns: 1.08fr 1fr; } .plan--featured { top: -14px; } }

/* --- Docentes ------------------------------------------------------------- */
.teachers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.6rem 1.6rem; }
.teacher { text-align: left; }
.teacher__mono {
  display: grid; place-items: end start; aspect-ratio: 4 / 5; padding: 1.2rem; margin-bottom: 1.2rem; border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 162, 39, .28), transparent 60%),
    linear-gradient(160deg, var(--navy-600), var(--navy-900));
  font-family: var(--font-display); font-style: italic; font-size: 2.6rem; color: var(--gold-light);
  position: relative; overflow: hidden;
}
.teacher__mono::before {
  content: ""; position: absolute; right: -12%; top: 10%; width: 70%; aspect-ratio: 34 / 40;
  background: url("/assets/img/crest-gold.png") center / contain no-repeat; opacity: .1;
}
.teacher__mono::after { content: ""; position: absolute; inset: .7rem; border: 1px solid rgba(228, 190, 80, .25); border-radius: 2px; }
.teacher h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--navy-900); }
.teacher p { margin-top: .2rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
@media (min-width: 720px) { .teachers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1020px) { .teachers { grid-template-columns: repeat(5, 1fr); } }

/* --- FAQ ------------------------------------------------------------------ */
.faq-grid { display: grid; gap: 3rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold);
  background:
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 12px 1px no-repeat,
    linear-gradient(var(--gold-ink), var(--gold-ink)) center / 1px 12px no-repeat;
  transition: transform .5s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--paper); }
.faq__body { padding: 0 3rem 1.8rem 0; color: var(--ink-soft); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .85fr 1.15fr; gap: 6rem; } .faq-grid .section-head { position: sticky; top: 110px; align-self: start; } }

/* --- CTA final ------------------------------------------------------------ */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(6rem, 13vw, 10rem); color: #fff; text-align: center; background: var(--navy-950); }
.cta__media { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(201, 162, 39, .22), transparent 70%),
    radial-gradient(50% 60% at 50% 120%, rgba(0, 34, 86, .9), transparent 70%);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__crest { width: 88px; height: auto; margin-bottom: 2.2rem; filter: drop-shadow(0 12px 30px rgba(201, 162, 39, .35)); }
.cta__title { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 16ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.6rem; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; margin-top: 3rem; }
.socials a { display: inline-flex; align-items: center; gap: .6rem; color: rgba(236, 240, 247, .78); text-decoration: none; font-size: .9rem; transition: color .3s; }
.socials a:hover { color: var(--gold-light); }
.socials svg { width: 18px; height: 18px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(236, 240, 247, .7); border-top: 1px solid var(--line-dark); padding-top: 4.5rem; }
.footer__grid { display: grid; gap: 3rem; padding-bottom: 3.5rem; }
.footer__brand img { width: 150px; height: auto; opacity: .95; }
.footer__brand p { margin-top: 1.4rem; max-width: 34ch; font-size: .92rem; }
.footer__col h4 { font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.2rem; }
.footer__col ul { display: grid; gap: .65rem; }
.footer__col a { text-decoration: none; font-size: .92rem; transition: color .3s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.8rem; border-top: 1px solid var(--line-dark); font-size: .78rem; }
.footer__legal { color: var(--gold-pale); letter-spacing: .04em; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* --- WhatsApp flotante ---------------------------------------------------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: #1fae54; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }

/* --- Estados iniciales de animación (SOLO con JS) ------------------------- */
.js [data-anim], .js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(24px); }
.js .hero__title .line { opacity: 0; }
.js .device__screen { opacity: 0; }

/* Reduced motion: todo visible y estático */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-anim], .js [data-reveal], .js [data-reveal-group] > *, .js .hero__title .line, .js .device__screen { opacity: 1 !important; transform: none !important; }
  .js .steps__progress { transform: none !important; }
  .marquee__track { animation: none; }
  .hero__video { display: none; }
}
