/* Despeja · academia preuniversitaria (demo). Amarillo girasol, tinta azul de lapicero y papel cuadriculado;
   rojo de corrector y celeste como acentos. Tipografía: Bricolage Grotesque (titulares), Lexend (texto)
   y Caveat (notas a mano). Primero el teléfono. */

:root {
  --amarillo: #ffd23f;
  --amarillo-2: #ffe17a;
  --amarillo-3: #f2bd12;
  --papel: #fbf8f0;
  --papel-2: #f2eddf;
  --blanco: #fffdf7;
  --tinta: #121a45;
  --tinta-2: #3b4372;
  --azul: #1f37b0;
  --azul-2: #2a46cc;
  --azul-osc: #172a8a;
  --cielo: #5ab8f0;
  --cielo-claro: #d6eefd;
  --tomate: #ff5a3c;
  --tomate-claro: #ffe0d8;
  --verde: #12855a;
  --verde-claro: #d5f2e3;
  --gris: #5a6185;
  --linea: rgb(18 26 69 / .14);
  --cuadro: rgb(64 140 214 / .17);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --sans: "Lexend", system-ui, sans-serif;
  --mano: "Caveat", "Comic Sans MS", cursive;
  --cab-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 300 .98rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
.envoltura { width: min(1180px, 100% - 32px); margin-inline: auto; }
.cuadriculado { background-image: linear-gradient(var(--cuadro) 1px, transparent 1px), linear-gradient(90deg, var(--cuadro) 1px, transparent 1px); background-size: 26px 26px; }

/* ---------- Tipos ---------- */
.antetitulo { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--azul); }
.antetitulo::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--amarillo); box-shadow: inset 0 0 0 2px var(--tinta); }
.titulo-sec, .titulo-fase { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 82; font-size: clamp(2.5rem, 11vw, 5.4rem); line-height: .95; letter-spacing: -.035em; text-wrap: balance; }
.titulo-sec em, .titulo-fase em { font-style: normal; color: var(--azul); }
.sec-bajada { margin-top: 1rem; max-width: 52ch; color: var(--tinta-2); }
.nota { color: var(--gris); font-size: .84rem; margin-top: .8rem; }
.nota-mano { font-family: var(--mano); font-size: 1.5rem; line-height: 1.1; color: var(--tomate); transform: rotate(-3deg); display: inline-flex; align-items: flex-end; gap: .2rem; }
.nota-mano svg { width: 56px; height: 36px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.4rem; border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; font-size: .98rem; text-decoration: none; text-align: center; line-height: 1.15;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .25s, color .25s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(2px); }
.btn-tinta { background: var(--tinta); color: var(--papel); box-shadow: 0 4px 0 #050a24; }
.btn-tinta:hover { background: var(--azul); }
.btn-tinta:active { box-shadow: 0 2px 0 #050a24; }
.btn-borde { box-shadow: inset 0 0 0 2px var(--tinta); background: rgb(255 253 247 / .45); }
.btn-borde:hover { background: var(--tinta); color: var(--papel); }
.btn-amarillo { background: var(--amarillo); color: var(--tinta); box-shadow: 0 4px 0 var(--amarillo-3); }
.btn-amarillo:hover { background: var(--amarillo-2); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .88rem; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 0 1.7rem; font-size: 1.02rem; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 8px; }

/* ---------- Carga ---------- */
.carga { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: .3rem; background-color: var(--papel); }
.carga { background-image: linear-gradient(var(--cuadro) 1px, transparent 1px), linear-gradient(90deg, var(--cuadro) 1px, transparent 1px); background-size: 26px 26px; background-position: center; }
.carga-grafico { width: min(68vw, 280px); height: auto; overflow: visible; }
.carga-eje { font: 700 15px var(--mano); fill: var(--tinta); }
.carga-num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.carga-num b { font-weight: 800; }
.carga-nota { font-family: var(--mano); font-size: 1.35rem; color: var(--gris); }
html:not(.js) .carga { display: none; }

/* ---------- Cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cab-h); display: flex; align-items: center; gap: 1rem; padding: 0 16px; transition: background-color .4s, box-shadow .4s; }
.cab.solida { background: rgb(251 248 240 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.marca-icono { width: 36px; height: 36px; flex: none; }
.marca-texto { display: grid; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 1.5rem; line-height: .9; letter-spacing: -.03em; }
.marca-texto small { font-family: var(--sans); font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-2); margin-top: .25rem; }
.cab-nav { display: none; gap: 1.8rem; margin-left: auto; }
.cab-nav a { text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--tinta-2); background: linear-gradient(var(--amarillo), var(--amarillo)) 0 88% / 0 40% no-repeat; transition: background-size .35s var(--ease), color .2s; }
.cab-nav a:hover { color: var(--tinta); background-size: 100% 40%; }
.cab .btn { margin-left: auto; }
@media (min-width: 960px) { .cab { padding: 0 32px; } .cab-nav { display: flex; } .cab .btn { margin-left: 1.4rem; } }

/* ---------- Inicio ---------- */
.inicio { position: relative; height: 420vh; background: var(--amarillo); }
.inicio-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; touch-action: pan-y;
  background-color: var(--amarillo);
  background-image: radial-gradient(70% 55% at 50% 62%, rgb(255 236 150 / .85), transparent 70%), linear-gradient(rgb(18 26 69 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(18 26 69 / .07) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px; background-position: center; }
.escena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.escena:active { cursor: grabbing; }
.escena-respaldo { position: absolute; left: 50%; top: 71%; width: min(52vw, 290px); transform: translate(-50%, -50%); display: none; }
.escena-respaldo svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 24px rgb(120 90 0 / .35)); }
.sin-3d .escena-respaldo { display: block; }
.sin-3d .escena { display: none; }
.sin-3d .pasos, .sin-3d .desliza { display: none; }
.fase { position: absolute; left: 16px; right: 16px; z-index: 2; text-align: center; pointer-events: none; }
.fase a, .fase button { pointer-events: auto; }
.fase-1 { top: calc(var(--cab-h) + 10px); }
.fase-1 .antetitulo { margin-bottom: .2rem; }
.solo-ancho { display: none; }
@media (min-width: 600px) { .solo-ancho { display: inline; } }
.titulo { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 78, "opsz" 96; font-size: clamp(5.4rem, 27vw, 13rem); line-height: .86; letter-spacing: -.05em; }
.titulo .l { display: inline-block; }
.definicion { font-family: var(--mano); font-size: 1.28rem; line-height: 1.1; color: var(--azul); transform: rotate(-2deg); margin-top: .1rem; }
.fase-1 .bajada { margin: .5rem auto 0; max-width: 32ch; color: var(--tinta-2); font-size: .98rem; line-height: 1.45; }
.acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.fase-2, .fase-3 { opacity: 0; visibility: hidden; top: calc(var(--cab-h) + 16px); }
.fase-2 .titulo-fase, .fase-3 .titulo-fase { font-size: clamp(2.6rem, 12vw, 5.6rem); }
.subrayado { position: relative; display: inline-block; }
.subrayado svg { position: absolute; left: -2%; right: -2%; bottom: -.18em; width: 104%; height: .32em; overflow: visible; }
.fase-nota { margin-top: .9rem; font-family: var(--mano); font-size: 1.45rem; line-height: 1.15; color: var(--tinta-2); }
.pasos { position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 2; transform: translateX(-50%); display: grid; justify-items: center; gap: .45rem; opacity: 0; pointer-events: none; }
.pasos-txt { font-family: var(--mano); font-size: 1.4rem; line-height: 1; color: var(--tinta); }
.pasos-txt b { font-family: var(--display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pasos-puntos { display: flex; gap: 5px; }
.pasos-puntos i { width: 13px; height: 13px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.8px var(--tinta); transition: background-color .3s, transform .4s var(--ease); }
.pasos-puntos i.hecho { background: var(--tinta); transform: rotate(90deg); }
.desliza { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 2; display: grid; justify-items: center; gap: .1rem; font-family: var(--mano); font-size: 1.3rem; color: var(--tinta-2); pointer-events: none; }
.desliza svg { width: 22px; height: 22px; animation: baja 1.6s ease-in-out infinite; }
@keyframes baja { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.sonido { position: absolute; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 3; width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; background: rgb(255 253 247 / .55); box-shadow: inset 0 0 0 2px var(--tinta); color: var(--tinta); }
.sonido[hidden] { display: none; }
.sonido svg { width: 22px; height: 22px; }
.sonido .ondas { display: none; }
.sonido[aria-pressed="true"] { background: var(--tinta); color: var(--amarillo); }
.sonido[aria-pressed="true"] .ondas { display: inline; }
.sonido[aria-pressed="true"] .mudo { display: none; }
@media (max-height: 640px) { .definicion { display: none; } }
@media (min-width: 960px) {
  .fase { text-align: left; left: 6vw; right: auto; max-width: 44vw; }
  .fase-1 { top: auto; bottom: 13vh; }
  .fase-1 .bajada { margin: .7rem 0 0; font-size: 1.1rem; }
  .definicion { font-size: 1.6rem; }
  .acciones { justify-content: flex-start; margin-top: 1.4rem; }
  .fase-2, .fase-3 { top: auto; bottom: 16vh; }
  .pasos { left: 6vw; transform: none; justify-items: start; bottom: 7vh; }
  .escena-respaldo { left: 70%; top: 54%; width: min(34vw, 460px); }
}

/* ---------- Simulacro ---------- */
.simulacro { padding: 11vh 0 12vh; background-color: var(--papel); }
.simulacro { background-image: linear-gradient(var(--cuadro) 1px, transparent 1px), linear-gradient(90deg, var(--cuadro) 1px, transparent 1px); background-size: 26px 26px; }
.sim-grid { display: grid; gap: 1.6rem; }
.sim-bajada { margin-top: 1rem; color: var(--tinta-2); max-width: 44ch; }
.sim-intro .nota-mano { margin-top: .8rem; }
.hoja { position: relative; border-radius: var(--r); background: var(--blanco); box-shadow: 0 0 0 2px var(--tinta), 6px 8px 0 var(--tinta); overflow: clip; }
.hoja::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 2px; background: rgb(255 90 60 / .45); pointer-events: none; }
.hoja-cab { position: sticky; top: var(--cab-h); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem .85rem 46px; border-bottom: 2px solid var(--tinta); background: var(--amarillo); }
.hoja-prog { display: flex; gap: 5px; }
.hoja-prog li { width: 26px; height: 9px; border-radius: 9px; box-shadow: inset 0 0 0 1.8px var(--tinta); transition: background-color .3s, width .4s var(--ease); }
.hoja-prog li.actual { width: 40px; background: rgb(18 26 69 / .2); }
.hoja-prog li.bien { background: var(--azul); box-shadow: inset 0 0 0 1.8px var(--azul); }
.hoja-prog li.mal { background: var(--tomate); box-shadow: inset 0 0 0 1.8px var(--tinta); }
.reloj { display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 .75rem; border-radius: 10px; background: var(--tinta); color: var(--papel); font-family: var(--display); font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; transition: background-color .3s; }
.reloj svg { width: 18px; height: 18px; }
.reloj.poco { background: var(--tomate); color: var(--tinta); }
.reloj.parado { background: rgb(18 26 69 / .15); color: var(--tinta); }
.hoja-cuerpo { position: relative; padding: 1.1rem 1.1rem 1.3rem 46px; min-height: 360px; }
.sim-inicio { display: grid; gap: 1rem; justify-items: start; }
.sim-inicio h3 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 1.9rem; line-height: 1.02; letter-spacing: -.03em; }
.sim-reglas { display: grid; gap: .5rem; }
.sim-reglas li { display: flex; gap: .6rem; align-items: baseline; }
.sim-reglas li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--amarillo); box-shadow: inset 0 0 0 1.6px var(--tinta); transform: translateY(1px); }
.preg-area { display: inline-block; margin-bottom: .45rem; padding: .15rem .55rem; border-radius: 6px; background: var(--cielo-claro); color: var(--azul); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.preg-txt { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 92; font-size: 1.28rem; line-height: 1.18; letter-spacing: -.015em; }
.preg-serie { display: block; margin-top: .35rem; font-size: 1.6rem; letter-spacing: .02em; color: var(--azul); }
.opciones-sim { display: grid; gap: .45rem; margin-top: .9rem; }
.op { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 48px; padding: .35rem .8rem .35rem .45rem; border-radius: 12px; border: 0; background: rgb(18 26 69 / .045); box-shadow: inset 0 0 0 1.6px var(--linea); cursor: pointer; text-align: left; font-size: 1rem; font-weight: 700;
  transition: background-color .25s, box-shadow .25s, transform .3s var(--ease); }
.op:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--tinta); }
.op:disabled { cursor: default; }
.op-letra { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--tinta); font-family: var(--display); font-weight: 800; font-size: .95rem; transition: background-color .25s, color .25s; }
.op-marca { position: absolute; right: 10px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); }
.op-marca path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.op.correcta { background: var(--verde-claro); box-shadow: inset 0 0 0 2px var(--verde); }
.op.correcta .op-letra { background: var(--verde); color: #fff; box-shadow: none; }
.op.correcta .op-marca path { stroke: var(--verde); }
.op.incorrecta { background: var(--tomate-claro); box-shadow: inset 0 0 0 2px var(--tomate); }
.op.incorrecta .op-letra { background: var(--tomate); color: var(--tinta); box-shadow: none; }
.op.incorrecta .op-marca path { stroke: var(--tomate); }
.op.apagada { opacity: .5; }
.retro { margin-top: .8rem; padding: .7rem .85rem; border-radius: 12px; background: var(--papel-2); }
.retro b { font-family: var(--display); font-size: 1.08rem; }
.retro.bien b { color: var(--verde); }
.retro.mal b { color: #d43a1c; }
.retro p { font-size: .93rem; line-height: 1.45; color: var(--tinta-2); margin-top: .15rem; }
.sim-sig { margin-top: .9rem; width: 100%; }
.resultado { display: grid; gap: 1rem; }
.res-cab { display: flex; align-items: center; gap: 1.1rem; }
.anillo { position: relative; width: 116px; height: 116px; flex: none; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 11; }
.anillo .fondo { stroke: rgb(18 26 69 / .1); }
.anillo .valor { stroke: var(--azul); stroke-linecap: round; }
.anillo p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: .9; letter-spacing: -.03em; }
.anillo p small { font-size: .78rem; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; color: var(--gris); }
.res-cab h3 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 1.7rem; line-height: 1; letter-spacing: -.03em; }
.res-cab .res-tiempo { color: var(--gris); font-size: .9rem; margin-top: .3rem; }
.res-areas { display: grid; gap: .35rem; }
.res-areas li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--linea); font-size: .95rem; }
.res-areas b { font-variant-numeric: tabular-nums; }
.res-msj { padding: .8rem .9rem; border-radius: 12px; background: var(--amarillo-2); font-size: .95rem; line-height: 1.45; }
.res-msj strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.res-acciones { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 960px) {
  .sim-grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
  .sim-intro { position: sticky; top: calc(var(--cab-h) + 40px); }
  .hoja-cuerpo { padding: 1.6rem 2rem 1.8rem 62px; min-height: 400px; }
  .hoja::before { left: 40px; }
  .hoja-cab { padding-left: 62px; }
  .preg-txt { font-size: 1.6rem; }
}

