/* =============================================================
   Academia Faro (demo) · styles.css
   Dirección: «cuaderno con luz» — papel cálido, tinta azul cobalto,
   subrayador amarillo faro y bolígrafo rojo de corrección.
   1. Tokens · 2. Base · 3. Botones · 4. Barra demo y nav · 5. Hero
   6. Secciones · 7. Cursos · 8. Test · 9. Horarios · 10. Calculadora
   11. Método · 12. Equipo · 13. FAQ · 14. Reserva · 15. Contacto
   16. Pie · 17. Chat · 18. Efectos · 19. Responsive · 20. Movimiento
   ============================================================= */

/* 1. Tokens */
:root {
  --paper: #FAF7F0;
  --paper-2: #F3EEE2;
  --white: #FFFFFF;
  --ink: #0D1B3E;
  --ink-2: #33406A;
  --mute: #5A6384;
  --line: #D9DCE8;
  --line-2: #C9CEDF;
  --cobalt: #2340D8;
  --cobalt-d: #1A2FA3;
  --cobalt-l: #E4E9FC;
  --sun: #FFD447;
  --sun-l: #FFF1BF;
  --red: #C4331C;
  --coral: #E0563B;
  --coral-l: #FCE3DC;
  --green: #2F7D57;
  --green-l: #DDF1E5;
  --night: #0D1B3E;
  --night-2: #15275A;
  --night-3: #22377A;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --gut: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 0 rgba(13, 27, 62, .04), 0 18px 40px -22px rgba(13, 27, 62, .35);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-d); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); line-height: 1.08; font-weight: 750; letter-spacing: -.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.sec-night :focus-visible, .footer :focus-visible, .demo-bar :focus-visible { outline-color: var(--sun); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 12px; color: var(--white); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); }
.ico { width: 18px; height: 18px; flex: none; }
.pen { font-family: var(--hand); font-weight: 600; color: var(--red); font-size: 1.55rem; line-height: 1.15; }
.pen-light { color: var(--sun); }
.fine { margin-top: 1.4rem; font-size: .88rem; color: var(--mute); }

/* 3. Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: 0 1.35rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-weight: 650; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--cobalt); color: var(--white); box-shadow: 0 10px 22px -12px rgba(35, 64, 216, .8); }
.btn-primary:hover { background: var(--cobalt-d); color: var(--white); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--cobalt); color: var(--white); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--white); color: var(--ink); }
.btn-lg { min-height: 58px; padding: 0 1.6rem; font-size: 1.05rem; }
.btn-sm { min-height: 42px; padding: 0 1.05rem; font-size: .93rem; }
.btn-block { width: 100%; }
.btn-sub { font-size: .75rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.btn-text { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .4rem; font-weight: 600; color: var(--ink-2); border-radius: 8px; }
.btn-text:hover { color: var(--cobalt); }
.btn-text:disabled { opacity: .35; cursor: default; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; text-decoration: none; color: var(--ink); min-height: 42px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 4. Barra demo y navegación */
.demo-bar { background: var(--night); color: #E8ECF8; font-size: .78rem; letter-spacing: .01em; text-align: center; padding: .5rem var(--gut); }
.demo-bar p { margin: 0; }
.demo-bar a { color: var(--white); font-weight: 650; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.demo-bar a:hover { color: var(--sun); }
.demo-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: .5rem; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255, 212, 71, .25); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, .97); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 1rem; height: var(--nav-h); max-width: 1240px; margin: 0 auto; padding-inline: var(--gut); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-beam { transform-origin: 25px 15.5px; animation: beam-sweep 5s ease-in-out infinite; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: var(--display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand-txt small { font-size: .72rem; font-weight: 600; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: none; gap: .2rem; }
.nav-links a { padding: .5rem .7rem; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-links a:hover { background: var(--cobalt-l); color: var(--cobalt-d); }
.nav-cta { display: none; }
.burger { width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; gap: 6px; background: var(--ink); }
.burger span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.sheet { display: grid; gap: 2px; padding: .5rem var(--gut) 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100svh - var(--nav-h) - 40px); overflow-y: auto; }
.sheet a { display: flex; align-items: baseline; gap: .8rem; padding: .75rem .2rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.sheet a small { font-family: var(--body); font-size: .75rem; font-weight: 700; color: var(--cobalt); }

/* 5. Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px);
  background:repeating-linear-gradient(0deg, transparent 0 31px, rgba(35, 64, 216, .065) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(35, 64, 216, .065) 31px 32px), var(--paper);
  overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(rgba(250, 247, 240, 0), var(--paper)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .85rem .4rem .6rem; margin-bottom: 1.4rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.eyebrow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 212, 71, .35); }
.h-hero { font-size: clamp(2.7rem, 6.4vw, 5.1rem); font-weight: 800; line-height: .96; letter-spacing: -.04em; font-variation-settings: "opsz" 96; margin-bottom: 1.5rem; }
.h-hero .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.h-hero .line > span { display: inline-block; }
.hl { color: inherit; background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 94%, transparent 94%) no-repeat 0 0 / var(--hl, 100%) 100%; padding: 0 .06em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--ink-2); max-width: 36em; margin-bottom: 2rem; }
.hero-note { position: relative; display: inline-flex; align-items: center; gap: .3rem; margin: 1.5rem 0 0; transform: rotate(-3deg); }
.pen-arrow { width: 70px; height: 36px; color: var(--red); transform: scaleY(-1) rotate(10deg); }

.hero-art { position: relative; max-width: 520px; width: 100%; justify-self: center; padding: 26px 0 30px; }
.night { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 520 / 600; box-shadow: 0 40px 80px -40px rgba(13, 27, 62, .65); }
.night-svg { width: 100%; height: 100%; }
.beam { transform-origin: 260px 185px; animation: beam-sweep 7s ease-in-out infinite; }
.stars circle { animation: twinkle 3.6s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: 1.2s; }
.stars circle:nth-child(3n) { animation-delay: 2.1s; }
.waves path { animation: wave 6s ease-in-out infinite alternate; }
.waves path:nth-child(2) { animation-duration: 7.5s; }
.waves path:nth-child(3) { animation-duration: 9s; }
@keyframes beam-sweep { 0%, 100% { transform: scaleX(1); opacity: 1; } 45%, 55% { transform: scaleX(-1); opacity: .75; } }
@keyframes twinkle { 50% { opacity: .25; } }
@keyframes wave { to { transform: translateX(-60px); } }

.float-card { position: absolute; background: var(--white); border-radius: 18px; padding: .9rem 1rem; box-shadow: var(--shadow), 0 0 0 1px rgba(13, 27, 62, .06); font-size: .82rem; color: var(--ink); }
.fc-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); margin-bottom: .55rem; }
.fc-top b { color: var(--cobalt); font-family: var(--display); font-size: .95rem; letter-spacing: 0; }
.fc-tag { background: var(--sun-l); color: var(--ink) !important; font-family: var(--body) !important; font-size: .68rem !important; padding: .1rem .45rem; border-radius: 999px; text-transform: uppercase; }
.fc-bar { height: 6px; border-radius: 6px; background: var(--cobalt-l); overflow: hidden; margin-bottom: .7rem; }
.fc-bar i { display: block; height: 100%; background: var(--cobalt); border-radius: 6px; }
.fc-q { font-family: var(--display); font-weight: 650; font-size: .98rem; line-height: 1.25; margin-bottom: .6rem; }
.fc-opts { display: flex; gap: .35rem; }
.fc-opts span { padding: .3rem .6rem; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; }
.fc-opts .is-on { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.fc-test { left: -6%; top: 12%; width: 250px; transform: rotate(-3deg); }
.fc-report { right: -5%; bottom: 7%; width: 236px; transform: rotate(2.5deg); }
.fc-skills { display: grid; gap: .45rem; margin-bottom: .5rem; }
.fc-skills li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: .5rem; font-weight: 600; font-size: .78rem; }
.fc-skills i { height: 7px; border-radius: 7px; background: var(--paper-2); overflow: hidden; }
.fc-skills b { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--cobalt), #5B74F0); }
.fc-note { margin: 0; font-family: var(--hand); font-size: 1.25rem; color: var(--red); line-height: 1.1; }
.sticker { position: absolute; top: 0; right: 6%; width: 116px; height: 116px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-content: center; text-align: center; transform: rotate(10deg); box-shadow: 0 16px 30px -16px rgba(13, 27, 62, .6); }
.sticker::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(13, 27, 62, .45); }
.sticker b { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: .9; }
.sticker span { font-size: .7rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .03em; }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px); border-top: 2px solid var(--ink); }
.facts li { padding: 1.1rem .9rem 1.1rem 0; border-bottom: 1px dashed var(--line-2); display: grid; gap: .25rem; }
.facts b { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; color: var(--cobalt); }
.facts span { font-size: .92rem; color: var(--ink-2); line-height: 1.35; max-width: 18em; }

/* 6. Secciones */
.sec { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.sec-paper { background: var(--paper-2); }
.sec-grid { background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(35, 64, 216, .055) 31px 32px), var(--paper); }
.sec-head { display: grid; gap: 1rem; margin-bottom: clamp(36px, 5vw, 60px); }
.unit { display: inline-flex; align-items: center; gap: .7rem; margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.unit span { font-family: var(--hand); font-size: 1.35rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--white); background: var(--cobalt); padding: 0 .65rem; border-radius: 8px; transform: rotate(-3deg); line-height: 1.35; }
.unit-light { color: #C9D2F2; }
.unit-light span { background: var(--sun); color: var(--ink); }
.h-sec { font-size: clamp(2.05rem, 4.6vw, 3.7rem); font-weight: 780; line-height: 1.02; letter-spacing: -.035em; font-variation-settings: "opsz" 72; max-width: 15em; }
.h-sec em { font-style: normal; font-weight: 500; color: var(--cobalt); }
.sec-intro { margin: 0; color: var(--ink-2); font-size: 1.08rem; max-width: 34em; }

/* 7. Cursos */
.courses { display: grid; gap: 22px; }
.course { --c: var(--sun); --cl: var(--sun-l); position: relative; display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 2.2rem 1.5rem 1.4rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 0 0 var(--c); }
.course:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--c); }
.c-blue { --c: var(--cobalt); --cl: var(--cobalt-l); }
.c-red { --c: var(--coral); --cl: var(--coral-l); }
.c-navy { --c: var(--ink); --cl: #E3E6F0; }
.course-tab { position: absolute; top: -15px; left: 1.2rem; margin: 0; padding: .3rem .8rem; border-radius: 10px 10px 10px 2px; background: var(--c); color: var(--white); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid var(--ink); }
.c-yellow .course-tab { color: var(--ink); }
.course h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.course-lead { color: var(--ink-2); font-size: .98rem; }
.ticks { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--cl) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230D1B3E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.course-meta { display: flex; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line-2); font-size: .85rem; font-weight: 600; color: var(--mute); }
.course-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.course-meta svg { width: 16px; height: 16px; }
.course-price { margin: .3rem 0 1rem; font-size: .95rem; color: var(--ink-2); }
.course-price b { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.course-price small { font-size: .78rem; font-weight: 700; color: var(--cobalt); text-transform: uppercase; letter-spacing: .04em; }
.course-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }

/* 8. Test de nivel */
.sec-night { background: var(--night); color: #E8ECF8; overflow: hidden; }
.sec-night .h-sec { color: var(--white); }
.sec-night .h-sec em { color: var(--sun); }
.sec-night .sec-intro { color: #C9D2F2; }
.beam-bg { position: absolute; left: -30%; top: -40%; width: 160%; height: 180%; background: conic-gradient(from 200deg at 22% 40%, transparent 0 8deg, rgba(255, 212, 71, .13) 14deg, transparent 26deg, transparent 360deg); pointer-events: none; animation: beam-rot 16s ease-in-out infinite alternate; transform-origin: 22% 40%; }
@keyframes beam-rot { to { transform: rotate(38deg); } }
.test-grid { position: relative; display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
.test-copy .h-sec { margin: 1rem 0 1.2rem; }
.test-points { display: grid; gap: .9rem; margin: 2rem 0; }
.test-points li { display: grid; grid-template-columns: 86px 1fr; gap: 1rem; align-items: baseline; padding-bottom: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.test-points b { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--sun); }
.test-points span { color: #DCE2F5; }
.test-kids { color: #C9D2F2; font-size: .95rem; }
.test-kids .pen { font-size: 1.4rem; margin-right: .25rem; }

.quiz { position: relative; }
.quiz::before { content: ""; position: absolute; inset: 14px -10px -12px 14px; border-radius: 28px; background: var(--sun); transform: rotate(2deg); }
.quiz-sheet { position: relative; background: var(--paper); color: var(--ink); border-radius: 26px; padding: clamp(1.4rem, 3vw, 2.4rem); min-height: 520px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); background-image: linear-gradient(90deg, transparent 0 38px, rgba(196, 51, 28, .28) 38px 39.5px, transparent 39.5px); }
.quiz-screen { padding-left: 34px; }
.quiz-kicker { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); margin-bottom: .5rem; }
.quiz-h { font-size: clamp(1.45rem, 2.6vw, 1.95rem); line-height: 1.18; margin-bottom: .5rem; outline: none; }
.quiz-h:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.quiz-sub { color: var(--mute); margin-bottom: 1.4rem; }
.who { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.who-opt { position: relative; display: block; cursor: pointer; }
.who-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.who-opt span { display: flex; flex-direction: column; padding: .9rem 1rem .9rem 3.2rem; border-radius: 16px; background: var(--white); border: 2px solid var(--line); transition: border-color .2s, background .2s; position: relative; }
.who-opt span::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); transition: border .2s, box-shadow .2s; }
.who-opt b { font-weight: 700; }
.who-opt small { color: var(--mute); font-size: .88rem; }
.who-opt input:checked + span { border-color: var(--cobalt); background: var(--cobalt-l); }
.who-opt input:checked + span::before { border: 7px solid var(--cobalt); }
.who-opt input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.quiz-legal { margin: 1rem 0 0; font-size: .85rem; color: var(--mute); }

.quiz-progress p { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .55rem; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.q-type { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--sun-l); color: var(--ink); }
.bar { height: 10px; border-radius: 10px; background: var(--cobalt-l); overflow: hidden; margin-bottom: 1.6rem; }
.bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--cobalt), #5B74F0); transition: width .45s var(--ease); }
.q-passage { margin: 0 0 1rem; padding: .9rem 1rem; border-left: 4px solid var(--sun); background: var(--white); border-radius: 0 12px 12px 0; font-family: var(--display); font-weight: 500; font-size: 1.02rem; line-height: 1.45; }
.q-text { margin-bottom: 1.2rem; font-weight: 700; }
.q-opts { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.q-opt { display: flex; align-items: center; gap: .85rem; width: 100%; min-height: 54px; padding: .6rem .9rem; border-radius: 14px; background: var(--white); border: 2px solid var(--line); text-align: left; font-weight: 600; font-size: 1.02rem; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.q-opt:hover { border-color: var(--cobalt); }
.q-opt .k { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--paper-2); font-family: var(--display); font-weight: 800; font-size: .92rem; color: var(--ink-2); transition: background .15s, color .15s; }
.q-opt[aria-checked="true"] { border-color: var(--cobalt); background: var(--cobalt-l); }
.q-opt[aria-checked="true"] .k { background: var(--cobalt); color: var(--white); }
.q-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.btn-idk { margin-left: auto; }
.q-nav .btn { min-width: 140px; }
.quiz-loading { display: flex; align-items: center; gap: .6rem; color: var(--mute); }

.res-top { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.res-badge { position: relative; flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--night); color: var(--white); box-shadow: 0 0 0 6px var(--sun); }
.res-badge b { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--sun); }
.res-badge small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C9D2F2; }
.res-top h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.res-top p { margin: .2rem 0 0; color: var(--mute); font-size: .92rem; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 1.2rem; }
.scale li { position: relative; padding: .45rem 0 .35rem; text-align: center; font-family: var(--display); font-weight: 800; font-size: .9rem; color: var(--mute); background: var(--white); border: 1.5px solid var(--line); }
.scale li:first-child { border-radius: 10px 0 0 10px; }
.scale li:last-child { border-radius: 0 10px 10px 0; }
.scale li.is-done { background: var(--cobalt-l); color: var(--cobalt-d); border-color: #C4CEF7; }
.scale li.is-me { background: var(--cobalt); color: var(--white); border-color: var(--cobalt); }
.scale li.is-me::after { content: "tú"; position: absolute; left: 50%; top: -1.35rem; transform: translateX(-50%) rotate(-6deg); font-family: var(--hand); font-weight: 700; font-size: 1.2rem; color: var(--red); }
.res-text { color: var(--ink-2); }
.res-next { font-size: .95rem; color: var(--ink-2); padding: .7rem .9rem; border-radius: 12px; background: var(--white); border: 1px dashed var(--line-2); }
.res-group { position: relative; margin: 1.2rem 0; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--sun-l); border: 2px solid var(--ink); }
.res-group-k { margin: 0 0 .3rem; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.res-group h4 { font-size: 1.45rem; margin-bottom: .2rem; }
.res-group p { margin: 0; }
.res-group .rg-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .6rem; font-weight: 650; font-size: .93rem; }
.res-group .rg-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.res-group .rg-meta svg { width: 16px; height: 16px; }
.res-group .rg-warn { margin-top: .6rem; font-size: .88rem; color: var(--ink-2); }
.res-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.res-legal { margin: 1rem 0 0; font-size: .85rem; color: var(--mute); display: flex; gap: .4rem; }

/* 9. Horarios */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: 0 1rem; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line-2); font-weight: 650; font-size: .92rem; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.d-yellow { background: #E9B516; } .d-blue { background: var(--cobalt); } .d-green { background: var(--green); } .d-red { background: var(--coral); } .d-navy { background: var(--ink); }
.chip.is-on .d-navy { background: var(--white); }
.days-tabs { display: none; }
.timetable { display: grid; gap: 18px; }
.tt-col { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 1.1rem 1.1rem .6rem; }
.tt-h { font-size: 1.2rem; padding-bottom: .8rem; margin-bottom: .2rem; border-bottom: 2px solid var(--ink); }
.tt-slot { display: grid; grid-template-columns: 58px 1fr; gap: .8rem; padding: .7rem 0; border-bottom: 1px dashed var(--line-2); }
.tt-slot:last-of-type { border-bottom: 0; }
.tt-time { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--cobalt); padding-top: .35rem; }
.tt-cells { display: grid; gap: .45rem; }
.grp { --g: #E9B516; --gl: var(--sun-l); margin: 0; padding: .5rem .75rem; border-radius: 10px; background: var(--gl); border-left: 5px solid var(--g); line-height: 1.25; transition: opacity .3s, filter .3s, transform .3s var(--ease); }
.grp b { display: block; font-weight: 700; font-size: .96rem; }
.grp small { font-size: .82rem; color: var(--ink-2); }
.g-eso { --g: var(--cobalt); --gl: var(--cobalt-l); }
.g-refuerzo { --g: var(--green); --gl: var(--green-l); }
.g-adultos { --g: var(--coral); --gl: var(--coral-l); }
.g-examenes { --g: var(--ink); --gl: #E3E6F0; }
.grp.is-dim { opacity: .28; filter: grayscale(1); }
.grp.is-hit { transform: translateX(4px); }
.tt-note { margin-top: .8rem; padding: 1rem; border-radius: 14px; background: var(--paper-2); font-size: .92rem; }
.tt-note p { margin: 0 0 .5rem; }
.tt-note .pen { font-size: 1.35rem; margin: 0; }

/* 10. Calculadora */
.calc { display: grid; gap: 22px; align-items: start; }
.calc-form { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: 1.6rem; }
.cf { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf legend, .cf-label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; padding: 0; margin-bottom: .7rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.cf-out { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--cobalt); }
.cf-hint { margin: .55rem 0 0; font-size: .86rem; color: var(--mute); }
.seg { display: grid; gap: .5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: .6rem .9rem; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); transition: border-color .2s, background .2s, color .2s; }
.seg-small span { min-height: 50px; align-items: center; text-align: center; }
.seg b { font-weight: 700; }
.seg small { font-size: .82rem; color: var(--mute); }
.seg input:checked + span { border-color: var(--cobalt); background: var(--cobalt); color: var(--white); }
.seg input:checked + span small { color: #DDE3FF; }
.seg input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--cobalt) var(--p, 0%), var(--cobalt-l) var(--p, 0%)); }
.range::-moz-range-track { height: 10px; border-radius: 10px; background: var(--cobalt-l); }
.range::-moz-range-progress { height: 10px; border-radius: 10px; background: var(--cobalt); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); box-shadow: 0 4px 10px rgba(13, 27, 62, .25); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
.range:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.switch { position: relative; display: flex; align-items: center; gap: .9rem; cursor: pointer; padding: .9rem 1rem; border-radius: 14px; background: var(--sun-l); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; flex: none; width: 52px; height: 30px; border-radius: 30px; background: var(--line-2); transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + .switch-ui { background: var(--cobalt); }
.switch input:checked + .switch-ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.switch b { display: block; }
.switch small { color: var(--ink-2); font-size: .86rem; }

.ticket { position: relative; background: var(--night); color: #E8ECF8; border-radius: var(--r) var(--r) 0 0; padding: 1.6rem 1.5rem 2.2rem; }
.ticket::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: radial-gradient(circle at 10px -2px, transparent 11px, var(--night) 12px) 0 0 / 20px 12px repeat-x; transform: scaleY(-1); }
.ticket-kicker { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: .2rem; }
.ticket-price { display: flex; align-items: baseline; gap: .4rem; margin: 0; }
.ticket-price b { font-family: var(--display); font-weight: 800; font-size: clamp(3.6rem, 7vw, 5rem); line-height: 1; letter-spacing: -.04em; color: var(--white); font-variant-numeric: tabular-nums; }
.ticket-price span { font-weight: 700; color: #C9D2F2; }
.ticket-sub { color: #C9D2F2; font-size: .94rem; margin: .3rem 0 1.2rem; }
.ticket-lines { display: grid; margin-bottom: 1rem; border-top: 1px dashed rgba(255, 255, 255, .25); }
.ticket-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .25); font-size: .94rem; }
.ticket-lines li b { font-variant-numeric: tabular-nums; color: var(--white); white-space: nowrap; }
.ticket-lines li.is-disc b { color: var(--sun); }
.ticket-trim { padding: .7rem .9rem; border-radius: 12px; background: rgba(255, 212, 71, .12); color: var(--sun-l); font-size: .92rem; }
.ticket .btn-primary { background: var(--sun); color: var(--ink); box-shadow: none; }
.ticket .btn-primary:hover { background: var(--white); color: var(--ink); }
.ticket-legal { margin: .9rem 0 0; font-size: .8rem; color: #AEB8DC; }

/* 11. Método */
.method { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.six { background: var(--white); border: 1.5px solid var(--ink); border-radius: 28px; padding: 1.5rem; }
.six-svg { width: 100%; max-width: 440px; margin: 0 auto; }
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px dashed var(--line-2); }
.step:first-child { padding-top: 0; }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.step h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.step p { margin: 0; color: var(--ink-2); }
.report-wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.report { position: relative; background: var(--white); border-radius: 22px; padding: 1.6rem 1.5rem 1.2rem 2.6rem; box-shadow: var(--shadow), 0 0 0 1.5px var(--ink); transform: rotate(-1deg); }
.report::before { content: ""; position: absolute; left: 12px; top: 24px; bottom: 24px; width: 12px; background: radial-gradient(circle, var(--paper-2) 5px, transparent 5.5px) 0 0 / 12px 36px repeat-y; }
.report-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.report-k { margin: 0 0 .2rem; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.report h3 { font-size: 1.35rem; }
.report-g { margin: .2rem 0 0; font-size: .9rem; color: var(--mute); }
.report-att { flex: none; text-align: center; padding: .5rem .7rem; border-radius: 14px; background: var(--green-l); }
.report-att b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--green); line-height: 1; }
.report-att small { font-size: .72rem; font-weight: 700; color: var(--ink-2); }
.skills { display: grid; gap: .8rem; }
.skills li { display: grid; grid-template-columns: 128px 1fr 40px; align-items: center; gap: .8rem; font-size: .92rem; font-weight: 600; }
.skills i { position: relative; height: 12px; border-radius: 12px; background: var(--paper-2); }
.skills b { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 12px; background: linear-gradient(90deg, var(--cobalt), #5B74F0); transform-origin: 0 50%; }
.skills em { position: absolute; top: -4px; bottom: -4px; left: var(--w); width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--red); }
.skills strong { font-family: var(--display); font-weight: 800; color: var(--green); text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: .9rem 0 1rem; font-size: .8rem; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { display: inline-block; }
.lg-now { width: 18px; height: 8px; border-radius: 8px; background: var(--cobalt); }
.lg-prev { width: 3px; height: 14px; border-radius: 2px; background: var(--red); }
.report-note { padding: .9rem 1rem; border-radius: 14px; background: var(--sun-l); }
.report-note .pen { font-size: 1.35rem; margin: 0 0 .3rem; color: var(--ink); }
.report-sign { margin: 0; text-align: right; font-family: var(--hand); font-size: 1.3rem; color: var(--red); }
.report-foot { margin: .8rem 0 0; font-size: .78rem; color: var(--mute); }
.method-list { display: grid; gap: 1.1rem; }
.method-list li { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; align-items: start; color: var(--ink-2); }
.method-list svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--cobalt); color: var(--white); }
.method-list b { color: var(--ink); }

/* 12. Equipo */
.team { display: grid; gap: 22px; }
.teacher { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: 1.5rem; transition: border-color .3s, transform .3s var(--ease); }
.teacher:hover { border-color: var(--ink); transform: translateY(-4px); }
.mono { width: 92px; height: 92px; display: grid; place-items: center; margin-bottom: 1.2rem; font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.03em; }
.m-yellow { background: var(--sun); color: var(--ink); border-radius: 50%; }
.m-red { background: var(--coral); color: var(--white); border-radius: 28px 28px 28px 6px; }
.m-blue { background: var(--cobalt); color: var(--white); border-radius: 6px 46px 46px 46px; }
.m-green { background: var(--green); color: var(--white); border-radius: 46% 54% 38% 62% / 52% 40% 60% 48%; }
.teacher h3 { font-size: 1.35rem; }
.t-role { margin: .25rem 0 .7rem; font-size: .8rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); }
.teacher p:last-child { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* 13. FAQ */
.faq-grid { display: grid; gap: 2rem; }
.faq-grid .sec-head { margin-bottom: 0; align-content: start; }
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--white); border-radius: 16px; border: 1.5px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cobalt-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%232340D8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--ink-2); }

