/* Apex Music Academy — portada V1.1 «instrumento vivo»
   Base: prototipo aprobado (apex-sitio-refresh/build-c). Lo agregado para el sitio real
   (formulario, quiz, preguntas, WhatsApp flotante, aviso de cookies) va al final, en «Sitio real». */
:root {
  --cream: #FAF8F4;
  --cream-2: #F1EDE4;
  --ink: #2C2C2C;
  --ink-2: #55534D;
  --rule: rgba(44, 44, 44, .16);
  --rule-2: rgba(44, 44, 44, .32);
  --lime: #BFCB00;
  --olive: #7A8500;
  --dark: #141412;
  --dark-2: #1E1D1A;
  --paper: #F2EEE4;
  --paper-2: #B9B5AC;
  --rule-d: rgba(242, 238, 228, .14);
  --rule-d2: rgba(242, 238, 228, .3);
  --line-ui: #8A877F; /* bordes de controles: 3.4:1 sobre crema */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --g: clamp(16px, 3.4vw, 56px);
  --top: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html.js:not(.umbral-done) body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
kbd { font: 500 12px/1 var(--mono); padding: 3px 6px 2px; border: 1px solid currentColor; border-radius: 4px; opacity: .85; }

h1, h2, h3 { text-wrap: balance; }
.mono, .roll, .hud { font-variant-numeric: tabular-nums; }
section[id] { scroll-margin-top: var(--top); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.umbral .btn--ink:focus-visible { outline-color: var(--lime); }
.vivo :focus-visible { outline-color: var(--st-acc, var(--lime)); }

/* el puente: lienzo fijo donde la foto se deshace en puntos (sólo se ve en el tramo hero → instrumento) */
.puente { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; visibility: hidden; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.label { font: 500 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.label--dark { color: var(--paper-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(191, 203, 0, .25); }
.h2 { font: 400 clamp(40px, 5.4vw, 84px)/.95 var(--serif); letter-spacing: -.02em; margin: 0; }
.h2 em { color: var(--olive); }

/* ---------- botones ---------- */
.btn {
  --h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 14px; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #CCD81A; }
.btn--lime .arr { transition: transform .3s var(--ease); }
.btn--lime:hover .arr { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #000; }
.btn--line { border-color: var(--rule-2); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.ico { width: 20px; height: 20px; fill: currentColor; }
.ico .w { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lnk { font: 500 16px/1 var(--sans); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; padding: 14px 4px; }
.lnk:hover { text-decoration-thickness: 2px; }

/* ---------- marco con esquinas en L ---------- */
.frame { position: relative; }
.frame .c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); z-index: 3; pointer-events: none; }
.frame .tl { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.frame .tr { top: -1px; right: -1px; border-top-width: 1.5px; border-right-width: 1.5px; }
.frame .bl { bottom: -1px; left: -1px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.frame .br { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.frame--dark .c { border-color: var(--paper); }

/* ================= UMBRAL ================= */
.umbral { display: none; }
html.js .umbral {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px var(--g);
  background: var(--cream); transition: opacity .7s var(--ease), visibility 0s linear .7s; overscroll-behavior: contain;
}
html.js.umbral-done .umbral { display: none; }
.umbral.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.umbral__cuerda { display: block; width: 100vw; max-width: none; height: 150px; margin: 0 calc(50% - 50vw) 18px; pointer-events: none; }
.umbral__in { position: relative; max-width: 620px; text-align: center; display: grid; justify-items: center; }
.umbral__logo { width: 52px; height: auto; margin-bottom: 22px; }
.umbral .label { justify-content: center; }
.umbral__t { font: 400 clamp(54px, 9vw, 112px)/.92 var(--serif); letter-spacing: -.025em; margin: 0 0 16px; }
.umbral__t em { color: var(--olive); }
.umbral__d { color: var(--ink-2); margin: 0 0 8px; max-width: 30ch; font-size: 18px; }
.umbral__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.umbral__keys { margin: 22px 0 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.umbral__keys span { opacity: .5; }

/* ================= CABECERA ================= */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 max(var(--g), env(safe-area-inset-right)) 0 max(var(--g), env(safe-area-inset-left));
  background: rgba(250, 248, 244, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule); transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.top.is-dark { background: rgba(20, 20, 18, .72); color: var(--paper); border-color: var(--rule-d); }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1 var(--sans); letter-spacing: .01em; min-height: 44px; }
.top__brand img { width: 26px; }
.top__brand b { font-weight: 400; color: var(--ink-2); }
.top.is-dark .top__brand b { color: var(--paper-2); }
.top.is-dark .top__brand img { filter: none; background: var(--cream); border-radius: 6px; padding: 2px; }
.top__nav { display: flex; gap: 28px; font-size: 15px; }
.top__nav a { text-decoration: none; padding: 12px 0; position: relative; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__act { display: flex; align-items: center; gap: 10px; }

.mute {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: transparent; cursor: pointer; font-size: 14px; white-space: nowrap;
  transition: border-color .25s var(--ease), background-color .25s var(--ease); touch-action: manipulation;
}
.mute:hover { border-color: currentColor; }
.mute__ico { width: 18px; height: 18px; flex: none; }
.mute__ico .spk { fill: currentColor; }
.mute__ico .x { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; opacity: 0; }
.mute[aria-pressed="true"] .mute__ico .x { opacity: 1; }
.mute[aria-pressed="true"] .mute__bars { display: none; }
.top.is-dark .mute { border-color: var(--rule-d2); }
.mute__st { color: var(--ink-2); }
.top.is-dark .mute__st { color: var(--paper-2); }
.mute__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.mute__bars i { width: 2px; background: currentColor; border-radius: 1px; height: 30%; transition: height .12s linear; }
.mute__bars i:nth-child(2) { height: 70%; } .mute__bars i:nth-child(3) { height: 45%; } .mute__bars i:nth-child(4) { height: 85%; }
.mute.is-live .mute__bars i { background: var(--olive); }
.top.is-dark .mute.is-live .mute__bars i { background: var(--lime); }

/* ================= HERO ================= */
.hero { padding: calc(var(--top) + clamp(28px, 6vh, 72px)) var(--g) 0; min-height: 100svh; display: flex; flex-direction: column; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; flex: 1; }
.hero__copy { grid-column: 1 / 8; padding-bottom: clamp(20px, 5vh, 56px); }
.hero__t { font: 400 clamp(60px, 9.4vw, 156px)/.88 var(--serif); letter-spacing: -.028em; margin: 0 0 28px; }
.hero__t .ln { display: block; }
.hero__t em { color: var(--olive); padding-right: .04em; }
.hero__sub { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; max-width: 34em; color: var(--ink-2); margin: 0 0 32px; }
.hero__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li { font-size: 14px; padding: 7px 12px; border: 1px solid var(--rule-2); border-radius: 999px; }
.hero__tags .tdah { border-style: dashed; }
.hero__fig { grid-column: 8 / 13; margin: 0 0 clamp(20px, 5vh, 56px); align-self: end; }
.hero__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; height: auto; max-height: calc(100svh - var(--top) - 190px); }
.hero__fig figcaption { margin-top: 10px; color: var(--ink-2); }

/* revelado: desenfoque que se resuelve (sólo con JS y sin movimiento reducido) */
html.js:not(.rm) .hero__t .ln, html.js:not(.rm) .hero__sub, html.js:not(.rm) .hero__ctas, html.js:not(.rm) .hero__fig {
  opacity: 0; filter: blur(14px); transform: translateY(18px);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease);
}
html.js.entered .hero__t .ln, html.js.entered .hero__sub, html.js.entered .hero__ctas, html.js.entered .hero__fig { opacity: 1; filter: none; transform: none; }
html.js.entered .hero__t .ln:nth-child(2) { transition-delay: .12s; }
html.js.entered .hero__sub { transition-delay: .26s; }
html.js.entered .hero__ctas { transition-delay: .36s; }
html.js.entered .hero__fig { transition-delay: .08s; }

.senal { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border-top: 1px solid var(--rule); height: 72px; }
.senal__c { width: 100%; height: 56px; }
.senal__l, .senal__r { color: var(--ink-2); white-space: nowrap; }

/* ================= INSTRUMENTO VIVO ================= */
.vivo { background: var(--st-bg, var(--dark)); color: var(--paper); position: relative; }
.vivo__track { height: 460vh; }
.vivo__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 24px; padding: calc(var(--top) + 22px) var(--g) 22px;
  background: radial-gradient(120% 90% at 30% 55%, var(--st-bg2, #24231f) 0%, var(--st-bg, var(--dark)) 60%);
}
.vivo__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rule-d); }
.vivo__head .label { margin: 0; }
.vivo__t { font: 400 clamp(22px, 2.2vw, 34px)/1.05 var(--serif); margin: 0; letter-spacing: -.01em; text-align: right; }
.vivo__stage { grid-column: 1 / 8; grid-row: 2 / 4; margin-top: 22px; border: 1px solid var(--rule-d); min-height: 0; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.vivo__stage:focus-visible { outline: 3px solid var(--st-acc, var(--lime)); outline-offset: -3px; border-radius: 0; }
.toca { position: absolute; z-index: 2; right: 18px; bottom: 12px; margin: 0; max-width: 58%; text-align: right; font-size: 13px; line-height: 1.35; color: var(--paper-2); pointer-events: none; }
.toca { text-shadow: 0 0 10px var(--st-bg, var(--dark)), 0 0 3px var(--st-bg, var(--dark)); }
.toca b { color: var(--paper); font-weight: 500; }
.toca b::after { content: ' ·'; color: var(--paper-2); font-weight: 400; }
.toca__keys { display: none; margin-top: 4px; font: 11.5px/1.4 var(--mono); letter-spacing: .03em; color: var(--paper); }
.vivo__stage:focus-visible .toca__keys { display: block; }
.vivo__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; z-index: 2; color: var(--paper-2); font-size: 11.5px; }
.hud b { color: var(--paper); font-weight: 500; }
.hud--tl { top: 16px; left: 18px; } .hud--tr { top: 16px; right: 18px; }
.hud--bl { bottom: 14px; left: 18px; } .hud--br { bottom: 14px; right: 18px; }
.vivo__num { grid-column: 8 / 13; grid-row: 2; align-self: start; margin-top: 18px; height: clamp(120px, 23vh, 250px); overflow: hidden; font: 400 clamp(120px, 23vh, 250px)/1 var(--serif); letter-spacing: -.04em; }
.roll { display: flex; flex-direction: column; transition: transform .9s var(--ease); }
.roll span { display: block; height: clamp(120px, 23vh, 250px); line-height: 1; }
.vivo__info { grid-column: 8 / 13; grid-row: 2; align-self: end; position: relative; min-height: 270px; }
.est { position: absolute; inset: auto 0 0 0; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s linear .5s; }
.est.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.est__fig { display: none; }
.est__n { color: var(--paper-2); margin: 0 0 10px; }
.est__t { font: 400 clamp(44px, 4.6vw, 76px)/.95 var(--serif); letter-spacing: -.02em; margin: 0 0 16px; }
.est__d { color: var(--paper-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; margin: 0 0 22px; max-width: 30em; }
.play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 10px 0 8px; border-radius: 999px;
  border: 1px solid var(--rule-d2); background: transparent; color: var(--paper); cursor: pointer; font-size: 15px; touch-action: manipulation;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.play:hover { border-color: var(--paper); }
.play kbd { font-size: 11px; opacity: .6; }
.play__i { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); position: relative; flex: none; }
.play__i::before { content: ''; position: absolute; left: 12px; top: 10px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--dark); }
.play[aria-pressed="true"] { background: var(--st-acc, var(--lime)); border-color: var(--st-acc, var(--lime)); color: var(--dark); }
.play[aria-pressed="true"] .play__i { background: var(--dark); }
.play[aria-pressed="true"] .play__i::before { left: 11px; top: 11px; width: 10px; height: 10px; border: 0; background: var(--st-acc, var(--lime)); }
.vivo__prog { grid-column: 8 / 13; grid-row: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 26px; }
.vivo__prog button { touch-action: manipulation; background: none; border: 0; padding: 12px 0 4px; text-align: left; cursor: pointer; color: var(--paper-2); font-size: 13px; min-height: 44px; }
.vivo__prog i { display: block; height: 2px; background: var(--rule-d2); margin-bottom: 10px; position: relative; overflow: hidden; }
.vivo__prog i::after { content: ''; position: absolute; inset: 0; background: var(--st-acc, var(--lime)); transform: scaleX(var(--f, 0)); transform-origin: left; }
.vivo__prog button.is-on { color: var(--paper); }

/* movimiento reducido / sin canvas: las 4 estaciones como estados fijos */
html.rm .vivo__track, html.no-canvas .vivo__track { height: auto; }
html.rm .vivo__sticky, html.no-canvas .vivo__sticky { position: static; height: auto; overflow: visible; padding-bottom: 72px; grid-template-rows: auto auto; }
html.rm .vivo__stage, html.rm .vivo__num, html.rm .vivo__prog,
html.no-canvas .vivo__stage, html.no-canvas .vivo__num, html.no-canvas .vivo__prog { display: none; }
html.rm .vivo__info, html.no-canvas .vivo__info { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; min-height: 0; margin-top: 28px; }
html.rm .est, html.no-canvas .est { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; transition: none; padding: 28px; border: 1px solid var(--rule-d); margin: 0 -1px -1px 0; }
html.rm .est__fig, html.no-canvas .est__fig { display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; }
html.no-canvas .est__fig { display: block; }
html.rm .est__fig, html.no-canvas .est__fig { cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
html.rm .est__fig:focus-visible, html.no-canvas .est__fig:focus-visible { outline: 3px solid var(--st-acc, var(--lime)); outline-offset: 2px; }
/* un color por estación también en las fichas fijas */
html.rm .est[data-i="0"], html.no-canvas .est[data-i="0"] { background: rgb(23, 22, 15); --st-acc: rgb(191, 203, 0); }
html.rm .est[data-i="1"], html.no-canvas .est[data-i="1"] { background: rgb(16, 21, 27); --st-acc: rgb(150, 190, 226); }
html.rm .est[data-i="2"], html.no-canvas .est[data-i="2"] { background: rgb(28, 19, 17); --st-acc: rgb(236, 142, 110); }
html.rm .est[data-i="3"], html.no-canvas .est[data-i="3"] { background: rgb(22, 18, 28); --st-acc: rgb(196, 176, 232); }

/* ================= PADS ================= */
.pads { padding: clamp(80px, 12vh, 140px) var(--g) clamp(64px, 10vh, 120px); position: relative; }
.pads__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 36px; }
.pads__head > div { grid-column: 1 / 8; }
.pads__how { grid-column: 8 / 13; color: var(--ink-2); margin: 0; font-size: 17px; }
.pads__how kbd { color: var(--ink); }
.pads__scope { border: 1px solid var(--rule); height: 128px; margin-bottom: 20px; }
.pads__scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pads__now { position: absolute; left: 18px; top: 14px; margin: 0; color: var(--ink-2); }
.pads__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pad {
  position: relative; aspect-ratio: 4 / 5; max-height: 74vh; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--dark);
  color: var(--paper); user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(20, 20, 18, .5);
}
.pad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .4s var(--ease); filter: saturate(.85) brightness(.92); }
.pad::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 18, .15) 0%, rgba(20, 20, 18, 0) 30%, rgba(20, 20, 18, .55) 62%, rgba(20, 20, 18, .92) 100%); pointer-events: none; }
.pad:hover img { transform: scale(1.03); }
.pad.is-down { transform: scale(.975); }
.pad[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--lime), 0 24px 50px -26px rgba(122, 133, 0, .8); }
.pad[aria-pressed="true"] img { filter: saturate(1.05) brightness(1); transform: scale(1.05); }
.pad:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.pad__key { position: absolute; z-index: 2; top: 14px; left: 14px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(242, 238, 228, .7); border-radius: 5px; background: rgba(20, 20, 18, .35); }
.pad__st { position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); }
.pad__st::before { content: ''; position: absolute; left: 17px; top: 14px; border-style: solid; border-width: 8px 0 8px 12px; border-color: transparent transparent transparent var(--dark); }
.pad[aria-pressed="true"] .pad__st { background: var(--lime); }
.pad[aria-pressed="true"] .pad__st::before { left: 15px; top: 15px; width: 14px; height: 14px; border: 0; background: var(--dark); border-radius: 2px; }
.pad__body { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 6px; }
.pad__name { font: 400 clamp(30px, 2.8vw, 44px)/1 var(--serif); letter-spacing: -.01em; }
.pad__meta { color: rgba(242, 238, 228, .82); font-size: 11.5px; }
.pad__meter { position: absolute; z-index: 2; right: 18px; bottom: 20px; display: flex; gap: 3px; align-items: flex-end; height: 26px; opacity: 0; transition: opacity .3s; }
.pad__meter i { width: 4px; height: 100%; background: var(--lime); border-radius: 1px; transform-origin: bottom; transform: scaleY(.1); }
.pad[aria-pressed="true"] .pad__meter { opacity: 1; }
.pads__foot { margin: 22px 0 0; color: var(--ink-2); text-transform: none; letter-spacing: .01em; font-size: 12.5px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 15px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px); }
.toast[hidden] { display: none; }
.toast__b { background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; min-height: 40px; padding: 0 16px; cursor: pointer; font-weight: 500; white-space: nowrap; }