/* ---------- Cursos ---------- */
.cursos { padding: 11vh 0 12vh; background: var(--papel-2); overflow: hidden; }
.cursos-lista { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2rem 16px 1.6rem; scrollbar-width: none; }
.cursos-lista::-webkit-scrollbar { display: none; }
.curso { position: relative; flex: none; width: 236px; scroll-snap-align: center; padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px; background: var(--blanco); box-shadow: 0 0 0 2px var(--tinta), 4px 5px 0 var(--tinta);
  background-image: linear-gradient(transparent 33px, rgb(64 140 214 / .22) 33px, rgb(64 140 214 / .22) 34px, transparent 34px); background-size: 100% 30px; background-position: 0 50px; }
.curso:nth-child(odd) { transform: rotate(-1.2deg); }
.curso:nth-child(even) { transform: rotate(1deg); }
.curso-icono { width: 74px; height: 74px; margin-bottom: .6rem; border-radius: 14px; background: var(--fondo-ic, var(--amarillo)); display: grid; place-items: center; }
.curso-icono svg { width: 54px; height: 54px; overflow: visible; }
.curso-icono path, .curso-icono circle, .curso-icono rect, .curso-icono ellipse, .curso-icono line, .curso-icono polyline { fill: none; stroke: var(--tinta); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.curso-icono text { font: 700 17px var(--mano); fill: var(--tinta); }
.curso h3 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88; font-size: 1.32rem; line-height: 1.05; letter-spacing: -.02em; }
.curso p { margin-top: .4rem; font-size: .9rem; line-height: 1.45; color: var(--tinta-2); }
.curso-tipo { display: inline-block; margin-top: .7rem; font-family: var(--mano); font-size: 1.15rem; color: var(--tomate); }
.curso-ancha { width: 300px; padding: 0; overflow: hidden; background-image: none; }
.curso-ancha img { width: 100%; height: 150px; object-fit: cover; }
.curso-ancha div { padding: .9rem 1.1rem 1.1rem; }
@media (min-width: 960px) {
  .cursos-lista { width: min(1180px, 100% - 32px); margin-inline: auto; padding: 2.6rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; overflow: visible; }
  .curso, .curso-ancha { width: auto; }
  .curso-ancha { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .curso-ancha img { height: 100%; }
}

/* ---------- Ciclos ---------- */
.ciclos { padding: 11vh 0 12vh; background: var(--azul); color: var(--papel); }
.ciclos { background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); background-size: 26px 26px; }
.ciclos .antetitulo { color: var(--amarillo); }
.ciclos .titulo-sec em { color: var(--amarillo); }
.ciclo-grid { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
.tablero { padding: 1rem; border-radius: var(--r); background: var(--blanco); color: var(--tinta); box-shadow: 0 0 0 2px var(--tinta), 6px 8px 0 var(--azul-osc); }
.tab-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tab-ciclo { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 1.45rem; line-height: 1; letter-spacing: -.02em; }
.tab-det { font-size: .84rem; color: var(--gris); margin-top: .2rem; }
.tab-precio { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; column-gap: .2rem; text-align: right; line-height: 1; }
.tab-moneda { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.tab-precio b { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: inline-block; }
.tab-precio small { grid-column: 1 / -1; font-size: .74rem; color: var(--gris); margin-top: .25rem; }
.grilla { position: relative; display: grid; grid-template-columns: 34px repeat(6, 1fr); grid-template-rows: 22px 196px; gap: 0 4px; margin-top: .8rem; }
.g-dia { grid-row: 1; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--gris); }
.g-horas { grid-column: 1; grid-row: 2; position: relative; }
.g-horas span { position: absolute; left: 0; font-size: .64rem; color: var(--gris); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.g-col { grid-row: 2; position: relative; border-radius: 8px; background: rgb(18 26 69 / .04); background-image: linear-gradient(rgb(18 26 69 / .07) 1px, transparent 1px); background-size: 100% calc(100% / 5); }
.bloque { position: absolute; left: 0; right: 0; display: grid; align-content: center; justify-items: center; padding: 2px; border-radius: 7px; overflow: hidden; font-size: .64rem; font-weight: 700; line-height: 1.1; text-align: center; box-shadow: inset 0 0 0 1.5px var(--tinta);
  transition: top .75s var(--ease), height .75s var(--ease), opacity .45s, transform .6s var(--ease), background-color .4s; transition-delay: var(--retraso, 0s); }
.bloque small { display: none; font-weight: 400; font-size: .58rem; opacity: .8; }
.bloque { hyphens: manual; -webkit-hyphens: manual; }
.bloque.mate { background: var(--amarillo); }
.bloque.verbal { background: #bfe4ff; }
.bloque.ciencias { background: var(--verde-claro); }
.bloque.letras { background: #ffe0c2; }
.bloque.taller { background: var(--blanco); }
.bloque.simula { background: var(--tomate); }
.bloque.fuera { opacity: 0; transform: scale(.6); }
.bloque.virtual { box-shadow: inset 0 0 0 1.5px var(--tinta); background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgb(255 255 255 / .55) 5px 7px); }
.tab-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--linea); }
.tab-datos dt { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.tab-datos dd { font-weight: 700; font-size: .88rem; line-height: 1.25; }
.ciclo-opciones { display: grid; gap: 1rem; align-content: start; }
.ciclo-opciones legend, .ficha legend { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .45rem; }
.ciclo-opciones legend { color: #c9d2ff; }
.ciclo-opciones fieldset, .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ciclo-opciones label, .chips label { cursor: pointer; }
.ciclo-opciones input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.ciclo-opciones label span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 .95rem; border-radius: 11px; box-shadow: inset 0 0 0 1.8px rgb(255 255 255 / .35); font-weight: 700; font-size: .93rem; transition: background-color .25s, color .25s, box-shadow .25s; }
.ciclo-opciones input:checked + span { background: var(--amarillo); color: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta), 0 3px 0 var(--tinta); }
.ciclo-opciones input:focus-visible + span, .chips input:focus-visible + span { outline: 3px solid var(--amarillo); outline-offset: 2px; }
.ciclo-opciones .btn { margin-top: .4rem; }
.ciclo-opciones .nota { color: #c9d2ff; margin-top: 0; }
@media (max-width: 420px) { .ciclo-opciones label span { padding: 0 .72rem; font-size: .86rem; } }
@media (max-width: 959px) {
  .tablero { position: sticky; top: calc(var(--cab-h) + 6px); z-index: 2; }
}
@media (min-width: 960px) {
  .ciclo-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: start; margin-top: 2.6rem; }
  .tablero { padding: 1.6rem; order: 2; position: sticky; top: calc(var(--cab-h) + 24px); }
  .grilla { grid-template-rows: 26px 300px; gap: 0 8px; grid-template-columns: 44px repeat(6, 1fr); }
  .bloque { font-size: .8rem; }
  .bloque small { display: block; font-size: .7rem; }
  .g-horas span { font-size: .72rem; }
  .tab-precio b { font-size: 3.4rem; }
}

/* ---------- Matrícula ---------- */
.matricula { padding: 11vh 0 12vh; background-color: var(--papel); }
.matricula { background-image: linear-gradient(var(--cuadro) 1px, transparent 1px), linear-gradient(90deg, var(--cuadro) 1px, transparent 1px); background-size: 26px 26px; }
.mat-grid { display: grid; gap: 1.6rem; }
.ficha { display: grid; gap: .8rem; padding: 1.1rem; border-radius: var(--r); background: var(--blanco); box-shadow: 0 0 0 2px var(--tinta), 6px 8px 0 var(--tinta); }
.ficha legend { color: var(--tinta-2); }
.chips label span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .85rem; border-radius: 11px; box-shadow: inset 0 0 0 1.6px var(--linea); background: rgb(18 26 69 / .03); font-weight: 700; font-size: .9rem; transition: background-color .25s, color .25s, box-shadow .25s; }
.chips input:checked + span { background: var(--tinta); color: var(--papel); box-shadow: none; }
.campo { display: grid; gap: .3rem; }
.campo > span { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); }
.campo > span i { font-style: normal; letter-spacing: .04em; text-transform: none; font-weight: 400; color: var(--gris); }
.campo input, .campo select { width: 100%; height: 48px; padding: 0 .9rem; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.8px var(--linea); background: #fff; font-size: 1rem; color: var(--tinta); transition: box-shadow .2s; }
.campo select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6' fill='none' stroke='%23121a45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; padding-right: 2.2rem; }
.campo input:focus, .campo select:focus { outline: none; box-shadow: inset 0 0 0 2.4px var(--azul); }
.campo input.error { box-shadow: inset 0 0 0 2.4px var(--tomate); }
.ficha-dos { display: grid; grid-template-columns: 1.2fr 1fr; gap: .6rem; }
.ficha-error { color: #c23215; font-weight: 700; font-size: .9rem; }
.ficha-error[hidden] { display: none; }
.ficha .btn { margin-top: .2rem; }
.ficha .nota { margin-top: 0; text-align: center; }
.mat-intro .nota-mano { margin-top: 1rem; }
@media (min-width: 960px) {
  .mat-grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
  .mat-intro { position: sticky; top: calc(var(--cab-h) + 40px); }
  .ficha { padding: 1.8rem; gap: 1rem; }
}

/* ---------- Semana ---------- */
.semana { padding: 11vh 0 12vh; background: var(--papel); }
.semana-grid { display: grid; gap: 2.4rem; }
.linea { position: relative; display: grid; gap: 1.1rem; margin-top: 2rem; padding-left: 4px; --dibujado: 0; }
.linea::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 30px; width: 3px; border-radius: 3px; background: rgb(18 26 69 / .12); }
.linea::after { content: ""; position: absolute; left: 25px; top: 10px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--azul); transform-origin: top; transform: scaleY(var(--dibujado)); }
.linea li { position: relative; z-index: 1; display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: start; }
.dia { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blanco); box-shadow: inset 0 0 0 2px var(--tinta); font-family: var(--display); font-weight: 800; font-size: .92rem; transition: background-color .35s, transform .5s var(--ease); }
.linea li.visto .dia { background: var(--amarillo); transform: rotate(-6deg); }
.linea li:last-child .dia { box-shadow: inset 0 0 0 2px var(--tinta); }
.linea li:last-child.visto .dia { background: var(--tomate); }
.linea b { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 90; font-size: 1.22rem; line-height: 1.1; letter-spacing: -.015em; }
.linea p { color: var(--tinta-2); font-size: .95rem; line-height: 1.45; margin-top: .15rem; }
.semana-foto { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 2px var(--tinta), 6px 8px 0 var(--tinta); }
.semana-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.semana-foto figcaption { position: absolute; left: 12px; bottom: 12px; padding: .2rem .7rem; border-radius: 8px; background: var(--amarillo); font-family: var(--mano); font-size: 1.3rem; line-height: 1.2; transform: rotate(-2deg); }
@media (min-width: 960px) {
  .semana-grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: start; }
  .semana-foto { position: sticky; top: calc(var(--cab-h) + 40px); }
  .semana-foto img { aspect-ratio: 4 / 5; }
}