/* 14. Reserva */
.book-grid { display: grid; gap: 22px; align-items: start; }
.book-form, .book-ok { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem); }
.from-test { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; padding: .7rem .9rem; border-radius: 12px; background: var(--sun-l); font-weight: 650; font-size: .93rem; }
.from-test svg { width: 20px; height: 20px; flex: none; color: var(--green); }
.f-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.field { display: grid; gap: .35rem; min-width: 0; margin: 0 0 1rem; padding: 0; border: 0; }
.f-grid .field { margin: 0; }
.field label, .field legend { font-weight: 650; font-size: .93rem; padding: 0; }
.field small { font-weight: 500; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230D1B3E' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right .8rem center / 18px no-repeat; padding-right: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(35, 64, 216, .18); background: var(--white); }
.field ::placeholder { color: #7C84A2; }
.is-bad, .field .is-bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(196, 51, 28, .15) !important; }
.slots { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; border-radius: 14px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s, border-color .2s, color .2s; }
.slot:hover span { border-color: var(--ink); }
.slot input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.slot input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.slot.is-full { cursor: not-allowed; }
.slot.is-full span { opacity: .45; text-decoration: line-through; }
.slot.is-full input { pointer-events: none; }
.slot.is-off { display: none; }
.check { display: flex; gap: .7rem; align-items: flex-start; margin: .4rem 0 1rem; font-size: .93rem; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--cobalt); }
.form-error { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: #FDECE8; color: #9B2512; font-weight: 600; font-size: .93rem; }
.form-note { margin: .9rem 0 0; font-size: .84rem; color: var(--mute); text-align: center; }
.book-ok { outline: none; }
.book-ok-top { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.book-ok-top svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--green); color: var(--white); }
.book-ok-sum { font-size: 1.08rem; font-weight: 600; padding: .8rem 1rem; border-radius: 12px; background: var(--cobalt-l); }
.book-ok-demo { color: var(--ink-2); }
.book-ok-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.book-ok-links:empty { display: none; }
.book-side { display: grid; gap: 18px; }
.note-card { position: relative; background: var(--sun-l); border-radius: var(--r); padding: 1.5rem 1.4rem; background-image: repeating-linear-gradient(0deg, transparent 0 29px, rgba(13, 27, 62, .09) 29px 30px); }
.note-k { font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin-bottom: 1rem; }
.note-card ol { display: grid; gap: .8rem; margin-bottom: 1rem; }
.note-card li { display: grid; grid-template-columns: 30px 1fr; gap: .6rem; align-items: start; font-size: .96rem; }
.note-card li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--sun); font-family: var(--display); font-size: .9rem; }
.note-card .pen { margin: 0; transform: rotate(-2deg); }
.side-test { display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--r); background: var(--night); color: #DCE2F5; text-decoration: none; transition: transform .25s var(--ease); }
.side-test:hover { transform: translateY(-3px); color: #DCE2F5; }
.side-test svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.side-test b { display: block; color: var(--white); font-family: var(--display); font-size: 1.08rem; }

/* 15. Contacto */
.ct-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.ct-info .h-sec { margin: 1rem 0 1.6rem; }
.ct-list { display: grid; gap: 1rem; margin: 0 0 1.6rem; }
.ct-list div { display: grid; gap: .15rem; }
.ct-list dt { display: flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ct-list dt svg { width: 16px; height: 16px; color: var(--cobalt); }
.ct-list dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.ct-list dd a { color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.ct-list dd small { display: block; font-family: var(--body); font-weight: 500; font-size: .82rem; color: var(--mute); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1.6rem; font-size: .95rem; }
.hours caption { text-align: left; font-family: var(--display); font-weight: 800; font-size: 1.15rem; padding-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .6rem .4rem .6rem 0; border-top: 1px dashed var(--line-2); vertical-align: top; }
.hours th { font-weight: 700; white-space: nowrap; padding-right: 1rem; }
.hours td { color: var(--ink-2); }
.hours tr.is-today th::after { content: "hoy"; margin-left: .45rem; font-family: var(--hand); font-size: 1.2rem; font-weight: 700; color: var(--red); }
.status { display: inline-block; margin-left: .5rem; padding: .15rem .6rem; border-radius: 999px; font-family: var(--body); font-size: .75rem; font-weight: 700; background: var(--paper); color: var(--mute); vertical-align: 2px; }
.status:empty { display: none; }
.status.is-open { background: var(--green-l); color: var(--green); }
.map { margin: 0; border-radius: 28px; overflow: hidden; border: 1.5px solid var(--ink); background: #EEF1FB; }
.map svg { width: 100%; height: auto; }
.map figcaption { padding: .7rem 1rem; font-size: .82rem; color: var(--mute); background: var(--white); border-top: 1.5px solid var(--ink); }
.map-pin circle { transform-origin: 372px 200px; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* 16. Pie */
.footer { position: relative; background: var(--night); color: #C9D2F2; padding: clamp(56px, 8vw, 96px) 0 calc(96px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--sun); }
.footer-top .btn { position: relative; z-index: 1; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-word { position: relative; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 18vw, 14rem); line-height: .8; letter-spacing: -.06em; color: var(--white); }
.footer-beam { position: absolute; left: 102%; top: 0; width: 60vw; height: 60%; background: linear-gradient(90deg, rgba(255, 212, 71, .55), rgba(255, 212, 71, 0)); clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%); pointer-events: none; }
.footer-grid { display: grid; gap: 1.8rem; padding: 2rem 0; }
.f-k { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: .6rem; }
.footer ul { display: grid; gap: .3rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration-color: var(--sun); text-decoration-thickness: 2px; font-weight: 650; }

/* 17. Chat */
.chat-launch { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: .6rem; padding: 6px; border-radius: 999px; background: var(--cobalt); color: var(--white); box-shadow: 0 16px 36px -14px rgba(35, 64, 216, .9); transition: transform .25s var(--ease), opacity .2s; }
.chat-launch:hover { transform: translateY(-3px); }
.chat-launch-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.chat-launch-ico svg { width: 24px; height: 24px; }
.chat-launch-txt { display: none; padding-right: .9rem; font-size: .92rem; line-height: 1.15; text-align: left; }
.chat-launch-txt b { display: block; font-family: var(--display); font-size: 1.02rem; }
.chat-launch.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.chat { position: fixed; z-index: 80; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); height: min(620px, calc(100svh - 16px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(13, 27, 62, .55), 0 0 0 1.5px var(--ink); }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; background: var(--night); color: var(--white); }
.chat-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sun); color: var(--ink); flex: none; }
.chat-av svg { width: 22px; height: 22px; }
.chat-id b { display: block; font-family: var(--display); font-size: 1.05rem; }
.chat-id small { font-size: .76rem; color: #C9D2F2; }
.icon-btn { margin-left: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); background: rgba(255, 255, 255, .1); }
.icon-btn:hover { background: rgba(255, 255, 255, .2); }
.icon-btn svg { width: 20px; height: 20px; }
.chat-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .7rem; padding: 1rem; overscroll-behavior: contain; }
.cmsg { max-width: 88%; padding: .7rem .9rem; border-radius: 18px; font-size: .95rem; line-height: 1.5; word-wrap: break-word; }
.cmsg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cmsg-user { align-self: flex-end; background: var(--cobalt); color: var(--white); border-bottom-right-radius: 6px; }
.cmsg ul { margin: .3rem 0; padding-left: 1.1rem; list-style: disc; }
.cmsg a { font-weight: 650; }
.cmsg-note { display: block; margin-top: .5rem; font-size: .76rem; color: var(--mute); }
.cmsg-cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-sugs { display: flex; gap: .4rem; overflow-x: auto; padding: 0 1rem .7rem; scrollbar-width: none; }
.chat-sugs::-webkit-scrollbar { display: none; }
.chat-sugs button { flex: none; max-width: 240px; padding: .5rem .75rem; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white); font-size: .84rem; text-align: left; line-height: 1.3; }
.chat-sugs button:hover { border-color: var(--cobalt); color: var(--cobalt); }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--white); }
.chat-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 1rem; }
.chat-form input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(35, 64, 216, .18); }
.chat-form button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cobalt); color: var(--white); }
.chat-form button:hover { background: var(--cobalt-d); }
.chat-form button:disabled { opacity: .5; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-legal { margin: 0; padding: .45rem 1rem .6rem; font-size: .72rem; color: var(--mute); background: var(--white); }

/* 18. Efectos: reveals (solo si JS los activa) */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.quiz-screen.is-enter { animation: screen-in .45s var(--ease); }
@keyframes screen-in { from { opacity: 0; transform: translateX(18px); } }
.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }

