/* =========================================================
   Apolo English — estilos
   Colores: #C52A3A (rojo) · #00487B (azul) · #000000 (negro)
   Tipografías: Montserrat (títulos) · Open Sans (texto)
   ========================================================= */

:root {
  --red: #C52A3A;
  --red-2: #e04a5b;
  --blue: #00487B;
  --blue-2: #0b6cb3;
  --blue-3: #4fa8ea;
  --black: #000000;
  --ink: #ffffff;
  --muted: #b9c6d6;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .05);
  --vh: 100vh;
  --hdr: 84px;
  --ff-h: 'Montserrat', system-ui, sans-serif;
  --ff-b: 'Open Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--ff-b);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-h); line-height: 1.1; letter-spacing: -.02em; }
.ico { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; }

.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 700 .78rem/1 var(--ff-h); letter-spacing: .22em; text-transform: uppercase;
  color: var(--red-2);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 800; }
.sec-head { max-width: 860px; margin-bottom: clamp(28px, 5vh, 56px); }
.sec-head h2 { margin: 14px 0 16px; }
.sec-head p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.left { text-align: left; }

.hint { text-align: center; color: var(--muted); font-size: .82rem; letter-spacing: .08em; opacity: .7; margin-top: 10px; }
.hint.left { text-align: left; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 999px;
  font: 700 1rem/1 var(--ff-h); letter-spacing: .01em;
  transition: background .3s, box-shadow .3s, color .3s;
  will-change: transform;
}
.btn > span { display: inline-flex; align-items: center; gap: .55em; pointer-events: none; will-change: transform; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -8px rgba(197, 42, 58, .7); }
.btn-red:hover { background: var(--red-2); box-shadow: 0 16px 40px -8px rgba(197, 42, 58, .9); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-block { width: 100%; }
.btn:focus-visible, .flip:focus-visible, .stack:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-3); outline-offset: 4px; }

/* ---------- Header ---------- */
/* Blanco translúcido tipo cristal (con un leve tono rosado) para que resalten los colores reales del logo.
   El desenfoque va en ::before: si estuviera en .hdr, el menú móvil (fixed) quedaría atrapado dentro del header. */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--hdr);
  border-bottom: 1px solid rgba(197, 42, 58, .14);
  box-shadow: 0 10px 30px -18px rgba(0, 30, 60, .45);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Vidrio blanco: bien claro, con brillo arriba y un leve tono rosado */
  background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 60%, rgba(255, 249, 251, .88) 100%);
  backdrop-filter: blur(22px) saturate(1.8) brightness(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(255, 255, 255, .6);
}
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav a {
  position: relative; font: 600 .95rem/1 var(--ff-h); color: var(--blue); padding: 8px 0;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav a:hover, .nav a.active { color: #002b4d; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Escenario fijo: una capa por sección ----------
   La página no se desplaza: el scroll solo hace avanzar la línea de tiempo
   (pausa en cada sección y transición entre dos). Ver js/main.js.        */
.story { position: relative; } /* altura asignada por main.js */
/* 100dvh: el escenario ocupa siempre la parte visible. Con 100svh quedaba una franja
   negra debajo en móvil al ocultarse la barra del navegador. */
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #000; }
/* Pantallas táctiles (main.js añade .body-scroll): se desplaza <body> y no el documento,
   así las barras del navegador no se ocultan al deslizar ni mueven el escenario. */
html.body-scroll { height: 100%; overflow: hidden; }
html.body-scroll body { height: 100%; height: 100dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; }
/* Un punto de anclaje por sección (main.js): cada gesto termina en una sección completa.
   Se aplica al elemento que se desplaza: el documento o, en táctil, <body>. */
html.snap:not(.body-scroll), html.snap.body-scroll body { scroll-snap-type: y mandatory; }
.snap-pt { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
.vh-probe { position: absolute; top: 0; left: 0; width: 0; height: 100vh; visibility: hidden; pointer-events: none; }
/* Las animaciones de las secciones que no se ven quedan en pausa. !important: el
   shorthand animation de reglas posteriores o más específicas vuelve a ponerlas en running. */
.sec.is-off, .sec.is-off::before, .sec.is-off::after,
.sec.is-off *, .sec.is-off *::before, .sec.is-off *::after { animation-play-state: paused !important; }
/* Pantallas táctiles, durante las transiciones pesadas (calm en main.js): las dos
   secciones pausan sus animaciones decorativas y prescinden del desenfoque de fondo,
   que se recalcula en cada fotograma mientras la capa se escala o gira. */
.sec.is-moving, .sec.is-moving::before, .sec.is-moving::after,
.sec.is-moving *, .sec.is-moving *::before, .sec.is-moving *::after { animation-play-state: paused !important; }
.sec.is-moving * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.sec {
  position: absolute; inset: 0;
  visibility: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--hdr) + 14px) 0 24px;
  overflow: hidden;
  isolation: isolate;
  background: #02101d;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
/* Contenedor que se reduce (zoom) si el contenido no cabe en la pantalla */
.sec > .fit, .sec > .wrap { flex: none; }
.sec > .fit { width: 100%; }

.portal-ring {
  position: absolute; left: 50%; top: 50%; z-index: 25; pointer-events: none;
  width: 0; height: 0; border-radius: 50%; visibility: hidden;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 0 10px rgba(197, 42, 58, .45), 0 0 60px 20px rgba(11, 108, 179, .55), inset 0 0 60px 10px rgba(11, 108, 179, .5);
}
/* Capas de líquido que suben por delante de la sección */
.liquid { position: absolute; inset: 0; z-index: 15; visibility: hidden; pointer-events: none; }
.liquid-2 { background: linear-gradient(180deg, var(--red-2), #7d1422); }
.liquid-1 { background: linear-gradient(180deg, var(--blue-2), var(--blue)); }
/* Núcleo del imán (Preguntas → Contacto) */
.magnet-core { position: absolute; left: 50%; top: 55%; width: 0; height: 0; z-index: 30; visibility: hidden; pointer-events: none; }
.magnet-core span { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--red-2); box-shadow: 0 0 40px var(--red), inset 0 0 30px rgba(11, 108, 179, .6); }
.magnet-core span:nth-child(1) { background: radial-gradient(circle, #fff, var(--red-2) 35%, transparent 70%); border: 0; }
.magnet-core span:nth-child(2) { animation: ring 1.1s linear infinite; }
.magnet-core span:nth-child(3) { animation: ring 1.1s linear infinite .55s; }
@keyframes ring { from { transform: scale(3); opacity: 0; } 50% { opacity: .8; } to { transform: scale(.6); opacity: 0; } }
/* Velo para saltar a secciones lejanas */
.jump-veil { position: absolute; inset: 0; z-index: 40; background: #000; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.jump-veil.on { opacity: 1; }
/* Navegación lateral por puntos */
.dots { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 900; display: grid; gap: 9px; }
.dots button { position: relative; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: transform .2s, background .2s; }
.dots button:hover { transform: scale(1.4); background: #fff; }
.dots button.is-active { background: var(--red); transform: scale(1.4); box-shadow: 0 0 10px var(--red); }
.dots button::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .85); color: #fff;
  font: 600 .72rem/1.3 var(--ff-h); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dots button:hover::after { opacity: 1; }

/* Aparición suave genérica */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* =================== HERO =================== */
.hero { background: radial-gradient(120% 90% at 85% 40%, #002440 0%, #000 60%); display: flex; align-items: center; }
/* Indicador de que hay más contenido debajo: solo en Inicio, en pantallas táctiles o
   estrechas (no hay barra de scroll visible), y solo hasta el primer scroll (main.js
   añade .gone). Ocupa el margen inferior de la sección, debajo de los botones. */
.scroll-cue { display: none; }
@media (max-width: 860px), (pointer: coarse) {
  .scroll-cue {
    display: block; position: absolute; left: 50%; bottom: 8px; z-index: 2; width: 12px; height: 12px; margin-left: -6px;
    pointer-events: none; opacity: 0; animation: cueIn .6s ease-out 1.2s forwards;
  }
  .scroll-cue::before {
    content: ""; position: absolute; inset: 0; transform: rotate(45deg);
    border-right: 2px solid rgba(255, 255, 255, .6); border-bottom: 2px solid rgba(255, 255, 255, .6);
    animation: cueBob 1.8s ease-in-out 1.8s infinite;
  }
  .scroll-cue.gone { display: none; }
}
@keyframes cueIn { to { opacity: 1; } }
@keyframes cueBob { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(4px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::before { animation: none; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; background: var(--blue); right: -120px; top: 10%; animation: drift 14s ease-in-out infinite alternate; }
.blob.b2 { width: 380px; height: 380px; background: var(--red); left: -140px; bottom: -80px; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 780px); align-items: center; width: min(1200px, calc(100% - 40px)); }
.hero-copy { position: relative; z-index: 1; }

/* Imagen H1: ocupa el lado derecho a toda altura y se funde con los títulos.
   La máscara la desvanece hacia la izquierda y ::after le pone una capa oscura
   (más densa junto al texto y en los bordes superior e inferior). */
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(64%, 1100px); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 14%, rgba(0, 0, 0, .75) 30%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 14%, rgba(0, 0, 0, .75) 30%, #000 48%);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%;
  filter: brightness(.78) saturate(.92) contrast(1.05);
  animation: heroDrift 14s ease-in-out infinite alternate;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .12) 65%, rgba(0, 0, 0, .3) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, transparent 22%, transparent 70%, rgba(0, 0, 0, .85) 100%),
    radial-gradient(80% 70% at 70% 50%, transparent 40%, rgba(0, 20, 40, .45) 100%),
    linear-gradient(0deg, rgba(0, 72, 123, .18), rgba(0, 72, 123, .18));
}
/* Flota sin parar, sin que se vean los bordes de la imagen */
@keyframes heroDrift {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.2%, -1.6%); }
}
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); font-weight: 900; margin: 18px 0 20px; }
.hero h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em; background: var(--blue-2); border-radius: 4px; z-index: -1; opacity: .8; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 520px; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin: 34px 0 30px; }
.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: .85rem; color: #dbe5f1;
}
.hero-chips .ico { color: var(--red-2); }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-height: 64vh; margin-inline: auto; }
.hero-art .floaty { position: relative; width: 92%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .6)); }
.halo { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(11, 108, 179, .65), rgba(0, 72, 123, .15) 55%, transparent 70%); }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .18); }
.orbit.o1 { width: 86%; aspect-ratio: 1; animation: spin 40s linear infinite; }
.orbit.o2 { width: 64%; aspect-ratio: 1; border-color: rgba(197, 42, 58, .45); border-style: solid; border-width: 1px; animation: spin 26s linear infinite reverse; }
.orbit.o2::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 20px var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Flota sin parar */
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  25% { transform: translateY(-16px) rotate(.5deg); }
  50% { transform: translateY(-26px) rotate(1.5deg); }
  75% { transform: translateY(-10px) rotate(0deg); }
}