/* ---------- Material ---------- */
.material { padding: 11vh 0 12vh; background: var(--amarillo); }
.material .antetitulo { color: var(--tinta); }
.material .antetitulo::before { background: var(--blanco); }
.material-grid { display: grid; gap: 1.6rem; margin-top: 2rem; }
.material-foto { border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 2px var(--tinta), 6px 8px 0 var(--tinta); }
.material-foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.material-lista { display: grid; gap: .7rem; }
.material-lista li { display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: center; padding: .8rem; border-radius: 16px; background: rgb(255 253 247 / .7); box-shadow: inset 0 0 0 2px var(--tinta); }
.material-lista svg { width: 52px; height: 52px; overflow: visible; }
.material-lista svg :is(path, rect, circle, line, polyline) { fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.material-lista b { display: block; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 90; font-size: 1.12rem; line-height: 1.1; }
.material-lista span { font-size: .9rem; line-height: 1.4; color: var(--tinta-2); }
@media (min-width: 960px) { .material-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } .material-foto img { aspect-ratio: 4 / 3; } .material-lista { grid-template-columns: 1fr 1fr; } }

/* ---------- Ambiente ---------- */
.ambiente { padding: 11vh 0 12vh; background: var(--papel); overflow: hidden; }
.collage { position: relative; width: min(1180px, 100% - 32px); margin: 2.2rem auto 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cf { position: relative; border-radius: 14px; overflow: visible; }
.cf img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 2px var(--tinta); }
.cf figcaption { position: absolute; left: 10px; bottom: -12px; padding: .1rem .6rem; border-radius: 7px; background: var(--blanco); box-shadow: inset 0 0 0 1.6px var(--tinta); font-family: var(--mano); font-size: 1.2rem; line-height: 1.25; transform: rotate(-2deg); }
.cf::before { content: ""; position: absolute; z-index: 1; top: -9px; left: 50%; width: 70px; height: 20px; margin-left: -35px; background: rgb(90 184 240 / .55); transform: rotate(-4deg); }
.cf-1 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.cf-2 { grid-column: 1 / 4; aspect-ratio: 3 / 4; }
.cf-3 { grid-column: 4 / -1; aspect-ratio: 3 / 4; }
.cf-4 { grid-column: 1 / 4; aspect-ratio: 1; }
.cf-5 { grid-column: 4 / -1; aspect-ratio: 1; }
.cf-3::before, .cf-5::before { background: rgb(255 210 63 / .75); transform: rotate(5deg); }
.collage .cf { margin-bottom: 10px; }
@media (min-width: 960px) {
  .collage { grid-template-columns: repeat(12, 1fr); gap: 22px; margin-top: 3rem; }
  .cf-1 { grid-column: 1 / 7; grid-row: 1 / 3; aspect-ratio: auto; }
  .cf-2 { grid-column: 7 / 10; aspect-ratio: 3 / 4; }
  .cf-3 { grid-column: 10 / 13; aspect-ratio: 3 / 4; }
  .cf-4 { grid-column: 7 / 10; aspect-ratio: 4 / 3; }
  .cf-5 { grid-column: 10 / 13; aspect-ratio: 4 / 3; }
}