/* 19. Responsive */
@media (min-width: 560px) {
  .h-hero .line { white-space: nowrap; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li { border-bottom: 0; border-right: 1px dashed var(--line-2); padding-left: .2rem; }
  .facts li + li { padding-left: 1.1rem; }
  .facts li:last-child { border-right: 0; }
  .seg-3 { grid-template-columns: repeat(3, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .chat-launch-txt { display: block; }
  .courses, .team { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .timetable { grid-template-columns: 1fr 1fr; }
  .tt-fri { grid-column: 1 / -1; }
  .chat { left: auto; right: 18px; bottom: 18px; width: 400px; }
  .chat-launch { right: 18px; bottom: 18px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero-art { justify-self: end; }
  .sec-head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: end; column-gap: 3rem; }
  .sec-head .unit { grid-column: 1 / -1; }
  .sec-head .sec-intro { justify-self: end; }
  .test-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .test-copy { position: sticky; top: calc(var(--nav-h) + 32px); }
  .calc { grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr); }
  .ticket { position: sticky; top: calc(var(--nav-h) + 24px); }
  .method { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .report-wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
  .faq-grid .sec-head { grid-template-columns: 1fr; position: sticky; top: calc(var(--nav-h) + 32px); }
  .faq-grid .sec-head .sec-intro { justify-self: start; }
  .faq-grid .sec-head .btn { justify-self: start; }
  .book-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr); }
  .book-side { position: sticky; top: calc(var(--nav-h) + 24px); }
  .ct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .footer-grid { grid-template-columns: 1.2fr .8fr 1.2fr; gap: 3rem; }
  .timetable { grid-template-columns: 1fr 1fr .8fr; }
  .tt-fri { grid-column: auto; }
}
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .sheet { display: none !important; }
  .courses, .team { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 759px) {
  .days-tabs:not([hidden]) { display: flex; gap: 4px; padding: 4px; margin-bottom: 1rem; border-radius: 999px; background: var(--white); border: 1.5px solid var(--ink); }
  .days-tabs button { flex: 1; min-height: 42px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
  .days-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
  .timetable.has-tabs .tt-col:not(.is-active) { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 959px) {
  .hero-art { max-width: 460px; padding-inline: 12px; }
  .fc-test { left: 0; top: 10%; width: 214px; }
  .fc-report { right: 0; bottom: 5%; width: 206px; }
  .sticker { width: 96px; height: 96px; right: 4%; }
  .sticker b { font-size: 2.1rem; }
  .sticker span { font-size: .6rem; }
}
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand-txt small { display: none; }
  .quiz-sheet { background-image: none; padding: 1.3rem 1.1rem; min-height: 0; }
  .quiz-screen { padding-left: 0; }
  .q-nav { flex-wrap: wrap; }
  .q-nav .btn { flex: 1 1 100%; order: 3; }
  .btn-idk { margin-left: auto; }
  .res-top { flex-direction: column; align-items: flex-start; }
  .skills li { grid-template-columns: 1fr 34px; }
  .skills li span { grid-column: 1 / -1; }
  .skills li i { grid-column: 1; }
  .report { padding-left: 2.2rem; }
  .report-head { flex-direction: column; }
  .cta-row .btn { flex: 1 1 100%; }
  .course-actions .btn { flex: 1 1 auto; }
  .fc-test { width: 196px; font-size: .76rem; }
  .fc-report { width: 190px; }
  .fc-q { font-size: .88rem; }
}

/* 20. Movimiento reducido: solo se paran los bucles decorativos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .brand-beam, .beam-bg, .stars circle, .waves path, .map-pin circle, .typing i { animation: none; }
  .quiz-screen.is-enter { animation-duration: .01s; }
}