/* ================= ARMA TU RITMO ================= */
.ritmo { padding: clamp(64px, 10vh, 120px) var(--g) clamp(64px, 10vh, 120px); border-top: 1px solid var(--rule); }
.ritmo__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; margin-bottom: 32px; }
.ritmo__head > div { grid-column: 1 / 8; }
.ritmo__how { grid-column: 8 / 13; color: var(--ink-2); margin: 0; font-size: 17px; }
.ritmo__how kbd { color: var(--ink); }
.dm { border: 1px solid var(--rule); border-radius: 8px; padding: clamp(16px, 2vw, 28px); background: var(--cream-2); }
.dm__bar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.dm__play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 20px 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--cream); font-size: 16px; touch-action: manipulation;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.dm__play:hover { background: #000; }
.dm__play .play__i { width: 32px; height: 32px; border-radius: 50%; background: var(--cream); position: relative; flex: none; }
.dm__play .play__i::before { content: ''; position: absolute; left: 12px; top: 10px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); }
.dm__play[aria-pressed="true"] { background: var(--lime); border-color: var(--olive); color: var(--ink); }
.dm__play[aria-pressed="true"] .play__i { background: var(--ink); }
.dm__play[aria-pressed="true"] .play__i::before { left: 11px; top: 11px; width: 10px; height: 10px; border: 0; background: var(--lime); border-radius: 1px; }
.dm__tempo { color: var(--ink-2); }
.dm__reset { margin-left: auto; min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; touch-action: manipulation; }
.dm__reset:hover { text-decoration-thickness: 2px; }
.dm__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); gap: 0 28px; }
.dm__half { display: grid; grid-template-columns: 84px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; }
.dm__half + .dm__half { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dm__half + .dm__half .dm__lab { display: none; }
.dm__lab { font-size: 14px; color: var(--ink-2); }
.dm__n { text-align: center; color: var(--ink-2); padding: 0 0 6px; border-bottom: 2px solid transparent; transition: border-color .08s linear, color .08s linear; }
.dm__n.is-now { color: var(--ink); border-color: var(--olive); }
.dm__c {
  position: relative; height: 56px; min-width: 0; border-radius: 6px; border: 1px solid var(--line-ui); background: var(--cream); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .1s linear, border-color .1s linear, transform .12s var(--ease);
}
.dm__c.is-beat { border-left-width: 2px; }
.dm__c:hover { border-color: var(--ink); }
.dm__c:active { transform: scale(.96); }
.dm__c[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.dm__c.is-now { box-shadow: inset 0 -3px 0 var(--olive); }
.dm__c[aria-pressed="true"].is-now { background: var(--lime); border-color: var(--olive); box-shadow: none; }
.dm__c:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; z-index: 1; }
.ritmo__cta { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 36px; }
.ritmo__q { margin: 0; font: 400 clamp(34px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -.015em; }

/* ================= PARA QUIÉN ================= */
.quien { padding: clamp(40px, 8vh, 100px) var(--g) clamp(80px, 12vh, 140px); border-top: 1px solid var(--rule); }
.quien__head { margin-bottom: 44px; }
.quien__list { list-style: none; margin: 0 0 72px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.quien__list li { padding: 22px 24px 8px 0; border-right: 1px solid var(--rule); padding-left: 24px; }
.quien__list li:first-child { padding-left: 0; }
.quien__list li:last-child { border-right: 0; }
.quien__list .mono { color: var(--ink-2); }
.quien__list h3 { font: 400 30px/1.05 var(--serif); margin: 14px 0 10px; }
.quien__list p { margin: 0; color: var(--ink-2); font-size: 16px; }
.quien__list .is-tdah h3 { color: var(--olive); }
.salones { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr 1fr; gap: 14px; align-items: end; }
.salones figure { margin: 0; }
.salones img { width: 100%; height: clamp(220px, 30vw, 440px); object-fit: cover; border-radius: 4px; }
.salones figcaption { color: var(--ink-2); margin-top: 10px; }

/* ================= CIERRE ================= */
.cierre { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 0 var(--g) clamp(80px, 12vh, 140px); }
.cierre__fig { grid-column: 1 / 6; margin: 0; }
.cierre__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.cierre__copy { grid-column: 7 / 13; }
.cierre__t { font: 400 clamp(48px, 6.4vw, 104px)/.92 var(--serif); letter-spacing: -.025em; margin: 0 0 24px; }
.cierre__t em { color: var(--olive); }
.cierre__copy > p:not(.label) { color: var(--ink-2); font-size: 19px; max-width: 30em; margin: 0 0 32px; }
.cierre__copy > p.cierre__tel { margin: 20px 0 0; font-size: 16px; }
.cierre__tel a { color: var(--ink); text-underline-offset: 4px; padding: 10px 0; }

/* ================= PIE ================= */
.pie { background: var(--cream-2); color: var(--ink); padding: 48px var(--g) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.pie__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.pie__brand img { width: 46px; height: auto; }
.pie__name { margin: 0; font: 400 clamp(32px, 3.4vw, 46px)/1 var(--serif); letter-spacing: -.015em; }
.pie__name em { color: var(--ink-2); }
.pie__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--rule); padding-top: 22px; font-size: 15px; }
.pie__cols p, .pie address { margin: 0; font-style: normal; }
.pie__k { color: var(--ink-2); margin: 0 0 8px !important; }
.pie a { text-underline-offset: 4px; display: inline-block; padding: 4px 0; }

/* ================= MÓVIL ================= */
@media (max-width: 960px) {
  .top__nav { display: none; }
}
@media (max-width: 760px) {
  :root { --top: 58px; }
  body { font-size: 16px; }
  .top { padding: 0 14px; gap: 8px; }
  .top__brand span { display: none; }
  .top__brand img { width: 30px; }
  .mute { padding: 0 11px; gap: 6px; }
  .mute__txt { display: none; }
  .top__cta { padding: 0 14px; font-size: 13.5px; }
  .hero { padding-top: calc(var(--top) + 28px); min-height: 0; }
  .hero__grid { display: block; }
  .hero__t { font-size: clamp(54px, 15.5vw, 76px); margin-bottom: 20px; }
  .hero__sub { font-size: 17px; margin-bottom: 26px; }
  .hero__ctas { gap: 8px 20px; margin-bottom: 26px; }
  .hero__ctas .btn { width: 100%; }
  .hero__fig { margin: 4px 0 26px; }
  .hero__fig img { max-height: none; aspect-ratio: 4 / 4.4; }
  .senal { height: 60px; gap: 12px; }
  .senal__r { display: none; }

  .vivo__track { height: 420vh; }
  .vivo__sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; padding: calc(var(--top) + 12px) 16px 10px; column-gap: 0; }
  .vivo__head { padding-bottom: 10px; }
  .vivo__t { display: none; }
  .vivo__stage { grid-column: 1; grid-row: 2; margin-top: 12px; }
  .hud { font-size: 10.5px; } .hud--bl { display: none; }
  .toca { left: 14px; right: auto; bottom: 10px; max-width: calc(100% - 130px); text-align: left; font-size: 12.5px; }
  .vivo__num { grid-column: 1; grid-row: 2; align-self: end; justify-self: end; z-index: 3; margin: 0 14px 8px 0; height: 92px; font-size: 92px; pointer-events: none; }
  .roll span { height: 92px; }
  .vivo__info { grid-column: 1; grid-row: 3; min-height: 214px; margin-top: 16px; }
  .est__t { font-size: 42px; margin-bottom: 10px; }
  .est__n { display: none; }
  .est__d { font-size: 15.5px; margin-bottom: 14px; }
  .vivo__prog { grid-column: 1; grid-row: 4; margin-top: 6px; gap: 4px; }
  .vivo__prog button { font-size: 12px; padding-top: 10px; }
  html.rm .vivo__info, html.no-canvas .vivo__info { grid-template-columns: minmax(0, 1fr); grid-row: 2; }
  html.rm .est, html.no-canvas .est { padding: 20px 4px; border-width: 1px 0 0; margin: 0; }

  .pads__head { display: block; margin-bottom: 22px; }
  .pads__how { margin-top: 16px; font-size: 16px; }
  .pads__scope { height: 92px; }
  .pads__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pad { aspect-ratio: 1 / 1.12; }
  .pad__key { top: 10px; left: 10px; }
  .pad__st { top: 8px; right: 8px; }
  .pad__body { left: 12px; right: 12px; bottom: 12px; }
  .pad__name { font-size: 30px; }
  .pad__meta { font-size: 10px; }
  .pad__meter { right: 12px; bottom: 44px; height: 18px; }

  .ritmo__head { display: block; margin-bottom: 22px; }
  .ritmo__how { margin-top: 16px; font-size: 16px; }
  .dm { padding: 14px 12px; }
  .dm__reset { margin-left: 0; }
  .dm__grid { grid-template-columns: minmax(0, 1fr); gap: 18px 0; }
  .dm__half, .dm__half + .dm__half { grid-template-columns: 62px repeat(4, minmax(0, 1fr)); gap: 7px; }
  .dm__half + .dm__half .dm__lab { display: block; }
  .dm__lab { font-size: 13px; }
  .dm__c { height: 46px; }
  .ritmo__cta .btn { width: 100%; }

  .quien__list { grid-template-columns: minmax(0, 1fr); margin-bottom: 44px; }
  .quien__list li { padding: 18px 0 18px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .quien__list li:first-child { padding-left: 0; }
  .quien__list h3 { margin-top: 6px; }
  .salones { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .salones::-webkit-scrollbar { display: none; }
  .salones figure { scroll-snap-align: start; }
  .salones img { height: 300px; }

  .cierre { display: block; }
  .cierre__fig { margin-bottom: 28px; }
  .cierre__fig img { aspect-ratio: 4 / 4.2; }
  .cierre__copy .btn { width: 100%; }
  .pie__cols { grid-template-columns: 1fr 1fr; }
  .umbral__btns { flex-direction: column; width: 100%; max-width: 320px; }
  .umbral__btns .btn { width: 100%; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .vivo__info { min-height: 230px; }
  .est__t { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
html.rm *, html.rm *::before, html.rm *::after { transition-duration: .01ms !important; }
[tabindex="-1"]:focus { outline: none; }

/* =====================================================================
   Sitio real — lo que la portada anterior hacía y la V1.1 conserva
   ===================================================================== */
:root { --err: #A8261B; /* 6.4:1 sobre crema */ --wa: #25D366; }

/* cabecera: idioma visible en todos los anchos */
.top__lang {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--rule-2); font: 500 13px/1 var(--sans); letter-spacing: .08em; text-decoration: none; touch-action: manipulation;
  transition: border-color .25s var(--ease);
}
.top__lang:hover { border-color: currentColor; }
.top.is-dark .top__lang { border-color: var(--rule-d2); }

/* hero: las etiquetas llevan a la página de cada clase */
.hero__tags li { padding: 0; border: 0; }
.hero__tags li > a, .hero__tags li > span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule-2); border-radius: 999px;
  font-size: 14px; text-decoration: none; touch-action: manipulation; transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.hero__tags li > a:hover { border-color: var(--ink); background: var(--cream-2); }
.hero__tags .tdah > a { border-style: dashed; }

/* para quién: enlace a la página del programa */
.quien__lnk { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 44px; font-size: 15px; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.quien__lnk:hover { text-decoration-thickness: 2px; }
.quien__list .is-tdah .quien__lnk { color: var(--olive); }

/* ---------- cierre con el formulario ---------- */
.cierre { align-items: start; padding-top: clamp(40px, 8vh, 96px); border-top: 1px solid var(--rule); }
.cierre__fig { position: sticky; top: calc(var(--top) + 24px); }
#inscripcion { scroll-margin-top: calc(var(--top) + 12px); }
.insc { margin: 8px 0 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--cream-2); padding: clamp(18px, 2.2vw, 30px); }
.insc__quiz { background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; touch-action: manipulation; }
.insc__quiz:hover { text-decoration-thickness: 2px; }
.cierre__copy .insc__err { margin: 14px 0 0; font-size: 15px; color: var(--err); max-width: none; }
.cierre__copy .insc__err:empty { margin: 0; }
.cierre__copy .insc__err--send { padding: 12px 14px; border: 1px solid var(--err); border-radius: 6px; background: #FBF1EF; }
.insc__err--send[hidden] { display: none; }
.insc__err a { color: inherit; }
#submit-btn { margin-top: 22px; }
.insc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.insc__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 15px; font-weight: 500; }
.field input {
  min-height: 50px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-ui); background: var(--cream); color: var(--ink);
  font: 400 16px/1.2 var(--sans); width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder { color: #7A776F; }
.field input:hover { border-color: var(--ink-2); }
.field input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(191, 203, 0, .55); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field__err { display: block; font-size: 14px; color: var(--err); }
.field__err:empty { display: none; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.consent a { color: var(--ink); text-underline-offset: 3px; }
#consent-error { margin-top: 6px; }
.cierre__copy .insc__disc { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); max-width: none; }
.insc__ok[hidden] { display: none; }
.insc__ok:focus { outline: none; }
.insc__ok-i { color: var(--olive); margin-bottom: 10px; }
.insc__ok h3 { font: 400 clamp(32px, 3vw, 44px)/1 var(--serif); margin: 0 0 12px; }
.cierre__copy .insc__ok p { margin: 0 0 22px; font-size: 17px; }
.insc__ok strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- preguntas frecuentes ---------- */
.faq { padding: clamp(64px, 10vh, 120px) var(--g); border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq__head { grid-column: 1 / 6; }
.faq__list { grid-column: 6 / 13; border-top: 1px solid var(--rule); }
.faq__it { border-bottom: 1px solid var(--rule); }
.faq__it summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 64px; padding: 14px 0; font: 400 clamp(21px, 1.7vw, 26px)/1.2 var(--serif); touch-action: manipulation;
}
.faq__it summary::-webkit-details-marker { display: none; }
.faq__it summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--ink-2); flex: none; transition: transform .3s var(--ease); }
.faq__it[open] summary::after { transform: rotate(45deg); }
.faq__it summary:hover { color: var(--olive); }
.faq__it p { margin: 0 0 20px; color: var(--ink-2); max-width: 40em; }

/* ---------- pie ---------- */
.pie__list { list-style: none; margin: 0; padding: 0; }
.pie__hor { margin-top: 6px !important; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pie__legal { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.pie__legal a { color: var(--ink); }

/* ---------- quiz ---------- */
html.quiz-open body { overflow: hidden; }
.quiz { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; background: rgba(20, 20, 18, .55); overscroll-behavior: contain; }
.quiz[hidden] { display: none; }
.quiz__box {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 10px; background: var(--cream);
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); overscroll-behavior: contain;
}
.quiz__box:focus { outline: none; }
.quiz__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule-2); background: transparent; cursor: pointer; touch-action: manipulation; }
.quiz__close:hover { border-color: var(--ink); }
.quiz__prog { height: 3px; background: var(--rule); margin: 0 52px 26px 0; border-radius: 2px; overflow: hidden; }
.quiz__prog i { display: block; height: 100%; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.quiz__step { display: none; }
.quiz__step.is-on { display: block; }
.quiz__q { font: 400 clamp(28px, 3.6vw, 40px)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 22px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt {
  text-align: left; min-height: 52px; padding: 12px 18px; border-radius: 8px; border: 1px solid var(--line-ui); background: var(--cream-2);
  cursor: pointer; font-size: 16px; line-height: 1.35; touch-action: manipulation; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.quiz__opt:hover { border-color: var(--ink); background: #fff; }
.quiz__inst { font: 400 clamp(56px, 8vw, 84px)/.95 var(--serif); letter-spacing: -.02em; color: var(--olive); margin: 0 0 14px; }
.quiz__desc { color: var(--ink-2); margin: 0 0 24px; }
.quiz__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz__again { margin-top: 16px; background: none; border: 0; min-height: 44px; padding: 0 2px; cursor: pointer; font-size: 15px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- WhatsApp flotante (site.js no lo duplica si ya existe) ---------- */
.wa-float {
  position: fixed; z-index: 45; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--wa); color: #10261A; font: 600 15px/1 var(--sans); text-decoration: none; touch-action: manipulation;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .45); transition: opacity .3s var(--ease), visibility 0s linear 0s, transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { flex: none; }
.wa-float.is-away, html.js:not(.umbral-done) .wa-float, html.quiz-open .wa-float, body:has(.toast:not([hidden])) .wa-float {
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), visibility 0s linear .3s;
}

/* ---------- aviso de cookies (lo inyecta /assets/site.js) ---------- */
.cc-banner {
  position: fixed; z-index: 9990; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px 14px; align-items: center; padding: 16px 18px; border-radius: 10px;
  background: var(--ink); color: var(--cream); font-size: 14.5px; line-height: 1.45; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  transform: translateY(calc(100% + 40px)); transition: transform .45s var(--ease);
}
.cc-banner.cc-show { transform: none; }
.cc-banner p { margin: 0; }
.cc-banner a { color: var(--lime); }
.cc-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(250, 248, 244, .5); background: transparent; color: var(--cream); cursor: pointer; font: 500 14.5px/1 var(--sans); touch-action: manipulation; }
.cc-btn:hover { border-color: var(--cream); }
.cc-btn-primary { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.cc-btn-primary:hover { background: #CCD81A; border-color: #CCD81A; }
.cc-banner :focus-visible { outline-color: var(--lime); }
/* con el quiz abierto, el aviso queda detrás del velo (vuelve al cerrarlo) */
html.quiz-open .cc-banner { z-index: 105; }

@media (max-width: 960px) {
  .faq { display: block; }
  .faq__head { margin-bottom: 28px; }
}
@media (max-width: 760px) {
  .top__act { gap: 6px; }
  .top__lang { padding: 0 8px; font-size: 12px; }
  .cierre__fig { position: static; }
  .insc { padding: 16px 14px; }
  .insc__row { grid-template-columns: minmax(0, 1fr); }
  #submit-btn { width: 100%; }
  .wa-float { padding: 0; width: 52px; height: 52px; justify-content: center; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .wa-float-label { display: none; }
  .cc-banner { grid-template-columns: 1fr 1fr; }
  .cc-banner p { grid-column: 1 / -1; }
  .quiz { padding: 10px; align-items: end; }
  .quiz__ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .cc-banner { transition: none; }
}

/* ---------- formulario corto de clase muestra (V1.1, 18-oct) ---------- */
.cierre__copy .insc__badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 600 14px/1.2 var(--sans); max-width: none; }
.insc__badge[hidden] { display: none; }
.insc__badge .dot { background: var(--ink); box-shadow: none; }
.field__top { display: flex; justify-content: space-between; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.field__top .insc__quiz { padding: 0; min-height: 44px; font-size: 14px; }
.field select {
  min-height: 50px; padding: 0 40px 0 14px; border-radius: 6px; border: 1px solid var(--line-ui); background-color: var(--cream); color: var(--ink);
  font: 400 16px/1.2 var(--sans); width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select:hover { border-color: var(--ink-2); }
.field select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(191, 203, 0, .55); }
.field select[aria-invalid="true"] { border-color: var(--err); }
.field--radio { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.field--radio legend { font-size: 15px; font-weight: 500; padding: 0; margin-bottom: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-ui); background: var(--cream);
  font-size: 15px; touch-action: manipulation; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.radio:hover span { border-color: var(--ink); }
.radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.radio input[aria-invalid="true"] + span { border-color: var(--err); }
#para-error { margin-top: 6px; }
.pads__cta { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 32px; }
.pads__q { margin: 0; font: 400 clamp(30px, 3vw, 44px)/1 var(--serif); letter-spacing: -.015em; }
.top__cta-s { display: none; }
@media (max-width: 760px) {
  .top__cta-l { display: none; }
  .top__cta-s { display: inline; }
  .pads__cta .btn { width: 100%; }
}