/* ---------- Preguntas ---------- */
.preguntas { padding: 11vh 0 12vh; background: var(--papel-2); }
.preguntas-grid { display: grid; gap: 1.6rem; }
.faq { display: grid; gap: .6rem; }
.faq details { border-radius: 14px; background: var(--blanco); box-shadow: inset 0 0 0 2px var(--tinta); overflow: hidden; }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1rem; font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 92; font-size: 1.08rem; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 6px; background: var(--amarillo) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 6v12M6 12h12' fill='none' stroke='%23121a45' stroke-width='2.6' stroke-linecap='round'/></svg>") center / 16px no-repeat; box-shadow: inset 0 0 0 1.6px var(--tinta); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 1rem 1.1rem; color: var(--tinta-2); line-height: 1.5; }
@media (min-width: 960px) { .preguntas-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }

/* ---------- Sede ---------- */
.sede { padding: 11vh 0 12vh; background: var(--azul); color: var(--papel); }
.sede .antetitulo { color: var(--amarillo); }
.sede .titulo-sec { font-size: clamp(2.3rem, 9.5vw, 4.4rem); }
.sede .titulo-sec em { color: var(--amarillo); }
.sede-grid { display: grid; gap: 2rem; }
.mapa { border-radius: var(--r); overflow: hidden; background-color: #f6e7a8; box-shadow: 0 0 0 2px var(--tinta), 6px 8px 0 var(--azul-osc);
  background-image: linear-gradient(rgb(18 26 69 / .08) 1px, transparent 1px), linear-gradient(90deg, rgb(18 26 69 / .08) 1px, transparent 1px); background-size: 20px 20px; }