/* =================== TECNOLOGÍA =================== */
.tech { background: radial-gradient(90% 70% at 50% 100%, #003660 0%, #00101e 55%, #000 100%); display: flex; flex-direction: column; justify-content: center; }
.tech .sec-head { margin-bottom: 10px; }

/* Carrusel 3D reutilizable */
.c3d {
  --fw: 220px; --fh: 270px;
  position: relative; height: calc(var(--fh) * 1.5); perspective: 1300px; perspective-origin: 50% 35%;
  display: grid; place-items: start center; padding-top: 30px;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.c3d.dragging { cursor: grabbing; }
.c3d .ring { position: relative; width: var(--fw); height: var(--fh); transform-style: preserve-3d; }
.c3d .face {
  --lit: 1; --shine: 0; --side: 0;
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #0c3a63 0%, #04182b 70%);
  border: 1px solid rgba(255, 255, 255, .14);
  filter: brightness(var(--lit));
  -webkit-box-reflect: below 12px linear-gradient(transparent 58%, rgba(255, 255, 255, .26));
}
.c3d .face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  background-size: 260% 100%;
  background-position: calc(50% + var(--side) * 70%) 0;
  opacity: var(--shine);
  mix-blend-mode: overlay;
}
.c3d .face img { width: 86%; height: 74%; object-fit: contain; pointer-events: none; margin-bottom: 26px; }
.c3d .face figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2; text-align: center;
  font: 700 .82rem/1.15 var(--ff-h); letter-spacing: .02em; color: #fff;
  padding: 7px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
}
.c3d .face.cover img { width: 100%; height: 100%; object-fit: cover; margin: 0; }

/* =================== PAÍSES =================== */
.paises { background: #000; padding-bottom: 50px; }
.paises-bg { position: absolute; inset: 0; z-index: -2; }
.paises-bg img { width: 100%; height: 100%; object-fit: cover; }
.paises-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 10, 25, .45) 45%, rgba(0, 0, 0, .85) 100%); }
.paises-in { height: calc(var(--vh) - var(--hdr) - 70px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.flags { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 3vw, 40px); }
.flags li { text-align: center; }
.flag {
  aspect-ratio: 3/2; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .15);
  will-change: transform; transition: box-shadow .3s;
}
.flag img { width: 100%; height: 100%; object-fit: cover; }
.flags span { display: block; margin-top: 16px; font: 700 clamp(.95rem, 1.6vw, 1.3rem)/1.2 var(--ff-h); letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.paises-title { text-align: center; font-size: clamp(3rem, 10vw, 8.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; text-shadow: 0 10px 50px rgba(0, 0, 0, .7); }
.paises-title span { color: var(--red); }

/* =================== EXPERIENCIA =================== */
.exp { background: linear-gradient(140deg, var(--blue) 0%, #002a49 55%, #000 100%); display: flex; align-items: center; }
/* Luces que recorren el fondo sin parar */
.exp::before, .exp::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.exp::before { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: radial-gradient(circle, rgba(79, 168, 234, .55), transparent 65%); animation: expLight1 9s ease-in-out infinite alternate; }
.exp::after { width: 40vmax; height: 40vmax; right: -10vmax; bottom: -12vmax; background: radial-gradient(circle, rgba(197, 42, 58, .5), transparent 65%); animation: expLight2 11s ease-in-out infinite alternate; }
@keyframes expLight1 { to { transform: translate(38vw, 30vh) scale(1.2); } }
@keyframes expLight2 { to { transform: translate(-40vw, -26vh) scale(.85); } }
.exp-grid { display: grid; grid-template-rows: auto 1fr 1fr auto; height: calc(var(--vh) - var(--hdr) - 60px); gap: 10px; }
.exp-row { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); }
.exp-row.r1, .exp-row.r4 { gap: 20px; }
.exp-row.r1 .eyebrow { color: #fff; }
.exp-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), transparent); }
.exp-row.r4 .exp-line { background: linear-gradient(270deg, rgba(255, 255, 255, .5), transparent); }
.exp-tag { font: 600 .8rem/1 var(--ff-h); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.exp-row.r2 { justify-content: flex-start; }
.exp-row.r3 { justify-content: flex-end; text-align: right; }
.count {
  font: 900 clamp(4.4rem, 15vw, 13rem)/.9 var(--ff-h); letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.count .plus { color: var(--red); display: inline-block; }
/* Cuando el número termina de llenarse: destello de luz que lo recorre y "+" que late */
.count.done .num {
  background: linear-gradient(110deg, #fff 0%, #fff 38%, #8fd0ff 46%, #ffffff 50%, #ff9aa6 54%, #fff 62%, #fff 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: numShine 4.2s linear infinite, numGlow 3s ease-in-out infinite;
}
.exp-row.r3 .count.done .num { animation-delay: -2.1s, -1.5s; }
.count.done .plus { animation: plusPulse 1.8s ease-in-out infinite; }
@keyframes numShine { from { background-position: 130% 0; } to { background-position: -30% 0; } }
@keyframes numGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(79, 168, 234, 0)); } 50% { filter: drop-shadow(0 0 22px rgba(79, 168, 234, .65)); } }
@keyframes plusPulse { 0%, 100% { transform: scale(1); text-shadow: 0 0 0 rgba(197, 42, 58, 0); } 50% { transform: scale(1.12); text-shadow: 0 0 30px rgba(224, 74, 91, .9); } }
.exp-sub {
  font: 700 clamp(1.1rem, 2.3vw, 2rem)/1.15 var(--ff-h); text-transform: uppercase; letter-spacing: .04em;
  max-width: 9em; color: #e6eef8;
  clip-path: inset(0 100% 0 0); opacity: 0;
}
.exp-row.r3 .exp-sub { clip-path: inset(0 0 0 100%); }
.exp-sub::before { content: ""; display: block; width: 46px; height: 4px; background: var(--red); border-radius: 4px; margin-bottom: 14px; }
.exp-row.r3 .exp-sub::before { margin-left: auto; }

/* =================== PNL =================== */
.pnl { background: radial-gradient(70% 60% at 50% 100%, #00335a 0%, #000814 60%, #000 100%); }
.pnl-grid {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-areas: "head head head" "left holo right";
  align-items: center; column-gap: clamp(20px, 3vw, 50px);
}
.pnl-head { grid-area: head; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pnl-head h2 { font-size: clamp(2rem, 4.6vw, 3.9rem); }
.pnl-txt { font-size: clamp(1rem, 1.25vw, 1.12rem); color: #d3deeb; padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.pnl-txt.left { grid-area: left; border-left: 3px solid var(--red); }
.pnl-txt.right { grid-area: right; border-right: 3px solid var(--blue-2); }
.holo { grid-area: holo; position: relative; height: clamp(320px, 52vh, 560px); display: flex; justify-content: center; }
/* Sin transform ni z-index: así las líneas de escaneo se mezclan con el fondo de la sección y solo se ven sobre el cerebro */
.brain { position: relative; width: 92%; margin-top: 2%; align-self: flex-start; }
.brain img {
  width: 100%;
  animation: rainbow 7s linear infinite, flicker 4.5s steps(1) infinite, hover 5s ease-in-out infinite;
  filter: drop-shadow(0 0 28px rgba(79, 168, 234, .65));
}
/* Líneas de escaneo y barrido de luz: un canvas que solo pinta sobre los píxeles del cerebro */
.brain-scan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; animation: hover 5s ease-in-out infinite; }
.pnl-grid { position: relative; z-index: 1; }
.beam {
  position: absolute; left: 50%; bottom: 0; width: var(--beam-w, 40%); height: var(--beam-h, 55%); transform: translateX(-50%); z-index: 0; pointer-events: none;
  clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0);
  background: linear-gradient(0deg, rgba(120, 200, 255, .75) 0%, rgba(79, 168, 234, .28) 45%, rgba(197, 42, 58, .08) 85%, transparent 100%);
  filter: blur(2px);
  animation: beam 2.6s ease-in-out infinite;
}
.projector { position: absolute; left: 50%; bottom: -6px; pointer-events: none; transform: translateX(-50%); width: 90px; height: 18px; border-radius: 50%; background: radial-gradient(ellipse, #e9f6ff 0%, #4fa8ea 35%, rgba(0, 72, 123, 0) 70%); box-shadow: 0 0 40px 14px rgba(79, 168, 234, .6); z-index: 3; }
@keyframes rainbow { from { filter: hue-rotate(0deg) saturate(1.4) drop-shadow(0 0 28px rgba(79, 168, 234, .65)); } to { filter: hue-rotate(360deg) saturate(1.4) drop-shadow(0 0 28px rgba(79, 168, 234, .65)); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .55; } 9% { opacity: 1; } 47% { opacity: .9; } 48% { opacity: .4; } 49% { opacity: 1; } 73% { opacity: .75; } 74% { opacity: 1; } }
@keyframes beam { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* =================== SISTEMA NATURAL =================== */
.sistema { background: linear-gradient(180deg, #010a14 0%, #031a2e 100%); display: flex; align-items: center; }
.sistema .sec-head { max-width: 780px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 18px; }
.timeline::before { content: ""; position: absolute; left: 0; right: -20px; top: 50%; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue-2) 70%, transparent); }
.timeline span { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--red-2); background: #02101d; }
.timeline span.on { background: var(--red-2); box-shadow: 0 0 18px var(--red-2); }
.flips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.flip { perspective: 1200px; aspect-ratio: 4/3; border-radius: 18px; outline: none; cursor: pointer; }
.flip-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.flip-front, .flip-back {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px;
}
/* Frente solo con el icono animado, centrado */
.flip-front { justify-content: center; align-items: center; gap: 16px; text-align: center; background: radial-gradient(120% 90% at 50% 20%, rgba(11, 108, 179, .45), rgba(2, 16, 29, .95) 70%), #02101d; }
.flip-front::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 40%, rgba(197, 42, 58, .18), transparent 70%); }
.flip h3 { font-size: clamp(1.1rem, 1.6vw, 1.45rem); font-weight: 800; }
.step { position: absolute; top: 14px; left: 18px; font: 700 .8rem/1 var(--ff-h); color: var(--red-2); letter-spacing: .1em; }
.flip-back { transform: rotateY(180deg); background: linear-gradient(150deg, var(--blue) 0%, #011d33 100%); justify-content: center; gap: 10px; }
.flip-back p { font-size: .95rem; color: #dce7f3; line-height: 1.5; }
.flip-back h3 { color: #fff; }
@media (hover: hover) { .flip:hover .flip-in { transform: rotateY(180deg); } }
.flip:focus-visible .flip-in, .flip.flipped .flip-in { transform: rotateY(180deg); }

/* =================== GRUPOS + HORARIOS =================== */
.grupos { background: #000; display: flex; align-items: center; }
.grupos::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 15% 50%, rgba(0, 72, 123, .55), transparent 70%), radial-gradient(40% 50% at 90% 85%, rgba(197, 42, 58, .25), transparent 70%); }
.grupos-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.stack { position: relative; aspect-ratio: 4/3; cursor: pointer; outline: none; margin: 40px 50px 0 0; }
.stack-card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #0b6cb3, #002240);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .7s var(--ease-out), opacity .6s, filter .6s;
  will-change: transform;
}
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
.stack-card.fox img { object-fit: contain; padding: 4%; }
.stack-card.out { transition: transform .55s cubic-bezier(.55, 0, .7, .4), opacity .55s; transform: translate(-60%, 18%) rotate(-16deg) !important; opacity: 0 !important; }
.grupos-copy { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.grupos-copy .eyebrow { flex-direction: row-reverse; }
.grupos-copy h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); margin-bottom: 10px; }
.g-card {
  width: 100%; max-width: 520px; text-align: left; display: flex; gap: 18px; align-items: flex-start;
  padding: 26px 28px; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  transform: rotate(-1deg);
}
.g-card.red { transform: rotate(1deg); }
.g-card.blue { background: linear-gradient(140deg, rgba(0, 72, 123, .55), rgba(2, 16, 29, .9)); }
.g-card.red { background: linear-gradient(140deg, rgba(197, 42, 58, .4), rgba(20, 4, 8, .9)); }
.g-card .ico { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.g-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.g-card p { color: var(--muted); font-size: .97rem; }

/* =================== MODALIDAD =================== */
.modalidad { background: linear-gradient(180deg, #001a2e 0%, #000a14 100%); }
.modalidad::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 50% 0%, rgba(11, 108, 179, .35), transparent 70%); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 34px); }
.mode { padding: 14px 14px 26px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); transition: transform .4s var(--ease-out), border-color .3s; }
.mode:hover { border-color: rgba(255, 255, 255, .3); }
.mode-media { position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; margin-bottom: 20px; background: #000; }
.mode-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mode:hover .mode-media > img:not(.dx-m1):not(.dx-m2) { transform: scale(1.06); }
.mode h3 { font-size: 1.5rem; margin: 0 10px 8px; }
.mode h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--red); border-radius: 3px; margin-top: 10px; }
.mode p { color: var(--muted); margin: 0 10px; }

/* Doble exposición: M1 barrido de escáner + M2 eco de movimiento */
.dx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dx-m1 { filter: grayscale(1) contrast(1.2) brightness(.7); }
.dx-scan {
  filter: saturate(1.3) contrast(1.1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 22%, transparent 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 22%, transparent 30%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: scanMask 3.4s linear infinite;
}
.dx-line {
  position: absolute; left: 0; right: 0; height: 3px; z-index: 5; top: 0;
  background: #9fe0ff; box-shadow: 0 0 18px 4px rgba(79, 168, 234, .9), 0 0 50px 10px rgba(0, 72, 123, .7);
  animation: scanLine 3.4s linear infinite;
}
.dx-m2 { mix-blend-mode: screen; }
.dx-m2.e1 { opacity: .62; animation: echo 4s ease-in-out infinite; }
.dx-m2.e2 { opacity: .3; animation: echo 4s ease-in-out infinite; animation-delay: -.18s; filter: hue-rotate(-30deg); }
.dx-m2.e3 { opacity: .16; animation: echo 4s ease-in-out infinite; animation-delay: -.36s; filter: hue-rotate(40deg); }
@keyframes scanMask { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0%; mask-position: 0 0%; } }
@keyframes scanLine { 0% { top: -2%; } 100% { top: 100%; } }
@keyframes echo { 0%, 100% { transform: translateX(-4%) scale(1.08); } 50% { transform: translateX(4%) scale(1.08); } }

/* =================== NIVELES Y PRUEBAS =================== */
.niveles { background: radial-gradient(70% 60% at 80% 60%, #00284a 0%, #000 70%); }
.niv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.5vw, 18px); align-items: end; height: clamp(300px, 48vh, 460px); }
.lvl { height: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
/* Tubo de cristal */
.lvl .bar {
  position: relative; flex: 1; width: 100%; border-radius: 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02) 40%, rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 20px rgba(0, 0, 0, .5);
}
/* Brillo de cristal por encima del líquido */
.lvl .bar::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, .22) 14%, rgba(255, 255, 255, .05) 24%, transparent 34%); }
/* Líquido: cada nivel en un azul más profundo; la superficie es una ola en movimiento */
.lvl { --c1: #7cc4f5; --c2: #2b8ad6; }
.lvl:nth-child(2) { --c1: #4fa8ea; --c2: #0b6cb3; }
.lvl:nth-child(3) { --c1: #2b8ad6; --c2: #00578f; }
.lvl:nth-child(4) { --c1: #0b6cb3; --c2: #00365d; }
.lvl:nth-child(5) { --c1: #00578f; --c2: #002440; }
.lvl .fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(0deg, var(--c2), var(--c1));
  box-shadow: 0 -6px 24px -4px var(--c1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q15 0 30 8 T60 8 T90 8 T120 8 V16 H0Z'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 14px, linear-gradient(#000, #000) no-repeat 0 13px / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 Q15 0 30 8 T60 8 T90 8 T120 8 V16 H0Z'/%3E%3C/svg%3E") repeat-x 0 0 / 60px 14px, linear-gradient(#000, #000) no-repeat 0 13px / 100% 100%;
  animation: liquidWave 2.2s linear infinite;
  /* Se llenan por completo, una columna después de otra: A1 → A2 → B1 → B2 */
  transition: height 1.1s cubic-bezier(.45, .05, .35, 1); transition-delay: calc(var(--i) * 1.1s + .2s);
}
@keyframes liquidWave { to { -webkit-mask-position: 60px 0, 0 13px; mask-position: 60px 0, 0 13px; } }
/* Burbujas que suben dentro del líquido */
.lvl .fill::before, .lvl .fill::after {
  content: ""; position: absolute; bottom: -10px; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); animation: bubble 3.4s ease-in infinite;
}
.lvl .fill::before { left: 28%; }
.lvl .fill::after { left: 64%; width: 5px; height: 5px; animation-delay: 1.6s; animation-duration: 2.8s; }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-260px); opacity: 0; } }
.levels.in .fill { height: 100%; }
.lvl b { font: 800 clamp(1rem, 1.8vw, 1.5rem)/1 var(--ff-h); }
.lvl small { font-size: clamp(.62rem, .8vw, .78rem); color: var(--muted); line-height: 1.2; min-height: 2.4em; }
.tests-side { display: flex; flex-direction: column; align-items: center; }
.tests-c3d { --fw: 190px; --fh: 230px; width: 100%; }
.face.test { color: #fff; gap: 12px; align-content: center; padding: 20px; }
.face.test svg { width: 46%; height: auto; }
.face.test figcaption { font: 900 1.35rem/1 var(--ff-h); letter-spacing: .06em; }
.t-ielts { background: linear-gradient(160deg, #C52A3A, #5d0f19) !important; }
.t-toefl { background: linear-gradient(160deg, #0b6cb3, #00213b) !important; }
.t-cam { background: linear-gradient(160deg, #1d1d1d, #000) !important; }
.t-cam svg { color: var(--red-2); }
.t-toeic { background: linear-gradient(160deg, #00487B, #000d18) !important; }
.t-pte { background: linear-gradient(160deg, #8a1d2a, #00487B) !important; }
.tests-list { font: 700 .82rem/1.4 var(--ff-h); letter-spacing: .2em; color: var(--muted); text-align: center; margin-top: -20px; }

/* =================== CONTENIDO MULTIMEDIA =================== */
.multi { padding: 0; background: radial-gradient(70% 70% at 50% 50%, #003a66 0%, #001222 55%, #000 100%); }
.pend-stage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.multi-title { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); text-align: center; width: min(640px, 60vw); pointer-events: none; z-index: 1; }
.multi-title .big { display: block; font-size: clamp(3.4rem, 10vw, 9rem); font-weight: 900; line-height: .9; letter-spacing: -.05em; background: linear-gradient(180deg, #fff 30%, #9cc9ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.multi-title .small { display: block; font-size: clamp(1.2rem, 2.6vw, 2.3rem); font-weight: 700; margin-top: 10px; }
.pend { position: absolute; top: 0; width: 0; transform-origin: 0 0; z-index: 2; will-change: transform; }
.pend .string { position: absolute; left: -1px; top: 0; width: 2px; background: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .7)); }
.pend .string::before { content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.bob { position: absolute; left: 0; transform: translateX(-50%); width: clamp(90px, 10vw, 140px); text-align: center; cursor: grab; touch-action: none; }
.bob.grab { cursor: grabbing; }
.bob img { width: 100%; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .6)); pointer-events: none; }
.bob figcaption {
  display: inline-block; margin-top: 6px; padding: 5px 12px; border-radius: 999px;
  font: 700 .8rem/1 var(--ff-h); background: rgba(197, 42, 58, .9); letter-spacing: .04em;
}

/* =================== TESTIMONIOS =================== */
.testi { background: linear-gradient(180deg, #050505 0%, #0a0f16 100%); display: flex; flex-direction: column; justify-content: center; }
.marquee { overflow: hidden; padding: 20px 0 40px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 24px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
.t-card {
  width: clamp(280px, 30vw, 380px); flex: none; padding: 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(0, 72, 123, .35), rgba(255, 255, 255, .03));
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px;
}
.t-card:nth-child(even) { background: linear-gradient(160deg, rgba(197, 42, 58, .25), rgba(255, 255, 255, .03)); }
.t-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--red); }
.t-card blockquote { font-size: 1rem; color: #e1e9f3; line-height: 1.6; flex: 1; }
.t-card footer { display: flex; flex-direction: column; gap: 2px; }
.t-card footer b { font-family: var(--ff-h); }
.t-card footer span { font-size: .85rem; color: var(--muted); }
.stars { color: #f6c445; font-style: normal; letter-spacing: 2px; font-size: .9rem; }

/* =================== PREGUNTAS FRECUENTES =================== */
.faq { background: linear-gradient(180deg, #001a2e 0%, #000 100%); display: flex; align-items: center; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.magnet-item { will-change: transform; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 16px; background: var(--glass); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq details[open] { background: rgba(0, 72, 123, .3); border-color: rgba(79, 168, 234, .4); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font: 700 1.02rem/1.35 var(--ff-h); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--red-2); transition: transform .3s; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* =================== CONTACTO =================== */
.contacto { background: radial-gradient(60% 60% at 0% 30%, rgba(0, 72, 123, .5), transparent 70%), radial-gradient(50% 50% at 100% 100%, rgba(197, 42, 58, .25), transparent 70%), #000; padding-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(30px, 5vw, 70px); align-items: center; }
.contact-info { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact-info h2 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); line-height: 1.02; }
.data { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.data li { display: flex; gap: 16px; align-items: center; }
.data .ico { width: 54px; height: 54px; padding: 13px; border-radius: 14px; background: rgba(197, 42, 58, .15); color: var(--red-2); border: 1px solid rgba(197, 42, 58, .35); }
.data small { display: block; font: 600 .72rem/1 var(--ff-h); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.data a, .data span { font-weight: 600; font-size: clamp(1.05rem, 1.3vw, 1.22rem); }
.data a:hover { color: var(--red-2); }
.social { display: flex; gap: 14px; margin-top: 22px; }
.social a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass); transition: background .3s, transform .3s, border-color .3s; }
.social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.social .ico { width: 26px; height: 26px; }
.contact-socials { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.management-link { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); color: var(--muted); font: 600 .86rem/1 var(--ff-h); transition: color .25s, border-color .25s, background .25s; white-space: nowrap; }
.management-link .ico { width: 18px; height: 18px; }
.management-link:hover { color: #fff; border-color: rgba(79, 168, 234, .45); background: rgba(255, 255, 255, .08); }
.management-link:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 3px; }
.policy-link { font-size: .9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.policy-link:hover { color: #fff; }
/* La mascota, más grande, se apoya sobre la palabra "inglés" del título */
.ct-title { position: relative; display: inline-block; }
.ct-word { position: relative; white-space: nowrap; }
/* La mascota se apoya con el brazo sobre la palabra "inglés"; left/top/alto los calcula js/main.js */
.contact-img { position: absolute; left: 100%; top: 0; height: 380px; width: 253px; max-width: none; object-fit: contain; pointer-events: none; z-index: 2; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .55)); }

.form { padding: clamp(24px, 3vw, 38px); border-radius: 26px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.form h3 { font-size: 1.5rem; }
.form label { display: flex; flex-direction: column; gap: 7px; font: 600 .85rem/1.2 var(--ff-h); color: #dce6f2; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .35); color: #fff; font: 400 1rem var(--ff-b); transition: border-color .25s, box-shadow .25s;
}
.form input::placeholder { color: rgba(255, 255, 255, .4); }
.form input:focus { outline: none; border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(79, 168, 234, .25); }
.form .invalid { border-color: var(--red-2) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font: 600 .85rem/1.3 var(--ff-h); color: #dce6f2; margin-bottom: 10px; }
.chips.invalid legend { color: var(--red-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); font: 600 .85rem/1 var(--ff-b); color: #dce6f2; transition: background .25s, border-color .25s, color .25s; }
.chip:hover span { border-color: rgba(255, 255, 255, .5); }
.chip input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue-3); outline-offset: 2px; }
.check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font: 400 .88rem/1.4 var(--ff-b) !important; color: var(--muted) !important; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 1px; flex: none; }
.check button { text-decoration: underline; color: #fff; }
.check.invalid { color: var(--red-2) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-size: .92rem; text-align: center; }
.form-msg.ok { color: #6fe3a5; }
.form-msg.err { color: var(--red-2); }
.form button[disabled] { opacity: .6; pointer-events: none; }

.mag-item, .mag-src { will-change: transform; }

.foot { border-top: 1px solid var(--line); padding: 16px 0; margin-top: 10px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 20px; text-align: center; }
.foot-management-link { justify-self: start; }
.foot-link { font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-link:hover { color: #fff; }
.foot p { font-size: .85rem; color: var(--muted); }

/* Diálogo de política */
.policy { margin: auto; width: min(640px, calc(100% - 32px)); max-height: 86vh; border: 1px solid var(--line); border-radius: 22px; background: #04121f; color: #fff; padding: 0; }
.policy::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.policy-in { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.policy h3 { font-size: 1.4rem; } .policy h4 { font-size: 1rem; color: var(--red-2); margin-top: 6px; }
.policy p { color: #cdd8e5; font-size: .95rem; } .policy a { text-decoration: underline; }
.policy form { margin-top: 10px; }

/* =================== PÁGINA EXPLICACIÓN =================== */
.page-exp { background: radial-gradient(80% 50% at 50% 0%, #002a49, #000 70%); min-height: 100vh; }
.exp-page { padding: calc(var(--hdr) + 60px) 0 90px; }
.exp-hero { text-align: center; max-width: 820px; margin: 0 auto 60px; }
.exp-hero .eyebrow { justify-content: center; }
.exp-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; margin: 16px 0; }
.exp-hero p { color: var(--muted); font-size: 1.15rem; }
.exp-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; margin-bottom: 80px; }
.exp-block.rev .exp-media { order: 2; }
.exp-media img { border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.exp-block h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin: 12px 0 16px; }
.exp-block p { color: #cfdbe8; margin-bottom: 12px; }
.exp-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.exp-block li { padding-left: 26px; position: relative; color: #dce6f2; }
.exp-block li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(197, 42, 58, .7); }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.tri div { padding: 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.tri b { display: block; font-family: var(--ff-h); margin-bottom: 6px; }
.tri small { color: var(--muted); font-size: .88rem; line-height: 1.45; display: block; }
.intel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.intel div { padding: 18px 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(0, 72, 123, .45), rgba(255, 255, 255, .03)); border: 1px solid var(--line); font: 700 .95rem/1.3 var(--ff-h); }
.intel div:nth-child(odd) { background: linear-gradient(160deg, rgba(197, 42, 58, .32), rgba(255, 255, 255, .03)); }
.exp-cta { text-align: center; padding: 50px 24px; border-radius: 28px; background: linear-gradient(140deg, var(--blue), #001a2e); border: 1px solid var(--line); }
.exp-cta h2 { margin-bottom: 20px; }
.exp-cta .btns { justify-content: center; margin: 0; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .pnl-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "holo holo" "left right"; row-gap: 24px; }
  .holo { height: clamp(300px, 44vh, 460px); }
  .flips { grid-template-columns: repeat(2, 1fr); }
  .timeline { display: none; }
  .intel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --hdr: 70px; }
  .logo img { height: 38px; }
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: rgba(255, 248, 250, .97);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a { font-size: 1.4rem; }
  .nav.open { opacity: 1; visibility: visible; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero { justify-content: flex-end; }
  .hero-media {
    width: 100%; bottom: auto; height: 62%;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero-media img { object-position: 70% 30%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .15) 30%, rgba(0, 0, 0, .6) 100%), linear-gradient(0deg, rgba(0, 72, 123, .18), rgba(0, 72, 123, .18)); }
  .btns, .hero-chips { justify-content: center; }
  .lead { margin-inline: auto; }

  .c3d { --fw: 160px; --fh: 200px; }
  .tests-c3d { --fw: 150px; --fh: 185px; }

  .flags { grid-template-columns: repeat(2, 1fr); }

  .exp-row.r2, .exp-row.r3 { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; justify-content: center; }
  .exp-row.r3 { align-items: flex-end; text-align: right; }
  .exp-row.r3 .exp-sub { order: 2; }

  .pnl-grid { grid-template-columns: 1fr; grid-template-areas: "head" "holo" "left" "right"; }

  .grupos-grid { grid-template-columns: 1fr; }
  .stack { margin: 30px 30px 0 0; }
  .grupos-copy { order: -1; }

  .modes { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  .niv-grid { grid-template-columns: 1fr; }
  .levels { height: 200px; }
  .stack { width: min(100%, 52vh); margin: 30px auto 0; }
  .flags span { margin-top: 8px; }
  .paises-in { height: calc(var(--vh) - var(--hdr) - 50px); }

  .multi-title { width: 86vw; top: 52%; }
  .bob { width: clamp(70px, 20vw, 110px); }
  .bob figcaption { font-size: .68rem; padding: 4px 9px; }

  .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }

  .exp-block { grid-template-columns: 1fr; }
  .exp-block.rev .exp-media { order: 0; }
  .tri { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .flips { gap: 12px; }
  .flip { aspect-ratio: 1; }
  .flip-front, .flip-back { padding: 12px; }
  .flip-back p { font-size: .8rem; line-height: 1.4; }
  .flip h3 { font-size: 1rem; }
  .btn { padding: 15px 26px; }

  /* Modalidad: imagen a la izquierda y texto a la derecha para que quepa en una pantalla */
  .modes { gap: 12px; }
  .mode { display: grid; grid-template-columns: 42% 1fr; column-gap: 14px; align-items: center; padding: 10px; }
  .mode-media { grid-row: span 2; margin: 0; }
  .mode h3 { font-size: 1.2rem; margin: 0 0 4px; align-self: end; }
  .mode h3::after { margin-top: 6px; }
  .mode p { margin: 0; font-size: .88rem; line-height: 1.45; align-self: start; }

  /* Contacto compacto */
  .contact-info { gap: 14px; }
  .contact-info h2 { font-size: 2.5rem; }
  .ct-title { margin-bottom: 70px; } /* deja espacio para las piernas de la mascota */
  .data { flex-direction: column; gap: 10px; }
  .data .ico { width: 36px; height: 36px; padding: 8px; }
  .data a, .data span { font-size: .9rem; }
  .data small { display: none; }
  .foot { padding: 8px 0; }
  .form { padding: 18px; gap: 10px; }
  .form h3 { display: none; }
  .form input[type="text"], .form input[type="tel"], .form input[type="email"] { padding: 11px 14px; }
  .chip span { padding: 7px 11px; font-size: .78rem; }
}

/* Las animaciones son parte del diseño: se muestran aunque el equipo tenga
   desactivados los "efectos de animación" de Windows/macOS (prefers-reduced-motion). */

/* =================== BOTÓN LOGIN EN EL MENÚ =================== */
.nav a.nav-login { padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(0, 72, 123, .4); color: var(--blue); }
.hdr .btn-ghost { color: var(--blue); border-color: rgba(0, 72, 123, .4); }
.hdr .btn-ghost:hover { background: var(--blue); color: #fff; }
.nav a.nav-login::after { display: none; }
.nav a.nav-login:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* =================== PÁGINA LOGIN =================== */
/* Fondo dinámico azul y rojo + formulario de cristal compacto (cabe en una pantalla) */
.page-login { min-height: 100vh; min-height: 100svh; overflow-x: hidden; background: #000; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.login-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(90% 80% at 50% 110%, #00345c 0%, #000a14 55%, #000 100%); }
.login-bg::before { /* resplandor cónico que gira lentamente */
  content: ""; position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(197, 42, 58, .16) 28%, transparent 38% 60%, rgba(11, 108, 179, .22) 70%, transparent 80% 100%);
  animation: spin 28s linear infinite;
}
.lg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .65; }
.lg-orb.o1 { width: 46vmax; height: 46vmax; background: var(--blue); left: -14vmax; top: -12vmax; animation: lgFloat1 16s ease-in-out infinite alternate; }
.lg-orb.o2 { width: 36vmax; height: 36vmax; background: var(--red); right: -12vmax; bottom: -14vmax; opacity: .45; animation: lgFloat2 19s ease-in-out infinite alternate; }
.lg-orb.o3 { width: 24vmax; height: 24vmax; background: var(--blue-3); right: 18%; top: 8%; opacity: .25; animation: lgFloat1 13s ease-in-out infinite alternate-reverse; }
@keyframes lgFloat1 { to { transform: translate(24vw, 18vh) scale(1.15); } }
@keyframes lgFloat2 { to { transform: translate(-22vw, -20vh) scale(.9); } }
#loginNet { position: absolute; inset: 0; }
.lg-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); transform: translate(-50%, -50%); }
.lg-ring.r1 { width: min(720px, 120vw); height: min(720px, 120vw); border-style: dashed; animation: ringSpin 60s linear infinite; }
.lg-ring.r2 { width: min(520px, 90vw); height: min(520px, 90vw); border-color: rgba(197, 42, 58, .3); animation: ringSpin 40s linear infinite reverse; }
.lg-ring.r2::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); }
@keyframes ringSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.login-back { position: fixed; top: 18px; left: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font: 600 .86rem/1 var(--ff-h); color: rgba(255, 255, 255, .85); padding: 10px 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: background .3s, color .3s; }
.login-back:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.login-wrap { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 64px 16px 24px; }
.login-card {
  width: min(350px, 100%); display: flex; flex-direction: column; align-items: center;
  padding: 26px 24px 20px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .25s ease-out; animation: cardIn .9s var(--ease-out) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.login-card.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { translate: -8px 0; } 40%, 80% { translate: 8px 0; } }

/* Logo dentro de una baldosa de cristal blanca */
.login-logo {
  width: 104px; height: 104px; padding: 16px; margin-bottom: 16px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(150deg, #fff, #e6eefa);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 3px 3px 10px #fff, inset -6px -8px 16px rgba(11, 108, 179, .14), 0 20px 40px -16px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .06);
  animation: logoFloat 6s ease-in-out infinite;
}
.login-logo img { width: 100%; height: auto; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.login-view { width: 100%; display: flex; flex-direction: column; gap: 12px; transition: opacity .26s, transform .26s; }
.login-view[hidden] { display: none; }
.login-card.swap .login-view { opacity: 0; transform: translateX(-16px); }
.login-view h1 { font-size: 1.55rem; font-weight: 800; text-align: center; }
.login-sub { text-align: center; color: var(--muted); font: 500 .78rem/1.4 var(--ff-h); letter-spacing: .2em; margin: -6px 0 6px; }

.field { position: relative; display: flex; align-items: center; }
.field > .ico { position: absolute; left: 16px; width: 20px; height: 20px; color: rgba(255, 255, 255, .55); pointer-events: none; transition: color .25s; }
.field input {
  width: 100%; height: 50px; padding: 0 48px 0 48px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(150deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px -16px rgba(0, 0, 0, .9);
  color: #fff; font: 500 .95rem var(--ff-b); transition: box-shadow .25s, border-color .25s;
}
.field input::placeholder { color: rgba(255, 255, 255, .45); }
.field input:focus { outline: none; border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(79, 168, 234, .25); }
.field:focus-within > .ico { color: var(--blue-3); }
.field.invalid input { border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(197, 42, 58, .2); }
.eye { position: absolute; right: 8px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: rgba(255, 255, 255, .6); }
.eye:hover, .eye[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.eye .ico { width: 20px; height: 20px; }

.login-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.remember { position: relative; display: inline-flex; align-items: center; gap: 8px; font: 500 .85rem var(--ff-b); color: #dce6f2; cursor: pointer; }
.remember input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.remember .box { width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.remember input:checked + .box { background: linear-gradient(150deg, var(--blue-2), var(--blue)); border-color: var(--blue-3); }
.remember input:checked + .box::after { content: ""; width: 9px; height: 5px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.remember input:focus-visible + .box { outline: 3px solid rgba(79, 168, 234, .5); outline-offset: 2px; }
.login-link { font: 600 .85rem var(--ff-b); color: var(--blue-3); }
.login-link:hover { color: var(--red-2); }
.login-link.center { align-self: center; }

/* Botón principal con brillo y flecha en círculo */
.login-btn {
  position: relative; height: 54px; margin-top: 4px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  font: 700 1.05rem/1 var(--ff-h); color: #fff;
  background: linear-gradient(100deg, var(--blue-2) 0%, var(--blue) 60%, #003a63 100%);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 16px 30px -12px rgba(0, 72, 123, .9), 0 0 30px -8px rgba(11, 108, 179, .7);
  overflow: hidden; transition: box-shadow .3s, filter .3s;
}
.login-btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%); transform: translateX(-120%); animation: btnShine 3.6s ease-in-out infinite; }
@keyframes btnShine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.login-btn:hover { filter: brightness(1.1); }
.login-btn i { position: absolute; right: 9px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); transition: transform .3s, background .3s; }
.login-btn:hover i { transform: translateX(3px); background: var(--red); border-color: var(--red); }
.login-btn i svg { width: 18px; height: 18px; }
.login-btn[disabled] { opacity: .6; pointer-events: none; }
.page-login .form-msg { color: var(--muted); font-size: .85rem; min-height: 0; }
.page-login .form-msg:empty { display: none; }
.page-login .form-msg.ok { color: #6fe3a5; }
.page-login .form-msg.err { color: var(--red-2); }
.page-login .form-msg a { color: #fff; text-decoration: underline; }

.login-tagline { margin-top: 16px; font: 600 .7rem/1 var(--ff-h); letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.login-tagline span { color: var(--red-2); margin: 0 6px; }
.login-corner { position: fixed; right: 24px; bottom: 22px; z-index: 2; font: 600 .7rem/1.7 var(--ff-h); letter-spacing: .28em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.login-corner i { display: block; width: 22px; height: 2px; margin-top: 6px; background: var(--red); }
@media (max-width: 520px) { .login-corner { display: none; } }
@media (max-height: 640px) {
  .login-logo { width: 84px; height: 84px; padding: 12px; border-radius: 22px; margin-bottom: 10px; }
  .login-view { gap: 10px; }
  .field input { height: 46px; }
  .login-btn { height: 48px; }
  .login-tagline { margin-top: 10px; }
}

/* =================== PÁGINA PROGRAMAS =================== */
.page-prog { min-height: 100vh; background: #000; }
.prog-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(80% 70% at 50% 0%, #001c33 0%, #000 70%); pointer-events: none; }
.pg-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.pg-glow.g1 { width: 44vmax; height: 44vmax; left: -14vmax; top: 10%; background: var(--blue); opacity: .55; animation: lgFloat1 18s ease-in-out infinite alternate; }
.pg-glow.g2 { width: 34vmax; height: 34vmax; left: 33%; top: -14vmax; background: var(--red); opacity: .35; animation: lgFloat2 20s ease-in-out infinite alternate; }
.pg-glow.g3 { width: 40vmax; height: 40vmax; right: -14vmax; bottom: -10vmax; background: #7d1422; opacity: .5; animation: lgFloat1 16s ease-in-out infinite alternate-reverse; }
.prog-page { position: relative; z-index: 1; padding: calc(var(--hdr) + 28px) 0 60px; }
.prog-head { text-align: center; max-width: 760px; margin: 0 auto clamp(26px, 4vh, 44px); }
.prog-head .eyebrow { justify-content: center; }
.prog-head h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; margin: 12px 0 14px; }
.prog-head p { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); align-items: stretch; perspective: 1400px; }
.plan {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 24px 26px; border-radius: 26px;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, .08), transparent 60%), linear-gradient(170deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .2s ease-out, border-color .3s, box-shadow .3s, opacity .8s var(--ease-out), translate .8s var(--ease-out);
  opacity: 0; translate: 0 40px;
}
.plan.in { opacity: 1; translate: 0 0; }
.plan.blue { background-color: rgba(0, 72, 123, .28); }
.plan.red { background-color: rgba(125, 20, 34, .25); }
.plan.featured { background-color: rgba(0, 20, 38, .6); border-color: rgba(224, 74, 91, .6); box-shadow: 0 0 0 1px rgba(224, 74, 91, .25), 0 30px 90px -30px rgba(197, 42, 58, .65); }
.plan:hover { border-color: rgba(255, 255, 255, .3); }
.plan.featured:hover { border-color: var(--red-2); }
.plan-badge { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: 6px 14px; border-radius: 999px; background: var(--red); font: 700 .72rem/1 var(--ff-h); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 8px 24px -6px rgba(197, 42, 58, .9); }
.plan-media { aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); background: #02101d; }
.plan-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.85); transition: filter .5s, transform .8s var(--ease-out); }
.plan.featured .plan-media { border-color: rgba(224, 74, 91, .7); box-shadow: 0 0 30px rgba(197, 42, 58, .45); }
.plan.featured .plan-media img, .plan:hover .plan-media img { filter: none; }
.plan:hover .plan-media img { transform: scale(1.06); }
.plan-tag { font: 700 .74rem/1 var(--ff-h); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-3); margin-top: 6px; }
.plan.featured .plan-tag, .plan.red .plan-tag { color: var(--red-2); }
.plan-big { font-size: clamp(2.1rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.plan-big span { color: var(--red); }
.plan-desc { color: var(--muted); font-size: .95rem; margin-top: -4px; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan-list li { position: relative; padding-left: 26px; color: #dce6f2; font-size: .95rem; line-height: 1.4; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--blue-3); }
.plan.featured .plan-list li::before, .plan.red .plan-list li::before { color: var(--red-2); }
.plan .btn { margin-top: 8px; }
.prog-note { text-align: center; color: var(--muted); margin-top: 34px; }
.prog-note a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 28px; }
}

/* =================== CONTACTO: DESPLEGABLE "¿QUÉ TE HA FRENADO?" =================== */
.freno { position: relative; display: flex; flex-direction: column; gap: 7px; }
.freno-label { font: 600 .85rem/1.2 var(--ff-h); color: #dce6f2; }
.freno-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .35);
  font: 400 1rem var(--ff-b); color: rgba(255, 255, 255, .45); text-align: left; transition: border-color .25s, box-shadow .25s;
}
.freno.chosen .freno-btn { color: #fff; }
.freno-btn .ico { transition: transform .3s; color: #fff; }
.freno.open .freno-btn { border-color: var(--blue-3); box-shadow: 0 0 0 3px rgba(79, 168, 234, .25); }
.freno.open .freno-btn .ico { transform: rotate(180deg); }
.freno.invalid .freno-btn { border-color: var(--red-2); }
.freno.invalid .freno-label { color: var(--red-2); }
.freno-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  display: flex; flex-direction: column; padding: 6px; border-radius: 14px;
  background: rgba(4, 18, 31, .97); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .9);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
  max-height: 260px; overflow-y: auto;
}
.freno.open .freno-list { opacity: 1; visibility: visible; transform: none; }
.freno-opt { position: relative; cursor: pointer; }
.freno-opt input { position: absolute; opacity: 0; pointer-events: none; }
.freno-opt span { display: block; padding: 10px 12px; border-radius: 10px; font-size: .92rem; color: #dce6f2; transition: background .2s, color .2s; }
.freno-opt:hover span, .freno-opt input:focus-visible + span { background: rgba(79, 168, 234, .15); color: #fff; }
.freno-opt input:checked + span { background: var(--red); color: #fff; }

/* =================== AVISO DE COOKIES =================== */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 2000; width: min(460px, calc(100% - 32px));
  display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 18px;
  background: rgba(4, 18, 31, .94); border: 1px solid rgba(255, 255, 255, .16); color: #e6eef8;
  backdrop-filter: blur(14px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
  transform: translateY(140%); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s;
}
.cookie-banner.show { transform: none; opacity: 1; }
.cookie-banner p { font-size: .88rem; line-height: 1.5; }
.cookie-more { display: inline; margin-left: 4px; font-size: .88rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn { padding: 10px 18px; border-radius: 999px; font: 700 .85rem/1 var(--ff-h); background: var(--red); color: #fff; transition: background .25s; }
.cookie-btn:hover { background: var(--red-2); }
.cookie-btn.ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); }
.cookie-btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.policy .cookie-actions { margin-top: 10px; }

/* =================== SISTEMA NATURAL: ICONOS ANIMADOS =================== */
.flip-ico {
  position: relative; width: clamp(92px, 9vw, 120px); height: clamp(92px, 9vw, 120px); border-radius: 28px; display: grid; place-items: center;
  background: rgba(0, 20, 38, .55); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7);
}
.ico-anim { width: 68%; height: 68%; overflow: visible; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Hablar: ondas de sonido que salen de la boca */
.ico-talk .w { stroke: var(--red-2); opacity: 0; animation: talkWave 1.6s ease-out infinite; }
.ico-talk .w2 { animation-delay: .2s; } .ico-talk .w3 { animation-delay: .4s; }
@keyframes talkWave { 0% { opacity: 0; transform: translateX(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(3px); } }
/* Escribir: el lápiz avanza dejando la línea de tinta */
.ico-write .paper { stroke: rgba(255, 255, 255, .35); }
.ico-write .ink { stroke: var(--blue-3); stroke-dasharray: 60; stroke-dashoffset: 60; animation: ink 2.4s linear infinite; }
.ico-write .pencil { fill: var(--red-2); stroke: #fff; stroke-width: 1.6; animation: pencil 2.4s linear infinite; }
@keyframes ink { 0% { stroke-dashoffset: 60; } 80%, 100% { stroke-dashoffset: 0; } }
@keyframes pencil {
  0% { transform: translate(8px, 34px); } 13% { transform: translate(12px, 28px); } 27% { transform: translate(16px, 34px); }
  40% { transform: translate(20px, 39px); } 53% { transform: translate(24px, 34px); } 67% { transform: translate(28px, 28px); }
  80%, 100% { transform: translate(40px, 34px); }
}
/* Leer: la cabeza recorre el libro de izquierda a derecha */
.ico-read .reader { animation: reading 2.8s ease-in-out infinite; }
.ico-read .txt { stroke: var(--blue-3); stroke-width: 1.8; opacity: .8; }
.ico-read .t1 { animation: txtBlink 2.8s ease-in-out infinite; } .ico-read .t2 { animation: txtBlink 2.8s ease-in-out infinite 1.4s; }
@keyframes reading { 0%, 100% { transform: translate(-8px, 1px) rotate(-8deg); } 50% { transform: translate(8px, 1px) rotate(8deg); } }
@keyframes txtBlink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* Pensar: burbujas de pensamiento que aparecen una tras otra */
.ico-think .b { fill: rgba(79, 168, 234, .25); stroke: var(--blue-3); opacity: 0; transform-box: fill-box; transform-origin: center; animation: thought 2.6s ease-in-out infinite; }
.ico-think .b2 { animation-delay: .35s; } .ico-think .b3 { animation-delay: .7s; }
.ico-think .b3 path { stroke: #fff; stroke-width: 2; }
@keyframes thought { 0% { opacity: 0; transform: scale(.4); } 25%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.1); } }
@media (max-width: 520px) { .flip-ico { width: 70px; height: 70px; border-radius: 20px; } }
.freno.up .freno-list { top: auto; bottom: calc(100% + 6px); transform: translateY(6px); }
.freno.up.open .freno-list { transform: none; }

/* Mobile Learning: tamaños por tarjeta */
.c3d .face.zoom-l img { transform: scale(1.4); }   /* Laptop (T1) más grande */
.c3d .face.zoom-t img { transform: scale(1.22); }  /* Tablet (T2) más grande */
.c3d .face.small img { transform: scale(1.18); } /* Reloj y calendario 24/7 (T8) */

/* =================== MODALIDAD MIXTO: TARJETA QUE GIRA =================== */
.mode-flip { overflow: visible; background: transparent; perspective: 1100px; cursor: pointer; outline: none; }
.mode-flip:focus-visible { outline: 3px solid var(--blue-3); outline-offset: 4px; }
.mf-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.mode-flip.flipped .mf-in { transform: rotateY(180deg); }
.mf-face { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .9); }
.mf-face img { width: 100%; height: 100%; object-fit: cover; }
.mf-back { transform: rotateY(180deg); }
.mf-tag { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; font: 700 .76rem/1 var(--ff-h); letter-spacing: .04em; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px); }
.mf-back .mf-tag { background: rgba(197, 42, 58, .85); border-color: transparent; }

/* =================== CONTENIDO MULTIMEDIA: TÍTULO ARRIBA Y TARJETAS 3D =================== */
.multi { padding: calc(var(--hdr) + 14px) 0 24px; }
.multi-wrap { display: flex; flex-direction: column; gap: clamp(22px, 4vh, 44px); }
.multi-head { text-align: center; }
.multi .multi-title { position: static; transform: none; width: auto; margin: 0 auto; }
.m-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 22px); perspective: 1200px; }
/* Entrada: inclinadas y transparentes, escalonadas al ritmo de la transición (--enter lo publica el efecto zoom in) */
.m-card {
  --k: clamp(0, calc((var(--enter, 1) - var(--i) * .12) * 2.2), 1);
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 90px)) rotateX(calc((1 - var(--k)) * 38deg)) rotateZ(calc((1 - var(--k)) * -6deg));
  transform-origin: 50% 100%;
}
.m-inner {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
  position: relative; height: 100%; border-radius: 22px; overflow: hidden;
  background: linear-gradient(165deg, rgba(11, 108, 179, .35), rgba(2, 16, 29, .92) 60%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease-out, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.m-card:hover .m-inner { border-color: rgba(255, 255, 255, .3); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95), 0 0 30px -10px rgba(79, 168, 234, .5); }
.m-media { aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 40%, rgba(79, 168, 234, .3), transparent 70%); }
.m-media img { width: 86%; height: 86%; object-fit: contain; transition: transform .5s var(--ease-out); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .55)); pointer-events: none; }
.m-card:hover .m-media img { transform: scale(1.06); }
.m-body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.m-body h3 { font-size: clamp(1.05rem, 1.4vw, 1.3rem); font-weight: 800; }
.m-body p { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.m-more { margin-top: 6px; align-self: flex-start; font: 700 .86rem/1 var(--ff-h); color: var(--blue-3); display: inline-flex; gap: 6px; transition: color .25s; }
.m-more span { transition: transform .25s; }
.m-more:hover, .m-card:hover .m-more { color: var(--red-2); }
.m-card:hover .m-more span { transform: translateX(4px); }
/* Reflejo que sigue al cursor */
.m-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--gx) var(--gy), rgba(255, 255, 255, .28), transparent 60%);
  mix-blend-mode: overlay;
}
.m-card:hover .m-glare { opacity: 1; }
@media (max-width: 960px) {
  .m-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .m-cards { grid-template-columns: repeat(2, 1fr); }
  .m-card:last-child { grid-column: span 2; max-width: 50%; justify-self: center; }
  .m-body p { display: none; }
}

/* =================== TESTIMONIOS: TARJETAS DEL MISMO TAMAÑO + "VER MÁS" =================== */
.track .t-card { height: 380px; }
.track .t-card blockquote {
  flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.t-more {
  align-self: flex-start; margin-top: -8px; font: 700 .85rem/1 var(--ff-h); color: var(--blue-3);
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; transition: color .25s;
}
.t-more::after { content: "→"; transition: transform .25s; }
.t-more:hover { color: var(--red-2); }
.t-more:hover::after { transform: translateX(4px); }
.t-more[hidden] { display: none; }

/* Tarjeta ampliada */
.t-dialog { color: #fff; margin: auto; padding: 0; border: 0; background: transparent; width: min(640px, calc(100% - 32px)); max-height: 88vh; overflow: visible; }
.t-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); }
.t-dialog[open] .t-full { animation: tCardIn .45s var(--ease-out) both; }
@keyframes tCardIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.t-full { width: 100%; max-height: 86vh; overflow-y: auto; padding: 34px; background: linear-gradient(160deg, #0b2a47, #04121f); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .95); }
.t-full blockquote { font-size: 1.05rem; line-height: 1.7; }
.t-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.5rem; line-height: 1; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .8); }
.t-close:hover { background: var(--red-2); }
@media (max-width: 520px) { .track .t-card { height: 340px; } }


/* =================== AJUSTES SOLO PARA CELULAR =================== */
@media (max-width: 860px) {
  /* Inicio: sin la etiqueta "Apolo English · English Program" */
  .hero .eyebrow { display: none; }

  /* Países: banderas y título juntos, centrados en la pantalla */
  .paises-in { height: calc(var(--vh) - var(--hdr) - 50px); justify-content: center; gap: clamp(36px, 8vh, 70px); }

  /* Experiencia: todo centrado */
  .exp-grid { height: auto; grid-template-rows: auto; align-content: center; gap: clamp(28px, 5vh, 48px); min-height: calc(var(--vh) - var(--hdr) - 60px); }
  .exp-row.r2, .exp-row.r3 { align-items: center; text-align: center; }
  .exp-row.r3 .exp-sub { order: 2; }
  .exp-sub { max-width: none; }
  .exp-sub::before, .exp-row.r3 .exp-sub::before { margin-inline: auto; }
  .exp-row.r1, .exp-row.r4 { justify-content: center; text-align: center; }
  .exp-row.r1 .exp-line, .exp-row.r4 .exp-line { display: none; }

  /* Contacto: primero el formulario, debajo los datos y las redes; sin mascota ni título */
  .contacto .ct-title, .contact-info > .eyebrow, .contact-img { display: none; }
  .contact-grid { gap: 22px; }
  .contacto .form { order: -1; }
  .contact-info { align-items: center; gap: 16px; }
  .contact-info .data { align-items: flex-start; }
  .contact-socials { align-self: center; }
  .social { margin-top: 4px; justify-content: flex-start; }
  .foot-in { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; text-align: left; }
  .foot p { text-align: left; }
}
/* Sistema natural: sin numeración 01–04 */
.flip .step { display: none; }
@media (max-width: 860px) {
  /* Metodología en celular: los dos textos arriba y el cerebro abajo, sobre el proyector */
  .pnl-grid { grid-template-areas: "head" "left" "right" "holo"; row-gap: 14px; }
  .holo { height: clamp(220px, 32vh, 320px); }
}