.mapa svg { display: block; width: 100%; height: auto; }
.mapa-txt { font: 700 17px var(--mano); fill: var(--tinta); }
.mapa-txt-sm { font-size: 14px; }
.mapa-txt-fuerte { font: 800 18px var(--display); }
.estado { display: inline-flex; align-items: center; gap: .6rem; margin: 1.4rem 0 .8rem; padding: .5rem 1rem; border-radius: 99px; background: var(--verde-claro); color: #0b5c3d; font-size: .92rem; }
.estado.cerrado { background: rgb(255 255 255 / .14); color: #e3e7ff; }
.punto { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: late 2s ease-out infinite; }
.estado.cerrado .punto { animation: none; }
@keyframes late { 0% { box-shadow: 0 0 0 0 rgb(18 133 90 / .5); } 100% { box-shadow: 0 0 0 10px rgb(18 133 90 / 0); } }
.horario div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgb(255 255 255 / .18); }
.horario dt { color: #c9d2ff; }
.horario dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.direccion { margin: 1.2rem 0 1.4rem; }
.direccion span { color: #c9d2ff; font-size: .82rem; }
@media (min-width: 960px) { .sede-grid { grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center; } }

/* ---------- Pie ---------- */
.pie { padding: 4rem 0 7.5rem; background: var(--tinta); color: var(--papel); }
.pie-marca { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(5rem, 30vw, 15rem); line-height: .8; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgb(255 210 63 / .55); }
.pie-aviso { margin-top: 1.2rem; color: #b9c0e4; font-size: .84rem; max-width: 74ch; }
.pie-firma { margin-top: .9rem; font-size: .92rem; }
.pie-firma a { color: var(--amarillo); font-weight: 700; }
@media (min-width: 960px) { .pie { padding-bottom: 4rem; } }

/* ---------- Barra de clase de prueba (teléfono) ---------- */
.prueba-barra { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .7rem; padding: 8px 8px 8px 16px; max-width: 560px; margin-inline: auto;
  border-radius: 16px; background: var(--amarillo); box-shadow: 0 0 0 2px var(--tinta), 0 18px 40px -14px rgb(18 26 69 / .6); transition: transform .5s var(--ease), opacity .3s; }
.prueba-barra[hidden] { display: none; }
.prueba-barra.oculta { transform: translateY(140%); opacity: 0; pointer-events: none; }
.prueba-barra p { flex: 1; display: grid; line-height: 1.2; }
.prueba-barra b { font-family: var(--display); font-weight: 800; font-size: .98rem; }
.prueba-barra span { font-size: .78rem; color: var(--tinta-2); }
@media (min-width: 960px) { .prueba-barra { display: none !important; } }

/* ---------- Diálogo ---------- */
.panel { width: min(480px, 100% - 24px); padding: 0; border: 0; border-radius: var(--r); background: var(--blanco); color: var(--tinta); box-shadow: 0 0 0 2px var(--tinta), 8px 10px 0 var(--tinta); }
.panel::backdrop { background: rgb(18 26 69 / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel-in { position: relative; padding: 1.5rem; display: grid; gap: .85rem; }
.panel h2 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 2rem; line-height: 1; letter-spacing: -.03em; }
.panel .antetitulo { margin-bottom: 0; }
.cerrar { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgb(18 26 69 / .07); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.wa-chat { padding: 1rem; border-radius: 16px; background: #0b141a; }
.wa-burbuja { margin-left: auto; max-width: 92%; padding: .7rem .9rem 1.2rem; border-radius: 12px 12px 2px 12px; background: #005c4b; color: #e9edef; font-size: .9rem; line-height: 1.45; white-space: pre-line; position: relative; }
.wa-burbuja::after { content: "✓✓"; position: absolute; right: 8px; bottom: 4px; font-size: .65rem; color: #53bdeb; }
.panel .nota { margin-top: 0; }
.demo-cta { padding-top: 1rem; border-top: 1px dashed var(--linea); display: grid; gap: .7rem; }
.demo-cta p { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 88; font-size: 1.35rem; line-height: 1.1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inicio { height: auto; }
  .inicio-fijo { position: relative; }
  .desliza svg, .punto { animation: none; }
  .fase-2 { display: none; }
  .fase-3 { display: none; }
  .bloque { transition: none; }
}
