/* Lecciones de escena del curso de inglés (lesson/escena.js). Solo colores de tokens.css: sirve en tema claro y oscuro. */
.esc .esc-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 0 16px; overflow-y: auto; }
.esc-stage { width: 100%; max-width: 420px; align-self: center; aspect-ratio: 720 / 560; border-radius: var(--r); border: 2px solid var(--line); }
.esc-q { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.esc-q h2, .esc-board h2 { font-size: var(--fs-lg); margin: 4px 0; }
.esc-say { font-size: var(--fs-xl); line-height: 1.25; color: var(--ink); }
.esc-es { color: var(--muted); font-size: var(--fs-md); }
.esc-big { font-size: 40px; width: 88px; height: 88px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); box-shadow: var(--shadow); cursor: pointer; }
.esc-big:active { transform: scale(.96); }
.esc-opts { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.esc-opt { padding: 14px 16px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: var(--fs-md); text-align: left; cursor: pointer; }
.esc-opt.is-ok { background: var(--okbg); border-color: var(--green); color: var(--ok-text); }
.esc-opt.is-ko { background: var(--kobg); border-color: var(--red); color: var(--ko-text); }
.esc-opt.is-off { opacity: .5; }
.esc-tr, .esc-tip { color: var(--muted); text-align: center; }
.esc-heard { min-height: 1.4em; color: var(--muted); }
.esc-heard .is-ok { color: var(--ok-text); font-weight: 800; }
.esc-board { display: flex; flex-direction: column; gap: 10px; }
.esc-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; text-align: left; padding: 14px 16px; border-radius: var(--r-md);
  background: #2f5d4a; color: #f4f1e8; border: 6px solid #6b4a2b; font: inherit; cursor: pointer; }
.esc-card .esc-es { grid-column: 1; color: #cfe8da; font-size: var(--fs-sm); }
.esc-card .esc-en { grid-column: 1; font-size: var(--fs-lg); color: #ffd23f; }
.esc-card .esc-play { grid-column: 2; grid-row: 1 / 3; font-size: 28px; }
.esc-mic { width: 100%; font-size: var(--fs-lg); }
.esc-listening { text-align: center; font-weight: 900; font-size: var(--fs-lg); color: var(--red); padding: 14px; animation: esc-pulse 1s infinite; }
.esc-trd summary { cursor: pointer; color: var(--teal); font-weight: 800; }
@keyframes esc-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .esc-listening { animation: none; } }
/* «Bajando la clase…» (lesson/escena.js → ready): la primera vez los audios de la clase vienen de internet */
.esc-load { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin: auto 0; padding: 28px 16px; color: var(--ink); }
.esc-load b { font-size: var(--fs-lg); }
.esc-load p { color: var(--muted); margin: 0; }
.esc-spin { width: 44px; height: 44px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--teal); animation: sit-spin .9s linear infinite; }
.esc-load-bar { width: min(260px, 80%); height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.esc-load-bar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .25s linear; }
.esc-load-i { font-size: 44px; }
@media (prefers-reduced-motion: reduce) { .esc-spin { animation: none; } .esc-load-bar i { transition: none; } }

/* «Palabras de la obra» (ruta Construcción · lesson/escena.js → palabras): Conoce · ¿Cuál es? · ¿Cómo se llama? · Así lo dicen en la obra */
.pal { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pal h2 { font-size: var(--fs-lg); margin: 4px 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pal h2 small { font-size: var(--fs-sm); color: var(--muted); font-weight: 800; }
.pal-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--r-md); background: #fff; border: 2px solid var(--line); overflow: hidden; }
.pal-pic img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.pal-pic .pal-noimg { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px;
  font-size: 34px; background: #fff7e8; color: #5b4630; }
.pal-pic .pal-noimg small { font-size: var(--fs-sm); font-weight: 800; line-height: 1.2; }
.pal-pic.is-missing img { visibility: hidden; }
.pal-pic.is-missing .pal-noimg { display: flex; }
.pal-pic-big { width: min(240px, 66vw); box-shadow: var(--shadow); }
.pal-pic-big .pal-noimg { font-size: 64px; }
.pal-pic-big .pal-noimg small { display: none; }   /* el español ya va debajo */
.pal-word { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; }
.pal-word b { font-size: 34px; line-height: 1.1; font-weight: 900; }
.pal-word .esc-play { font-size: 26px; }
.pal-es { margin: 0; color: var(--ink); font-size: var(--fs-md); font-weight: 700; }
.pal-mx { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.pal-mx b { color: var(--ink); }
.pal-ej { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer;
  border-radius: var(--r-md); border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.pal-ej-en { grid-column: 1; font-weight: 900; font-size: var(--fs-md); }
.pal-ej-es { grid-column: 1; color: var(--muted); font-size: var(--fs-sm); }
.pal-ej .esc-play { grid-column: 2; grid-row: 1 / 3; font-size: 24px; }
.pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.pal-tile { padding: 0; border: 3px solid transparent; border-radius: calc(var(--r-md) + 3px); background: none; cursor: pointer; transition: transform .1s; }
.pal-tile:active { transform: scale(.97); }
.pal-tile .pal-pic { border-width: 2px; }
.pal-tile.is-ok { border-color: var(--green); }
.pal-tile.is-ok .pal-pic { background: var(--okbg); }
.pal-tile.is-ko { border-color: var(--red); }
.pal-tile.is-off { opacity: .45; }
.pal-dicho { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 12px 14px; border-radius: var(--r-md); background: #fff2c6; color: #5b4630; }
.pal-dicho span { font-size: var(--fs-sm); font-weight: 800; opacity: .8; }
.pal-dicho b { font-size: 28px; line-height: 1.15; }
.pal-dicho-en { background: var(--card); color: var(--ink); border: 2px solid var(--teal); }
.pal-arrow { font-size: 26px; color: var(--muted); line-height: 1; }
.pal-dice { display: flex; gap: 10px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer; border-radius: var(--r-md);
  border: 2px dashed var(--line); background: none; color: var(--muted); font: inherit; font-style: italic; }
.pal-dice .esc-play { font-size: 22px; font-style: normal; }
@media (prefers-reduced-motion: reduce) { .pal-tile { transition: none; } }

/* «Explora otras rutas» (Ruta, debajo de la ruta principal: screens/path.js → ExploreBlock) y la hoja de pasos de una unidad */
.explore { scroll-margin-top: 76px; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 2px dashed var(--line); margin-top: 8px; }
.explore-t { font-size: var(--fs-lg, 22px); margin: 0; }
.explore-d { margin: 0; }
.explore-lock { margin: 0; font-weight: 800; color: var(--muted); }
.explore-ruta { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.explore-head { display: flex; gap: 12px; align-items: center; }
.explore-head .explore-ic { font-size: 30px; line-height: 1; }
.explore-head b, .explore-unit b { display: block; }
.explore-head small, .explore-unit small { display: block; color: var(--muted); font-size: 13px; }
.explore-unit { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; text-align: left; border-radius: var(--r-md); border: 2px solid var(--line);
  border-left: 8px solid var(--unit); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.explore-unit:active { transform: scale(.99); }
.explore-unit.locked { opacity: .55; cursor: default; }
.explore-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--unit); color: #fff; }
.explore-tag { flex: none; font-weight: 900; font-size: 13px; color: var(--teal); }
.explore-unit.done .explore-tag { color: var(--ok-text); }
.unit-steps { display: flex; flex-direction: column; gap: 8px; }
.unit-step { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--card);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.unit-step.current { border-color: var(--teal); }
.unit-step[disabled] { opacity: .5; cursor: default; }
.unit-step-i { font-size: 22px; width: 28px; text-align: center; }

/* Consejo del Abuelito al terminar una escena (lesson/flow.js → SuggestCard): un consejo de maestro, no un anuncio */
.sug-card { display: flex; gap: 10px; align-items: flex-start; width: 100%; max-width: 460px; margin-top: 16px; text-align: left; }
.sug-who { flex: none; margin-top: 24px; }
.sug-bubble::before { bottom: auto; top: 24px; }
.sug-eyebrow { margin: 0 0 6px 6px; }
.sug-bubble { font-size: 16px; font-weight: 700; line-height: 1.35; }
.sug-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
/* volver a oír: 🔊 a velocidad real y 🐢 «Más despacio» (0.7×); «Así suena rápido» explica la reducción (frases[].rapido) */
.esc-replay { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.esc-slow { min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 800; font-size: var(--fs-md); box-shadow: var(--shadow); cursor: pointer; }
.esc-slow:active { transform: scale(.96); }
.esc-rapido { margin: 0; color: var(--muted); text-align: center; font-size: var(--fs-md); }
.esc-rapido b { color: var(--ink); }

/* Los juegos de práctica («Lorenzo la revolvió», «¡Rebobina!», «Acomodar en su lugar») son una familia: arriba el título chico con
   su instrucción de un renglón (.ac-top), fichas con borde de 2px color --line y su «labio» abajo (nada de contornos negros), 🔊 y 🐢
   iguales (.jg-oir) y el Abuelito abajo, siempre del mismo alto (.ac-abuelo, en el pie). */
.jg { --jg-gap: 10px; display: flex; flex-direction: column; gap: var(--jg-gap); width: 100%; max-width: 520px; align-self: center; padding-bottom: 10px; }
.esc-body:has(> .jg) { gap: 0; }
.jg-oir { display: flex; align-items: center; gap: 8px; }
.jg-oir-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 800; box-shadow: 0 3px 0 var(--line);
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s, box-shadow .12s; }
.jg-oir-1 { width: 44px; padding: 0; font-size: 19px; }
.jg-oir-b:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.jg-oir-b:focus-visible, .rv-piece:focus-visible, .rb-opt:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* el Abuelito con su globo (Lorenzo, «¡Rebobina!», «Acomodar»: .ac-dice le da el alto fijo) */
.rv-abuelo { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.rv-abuelo[hidden] { display: none; }
.rv-abuelo .avatar-slot { flex: none; }
.rv-dice { margin: 0 0 0 8px; flex: 1; font-size: 17px; }
/* en Lorenzo y «¡Rebobina!» el globo aparta lugar para 4 renglones y la pista (el chiste + «Era …»): no crece al contestar */
.ac-dice.jg-dice { min-height: calc(4 * 1.3em + 24px + 12px); }
/* el pie: el Abuelito siempre del mismo alto arriba del botón (la pista cabe sin que brinque la pantalla) */
.foot:has(> .ac-abuelo) { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }

/* «Lorenzo la revolvió» (lesson/revuelta-ui.js): Lorenzo en su percha grita la frase revuelta; las plumas son fichas parejas (mismo alto,
   radio y borde que las de «Acomodar»), con el color de su pluma solo en el labio. La frase se arma en renglones de cuaderno que miden
   desde el principio lo que la frase bien armada (--filas): nada brinca. */
.rv-top { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; }
.rv-lorenzo { width: 84px; height: 84px; display: block; }
.rv-der { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding-left: 9px; }
.rv-bubble { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; font-size: 18px; line-height: 1.25; }
.rv-bubble::before { bottom: auto; top: calc(50% - 7px); }
.rv-who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rv-shout { display: block; font-weight: 900; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }
.rv.is-done .rv-shout { color: var(--ok-text); }
.rv { --fila: 42px; }
.rv-line { --gap: 8px; --filas: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: var(--gap) 6px;
  min-height: calc(var(--filas) * (var(--fila) + var(--gap)) - var(--gap) + 6px);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--fila) + 3px), var(--line) calc(var(--fila) + 3px) calc(var(--fila) + 5px), transparent calc(var(--fila) + 5px) calc(var(--fila) + var(--gap))); }
.rv-bank { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 8px 6px; }
.rv-piece { --pluma: #2ec27e; --labio: color-mix(in srgb, var(--pluma) 55%, var(--line)); position: relative; height: var(--fila); min-width: 44px; padding: 0 12px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--labio);
  font: inherit; font-size: 17px; font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: -.005em; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .16s cubic-bezier(.3, .7, .4, 1.3), box-shadow .16s, border-color .16s, background-color .16s, color .16s, opacity .2s; }
@media (hover: hover) { .rv-piece:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--labio); } }
.rv-piece:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--labio); }
.rv-piece[disabled] { cursor: default; }
/* la que ya está en la frase deja su hueco en el montón (punteado, del mismo tamaño): el montón no se mueve */
.rv-piece.is-used { color: transparent; background: transparent; border-style: dashed; box-shadow: none; }
.rv-piece.is-fuera { display: none; }
.rv-piece.is-sobra { opacity: .4; text-decoration: line-through; box-shadow: 0 3px 0 var(--line); }
.rv-on.is-ok, .rv-on.is-done { border-color: var(--green); background: var(--okbg); color: var(--ok-text); --labio: color-mix(in srgb, var(--green) 55%, var(--line)); }
.rv-on.is-ko { border-color: var(--red); background: var(--kobg); color: var(--ko-text); --labio: color-mix(in srgb, var(--red) 50%, var(--line)); }
/* la tarjeta de Práctica */
.rv-card.locked { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .rv-piece, .jg-oir-b { transition: none; } }

/* «¡Rebobina!» (lesson/rebobina-ui.js): una tele con su videocasetera. La tele es un objeto (siempre oscura, en tema claro y oscuro),
   pero ligera: marco delgado, la frase en uno o dos renglones parejos (text-wrap: balance), el cuadro de nieve del alto de la letra y,
   al contestar, el subtítulo en español. Al equivocarse la cinta se rebobina temblando (◀◀ REBOBINA). */
.rb-tv { --crt: #0d1420; --fosforo: #f4f1e6; position: relative; padding: 7px 7px 6px; border-radius: 18px; background: #2b2d42; box-shadow: 0 3px 0 #17151f; }
.rb-pantalla { position: relative; overflow: hidden; min-height: clamp(128px, 25vh, 196px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 30px 14px 14px; border-radius: 13px; background: radial-gradient(120% 90% at 50% 45%, #1b2a40 0%, var(--crt) 70%, #05080d 100%); }
/* las líneas de la pantalla (fijas) y el brillo del vidrio */
.rb-pantalla::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .24) 0 2px, transparent 2px 4px), linear-gradient(160deg, rgba(255, 255, 255, .08), transparent 40%); }
.rb-osd { position: absolute; top: 9px; left: 12px; z-index: 3; font: 800 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, .6), 1.5px 0 0 rgba(255, 40, 120, .5), -1.5px 0 0 rgba(40, 200, 255, .5); }
.rb-frase { position: relative; z-index: 1; margin: 0; max-width: 100%; text-align: center; color: var(--fosforo); font-size: 20px; line-height: 1.35; font-weight: 900;
  overflow-wrap: anywhere; text-wrap: balance; text-shadow: 1px 0 0 rgba(255, 40, 120, .45), -1px 0 0 rgba(40, 200, 255, .45), 0 0 10px rgba(255, 255, 255, .2); }
.rb-hueco { position: relative; display: inline-block; width: calc(var(--ancho, 5) * .52em + 8px); height: 1em; vertical-align: -.12em; margin: 0 1px; border-radius: 4px;
  overflow: hidden; background: #6f6f6f; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 0 10px rgba(255, 255, 255, .18); }
.rb-ruido, .rb-nieve { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.rb-ruido { transition: opacity .55s ease, filter .55s ease; }
.rb-palabra { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .45s ease .15s, transform .45s cubic-bezier(.3, .7, .4, 1.4) .15s; }
.rb-hueco.is-claro { width: auto; height: auto; vertical-align: baseline; margin: 0; background: transparent; box-shadow: none; overflow: visible; }
.rb-hueco.is-claro .rb-ruido { opacity: 0; filter: blur(4px); }
.rb-hueco.is-claro .rb-palabra { position: static; display: inline; opacity: 1; transform: none; }
.is-bien .rb-palabra { color: #5ee59b; text-shadow: 0 0 12px rgba(94, 229, 155, .6); }
.is-ensena .rb-palabra { color: #ffd23f; text-shadow: 0 0 12px rgba(255, 210, 63, .6); }
/* el subtítulo (lo que quiere decir): su renglón está apartado desde el principio, así la tele no cambia de alto */
.rb-sub { position: relative; z-index: 1; margin: 0; min-height: 1.3em; max-width: 100%; text-align: center; color: #ffe9a8; font-size: 14px; line-height: 1.3; font-weight: 700;
  text-shadow: 0 1px 0 #000; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rb-sub:not(:empty) { animation: rb-sub .4s ease-out; }
@keyframes rb-sub { from { opacity: 0; translate: 0 4px; } }
/* la estática de la pantalla entera: un momento al cortar, y mientras se rebobina */
.rb-nieve { z-index: 1; opacity: 0; transition: opacity .12s; pointer-events: none; }
.is-corte .rb-nieve { opacity: .55; }
.is-rebobina .rb-nieve { opacity: .3; }
.is-rebobina .rb-pantalla { animation: rb-tiembla .18s steps(2) infinite; }
.is-rebobina .rb-pantalla::after { content: ""; position: absolute; inset: -40% 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 34px, rgba(255, 255, 255, .45) 34px 37px, rgba(0, 0, 0, .45) 37px 41px, transparent 41px 90px);
  animation: rb-sube .35s linear infinite; }
.is-rebobina .rb-frase { animation: rb-atras .3s ease-in-out infinite; }
@keyframes rb-tiembla { 0% { transform: translate(0, 0) skewX(0); } 50% { transform: translate(-2px, 1px) skewX(-2deg); } 100% { transform: translate(2px, -1px) skewX(1deg); } }
@keyframes rb-sube { from { transform: translateY(0); } to { transform: translateY(-90px); } }
@keyframes rb-atras { 0%, 100% { transform: translateX(0); filter: none; } 50% { transform: translateX(-8px); filter: blur(.6px); } }
/* la videocasetera: una ranura con dos carretes chicos (giran al revés y rápido al rebobinar) */
.rb-cinta { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px auto 0; padding: 3px 12px; width: max-content; border-radius: 6px; background: #17151f; }
.rb-cinta b { font: 800 9px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; color: #8d90a6; }
.rb-cinta i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #c9cdd4; background: conic-gradient(#c9cdd4 0 25%, #17151f 0 50%, #c9cdd4 0 75%, #17151f 0);
  animation: rb-gira 2.4s linear infinite; }
.is-rebobina .rb-cinta i { animation: rb-gira .3s linear infinite reverse; }
.is-bien .rb-cinta i, .is-ensena .rb-cinta i { animation-duration: 1.6s; }
@keyframes rb-gira { to { transform: rotate(360deg); } }
.rb .jg-oir { justify-content: center; }
/* las 3 palabras: fichas iguales en un renglón (el nombre se achica si no cabe: «cheeseburger») */
.rb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rb-opt { display: flex; align-items: center; justify-content: center; min-width: 0; height: 52px; padding: 0 8px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--line); font: inherit; font-size: 18px; font-weight: 900; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .16s cubic-bezier(.3, .7, .4, 1.3), box-shadow .16s, border-color .16s, background-color .16s, opacity .2s; }
.rb-opt-t { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; }
@media (hover: hover) { .rb-opt:not([disabled]):hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--line); } }
.rb-opt:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.rb-opt[disabled] { cursor: default; }
.rb-opt.is-ok { background: var(--okbg); border-color: var(--green); color: var(--ok-text); box-shadow: 0 3px 0 color-mix(in srgb, var(--green) 55%, var(--line)); }
.rb-opt.is-ko { background: var(--kobg); border-color: var(--red); color: var(--ko-text); box-shadow: 0 3px 0 color-mix(in srgb, var(--red) 50%, var(--line)); }
.rb-opt.is-off { opacity: .45; }
.rb-card.locked { opacity: .6; }
/* pantalla alta: la tele un poco más grande (en la chica, 375×667, todo cabe sin bajar la pantalla) */
@media (min-height: 740px) { .rb-frase { font-size: 23px; } .rv-lorenzo { width: 96px; height: 96px; } .rv-top { grid-template-columns: 96px minmax(0, 1fr); } }
/* pantalla chica (375×667): todo un poco más compacto para que la frase más larga (9 plumas) quepa sin bajar la pantalla */
@media (max-height: 700px) {
  .jg { --jg-gap: 8px; }
  .rv { --fila: 38px; }
  .rv-piece { font-size: 16px; }
  .rv-bubble { font-size: 16px; padding: 6px 11px; }
  .jg-oir-b { height: 36px; font-size: 14px; }
  .jg-oir-1 { width: 40px; min-width: 40px; font-size: 17px; }
  .ac-dice.jg-dice { font-size: 14px; }
  .foot:has(> .ac-abuelo .jg-dice) .btn { padding-top: 12px; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-ruido, .rb-palabra, .rb-nieve, .rb-opt { transition: none; }
  .is-rebobina .rb-pantalla, .is-rebobina .rb-pantalla::after, .is-rebobina .rb-frase, .rb-cinta i, .rb-sub:not(:empty) { animation: none; }
}

/* «Acomodar en su lugar» (lesson/acomodo-ui.js): arriba los lugares (dos cajones iguales, o Rafa de cuerpo entero con la lista de su
   equipo a un lado) y abajo la pila de fichas, todas del mismo tamaño. Ligero como el resto de la app: bordes de 2px color --line con su
   «labio» abajo, nada de contornos negros. Las cosas se arrastran (pointer events: touch-action none) o se tocan y luego su lugar. */
.ac-screen .esc-body { gap: 0; }
.ac { --ac-gap: 10px; display: flex; flex-direction: column; gap: var(--ac-gap); width: 100%; max-width: 520px; align-self: center; padding-bottom: 10px; }
.ac-top { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ac-h { margin: 0; text-align: center; font-size: var(--fs-lg); line-height: 1.2; }
.ac-ayuda { margin: 0; max-width: 100%; overflow: hidden; white-space: nowrap; color: var(--muted); font-size: 13px; font-weight: 700; }
/* la ficha: dibujo arriba y su nombre en un renglón (acomodo-ui.js → ajusta lo achica si no cabe) */
.ac-pila { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ac-cosa { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 68px; padding: 4px 6px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; box-shadow: 0 3px 0 var(--line);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  transition: transform .16s cubic-bezier(.3, .7, .4, 1.3), border-color .16s, box-shadow .16s, background-color .16s, opacity .16s; }
.ac-cosa-img { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; }
.ac-cosa-img img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ac-cosa-t { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-align: center; font-size: 14px; font-weight: 900; line-height: 1.15; letter-spacing: -.005em; }
@media (hover: hover) { .ac-cosa:not(.is-puesta):hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--line); } }
.ac-cosa:focus-visible, .ac-dest:focus-visible, .ac-slot:focus-visible, .ac-palabra:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ac-cosa[aria-pressed="true"] { transform: translateY(-4px); border-color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, var(--card)); box-shadow: 0 5px 0 var(--teal); }
.ac-cosa.is-levantada { opacity: .35; transform: none; box-shadow: none; border-style: dashed; }
.ac-cosa.is-fallo::after { content: "?"; position: absolute; top: -7px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: #17151f; font-size: 12px; font-weight: 900; box-shadow: 0 0 0 2px var(--bg); }
.ac-fantasma { position: fixed; left: 0; top: 0; z-index: 60; margin: 0; pointer-events: none; cursor: grabbing; border-color: var(--teal);
  background: var(--card); box-shadow: 0 14px 28px rgba(23, 21, 31, .22); scale: 1.06; rotate: -3deg; transition: none; }
.ac-vuela { position: fixed; z-index: 61; pointer-events: none; object-fit: contain; }
.ac-fantasma.es-fila { flex-direction: row; justify-content: flex-start; gap: 6px; padding: 3px 8px 3px 4px; }
.ac-fantasma.es-fila .ac-cosa-img { width: 34px; height: 34px; }
.ac-fantasma.es-fila .ac-cosa-t { flex: 1; min-width: 0; text-align: left; }
/* los cajones: iguales para los dos lugares (encabezado de un renglón + bandeja con lo ya puesto) */
.ac-lugares { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 10px; }
.ac-dest { --acc: var(--teal); position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 8px; border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; text-align: left; box-shadow: 0 3px 0 var(--line); cursor: pointer;
  transition: transform .16s cubic-bezier(.3, .7, .4, 1.3), border-color .16s, box-shadow .16s; }
.ac-dest-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ac-dest-i { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; line-height: 1;
  background: color-mix(in srgb, var(--acc) 16%, var(--card)); }
.ac-dest-tt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.ac-dest-tt b { display: block; overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 900; }
.ac-dest-tt small { font-size: 12px; font-weight: 800; color: var(--muted); }
.ac-dentro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42px; gap: 6px; align-content: start; min-height: calc(2 * 42px + 6px + 16px);
  padding: 6px; border-radius: 11px; border: 2px dashed color-mix(in srgb, var(--acc) 34%, transparent); background: color-mix(in srgb, var(--acc) 6%, var(--card));
  transition: border-color .16s, background-color .16s; }
.ac-mini { display: grid; place-items: center; min-width: 0; border-radius: 9px; background: var(--card); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--acc) 22%, var(--line)); }
.ac-mini img { width: 34px; height: 34px; object-fit: contain; }
.is-eligiendo .ac-dentro { border-color: color-mix(in srgb, var(--teal) 70%, transparent); }
.ac-dest.is-over { transform: scale(1.03); border-color: var(--teal); box-shadow: 0 3px 0 var(--teal); }
.ac-dest.is-over .ac-dentro { border-style: solid; border-color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, var(--card)); }
.ac-dest.is-si { border-color: var(--green); box-shadow: 0 3px 0 var(--green); }
.ac-dest.is-no { border-color: var(--red); box-shadow: 0 3px 0 var(--red); }
/* Rafa de cuerpo entero (a la izquierda) y la lista de su equipo (a la derecha): las dos columnas miden lo mismo */
.ac-cuerpo-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: stretch; width: 100%; max-width: 400px; align-self: center; }
.ac-esc { position: relative; width: 100%; aspect-ratio: 270 / 560; align-self: start; border-radius: var(--r-md); border: 2px solid var(--line); overflow: hidden;
  background: linear-gradient(transparent 84%, color-mix(in srgb, var(--muted) 12%, var(--card)) 84%), var(--card); }
.ac-rafa { position: absolute; inset: 0; width: 100%; height: 100%; }
.ac-f-cuerpo .ac-pila { display: flex; flex-direction: column; gap: 6px; }
.ac-f-cuerpo .ac-cosa { flex: 1 1 0; height: auto; min-height: 38px; max-height: 64px; flex-direction: row; justify-content: flex-start; gap: 6px; padding: 3px 8px 3px 4px; }
.ac-f-cuerpo .ac-cosa-img { width: 34px; height: 34px; }
.ac-f-cuerpo .ac-cosa-t { flex: 1; min-width: 0; text-align: left; }
.ac-cosa.is-puesta { cursor: default; border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: color-mix(in srgb, var(--green) 9%, var(--card));
  box-shadow: 0 3px 0 color-mix(in srgb, var(--green) 45%, var(--line)); }
.ac-cosa.is-puesta .ac-cosa-img { opacity: .55; }
.ac-cosa.is-puesta .ac-cosa-t { color: var(--ok-text); }
/* la palomita va encima del dibujo (así el nombre no pierde espacio) */
.ac-cosa.is-puesta::after { content: "✓"; position: absolute; top: auto; bottom: 50%; right: auto; left: 22px; translate: 0 100%; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; box-shadow: 0 0 0 2px var(--card); }
/* los blancos en el cuerpo: todos del mismo tamaño y casi invisibles; aparecen al escoger o arrastrar una cosa */
.ac-slot { position: absolute; width: max(44px, var(--d)); aspect-ratio: 1; transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.ac-slot i { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; opacity: 0; scale: .6;
  border: 2px solid var(--teal); background: color-mix(in srgb, var(--teal) 14%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, #fff 70%, transparent);
  transition: opacity .18s, scale .18s cubic-bezier(.3, .7, .4, 1.4), background-color .18s; }
.is-eligiendo .ac-slot:not(.is-lleno) i { opacity: 1; scale: 1; animation: ac-blanco 1.4s ease-in-out infinite; }
.ac-slot.is-over i { opacity: 1; scale: 1.35; background: color-mix(in srgb, var(--teal) 40%, transparent); animation: none; }
.ac-slot.is-no i { opacity: 1; scale: 1.2; border-color: var(--red); background: color-mix(in srgb, var(--red) 30%, transparent); animation: none; }
.ac-slot.is-lleno { z-index: 1; }
@keyframes ac-blanco { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--teal) 22%, transparent); } }
/* el Abuelito abajo: siempre del mismo alto (la pista cabe sin que brinque la pantalla) */
.ac-screen .foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.ac-abuelo { margin-bottom: 0; }
.ac-dice { font-size: 15px; line-height: 1.3; padding: 10px 14px; min-height: calc(4 * 1.3em + 24px); display: flex; flex-direction: column; justify-content: center; }
.ac-dice b { color: var(--ink); }
.ac-pista { display: block; margin-top: 5px; padding-top: 5px; border-top: 2px dashed var(--line); font-weight: 700; color: var(--ink); }
.ac-pista.ac-ayuda { color: var(--muted); font-size: 14px; }
/* «¡Todo en su lugar!» */
.ac-fin { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 520px; align-self: center; text-align: center; padding: 6px 0 8px; }
.ac-fin-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ac-fin h2 { margin: 0; font-size: var(--fs-xl); }
.ac-fin p { margin: 0; color: var(--muted); }
.ac-fin h3 { margin: 6px 0 0; font-size: var(--fs-md); text-align: left; display: flex; justify-content: space-between; gap: 8px; }
.ac-cuenta { color: var(--ok-text); }
.ac-fin-sello { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 900;
  color: #fff; background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 22%, transparent); }
.ac-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ac-palabra { width: 100%; height: 52px; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.ac-palabra-img { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.ac-palabra-img img { width: 100%; height: 100%; object-fit: contain; }
.ac-palabra-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.ac-palabra b, .ac-palabra small { display: block; overflow: hidden; white-space: nowrap; }
.ac-palabra b { font-size: 15px; font-weight: 900; color: var(--ok-text); }
.ac-lista-otra .ac-palabra b { color: var(--ink); }
.ac-palabra small { color: var(--muted); font-weight: 700; font-size: 13px; text-overflow: ellipsis; }
.ac-fin .ac-fin-oir { margin-top: 4px; font-size: 13px; font-weight: 700; }
.ac-card.locked { opacity: .6; }
/* tema oscuro: los dibujos (contorno negro) van sobre una plaquita clara */
/* pantalla alta: fichas y bandejas un poco más grandes (en la chica, 375×667, todo cabe igual sin bajar la pantalla) */
@media (min-height: 740px) {
  .ac-cosa { height: 80px; }
  .ac-cosa-img { width: 48px; height: 48px; }
  .ac-dentro { grid-auto-rows: 50px; min-height: calc(2 * 50px + 6px + 16px); }
  .ac-mini img { width: 42px; height: 42px; }
}
:root[data-theme="dark"] .ac-cosa-img, :root[data-theme="dark"] .ac-mini, :root[data-theme="dark"] .ac-palabra-img { background: #f4efe6; }
:root[data-theme="dark"] .ac-cosa-img { padding: 3px; }
:root[data-theme="dark"] .ac-slot i { box-shadow: 0 0 0 3px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: reduce) {
  .ac-cosa, .ac-dest, .ac-dentro, .ac-slot i { transition: none; }
  .is-eligiendo .ac-slot:not(.is-lleno) i { animation: none; }
}

/* «¡Dile a Rafa!» (lesson/dile-ui.js): arriba la escena dibujada (el lugar, Rafa y sus cosas), abajo las 3 órdenes (fichas como las de
   «¡Rebobina!», una por renglón) o la orden que hay que decirle, y el Abuelito en el pie con el botón de cada momento. */
.dr { --jg-gap: 8px; }
.dr-esc { display: block; width: min(100%, 440px, calc(34vh * 720 / 560)); aspect-ratio: 720 / 560; align-self: center; border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--card); }
.dr-opts { display: flex; flex-direction: column; gap: 8px; }
.dr-opt { height: 50px; font-size: 18px; justify-content: flex-start; padding: 0 16px; }
.dr-decir { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.dr-orden { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-orden .esc-say { font-weight: 900; }
.dr-decir .jg-oir { justify-content: center; }
.dr-oi { margin: 0; font-size: 15px; }
.dr-oyendo { animation: esc-pulse 1s infinite; }
.dr-lista { grid-template-columns: minmax(0, 1fr); }
.dr-oir { font-size: 20px; background: color-mix(in srgb, var(--teal) 12%, var(--card)); }
.dr-card.locked { opacity: .6; }
/* la escena va en un marco de llamada con Rafa («Rafa · En vivo»): el canvas llena el marco */
.dr-call { position: relative; align-self: center; width: min(100%, 440px, calc(34vh * 720 / 560)); }
.dr-call .dr-esc { width: 100%; }
.dr-live { display: none; }
@media (min-height: 740px) { .dr-call { width: min(100%, 440px, calc(38vh * 720 / 560)); } .dr-esc { width: min(100%, 440px, calc(38vh * 720 / 560)); } .dr-opt { height: 54px; } }
@media (prefers-reduced-motion: reduce) { .dr-oyendo { animation: none; } }

/* ---------- «Listas del Abuelito» (lesson/listas-ui.js): las listas de los cortos para redes ---------- */
.ls-screen .lesson-top b { font-size: var(--fs-lg); }
.ls-pick { display: flex; flex-direction: column; gap: 8px; padding-bottom: 32px; }
.ls-serie { margin: 14px 0 2px; font-size: var(--fs-md); }
.ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ls-card { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.ls-card b { font-size: 15px; line-height: 1.2; }
.ls-card small { color: var(--muted); font-size: 13px; line-height: 1.25; }
.ls-card-ico { font-size: 24px; letter-spacing: 2px; }
.ls-card.is-done { border-color: var(--green); }
.ls-card-ok { position: absolute; top: 8px; right: 10px; font-style: normal; color: var(--green); font-weight: 900; }
.ls-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 16px 12px; }
.ls-title { margin: 0; text-align: center; font-size: var(--fs-lg); }
.ls-list { display: flex; flex-direction: column; gap: 6px; }
.ls-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--r-md);
  border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.ls-row.is-on { background: color-mix(in srgb, #ffd23f 35%, var(--card)); border-color: #e0b400; }
.ls-row.is-ok { border-color: var(--green); }
.ls-ico { font-size: 28px; width: 40px; text-align: center; flex: none; }
.ls-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ls-es { font-size: 16px; }
.ls-en { font-size: 15px; color: var(--muted); }
.ls-en s { color: var(--red); }
.ls-en b { color: var(--green); font-size: 17px; }
.ls-mark { width: 22px; flex: none; color: var(--green); font-weight: 900; font-size: 18px; }
.ls-say { margin: 4px 0 0; text-align: center; min-height: 2.6em; }
.ls-say small s { color: var(--red); }
.ls-loro b { color: var(--red); font-size: 20px; }
.ls-screen .foot { display: flex; flex-direction: column; gap: 8px; }
.ls-screen .foot .jg-oir { justify-content: center; }
.ls-video { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(0, 0, 0, .85); padding: 16px; }
.ls-video video { max-width: 100%; max-height: 78vh; border-radius: var(--r-md); }

/* La hoja de un juego con candado (screens/practice.js → lockSheet): en qué clase se abre y cuánto falta */
.lk-box { padding: 14px 16px; border-radius: var(--r-md); background: var(--soft); }

/* el remate de una lista (lesson/listas-ui.js → remate): Lorenzo o el Abuelito en una tarjeta abajo, mientras habla */
.ls-body { position: relative; }
.ls-remate { position: sticky; bottom: 8px; z-index: 3; margin-top: 10px; border-radius: 28px; background: var(--card); box-shadow: 0 10px 30px rgba(0, 0, 0, .14); overflow: hidden; }
.ls-remate canvas { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.ls-remate.entra { animation: ls-entra .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.ls-remate.sale { animation: ls-sale .3s ease-in forwards; }
@keyframes ls-entra { from { transform: translateY(40px) scale(.94); opacity: 0; } }
@keyframes ls-sale { to { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ls-remate.entra, .ls-remate.sale { animation: none; } }

/* ============ «Desde cero» (lesson/cero-ui.js): tarjetas, parejas, ¿cuál oíste? y dilo tú ============ */
.cero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 12px 16px 8px; }
.cero-intro { display: grid; justify-items: center; gap: 14px; text-align: center; }
.cero-intro p { max-width: 30em; font-size: calc(18px * var(--ts)); line-height: 1.45; font-weight: 700; }
.cero-card { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; border-radius: 28px; background: var(--soft); text-align: center; }
.cero-card small { color: var(--muted); font-weight: 800; letter-spacing: .06em; }
.cero-card b { font: 900 calc(40px * var(--ts))/1.1 var(--font-display); letter-spacing: -.02em; }
.cero-card.big b { font-size: calc(96px * var(--ts)); line-height: 1; }
.cero-card span { font-size: calc(19px * var(--ts)); font-weight: 700; color: var(--muted); }
.cero-card em { font-style: normal; color: var(--ink); font-weight: 800; }
.cero-tip { margin-top: 6px; padding: 10px 14px; border-radius: 16px; background: var(--card); font-size: calc(15px * var(--ts)); font-weight: 600; line-height: 1.4; }
.cero-heard { min-height: 1.4em; font-weight: 800; }
.cero-heard.ok { color: var(--green); } .cero-heard.ko { color: var(--ko-text, var(--red)); }
.cero-btns { display: grid; gap: 8px; width: 100%; }
/* parejas */
.cero-pares { display: grid; gap: 6px; }
.cero-pares h2 { font: 800 calc(20px * var(--ts))/1.2 var(--font-display); }
.cero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.cero-col { display: grid; gap: 10px; align-content: start; }
.cero-tile { min-height: 58px; padding: 10px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font: 800 calc(17px * var(--ts))/1.2 var(--font); text-align: center; cursor: pointer; transition: transform .12s, background .2s, border-color .2s, opacity .3s; }
.cero-tile:active { transform: scale(.97); }
.cero-tile.sel { border-color: var(--ink); background: color-mix(in srgb, var(--sun) 25%, var(--card)); }
.cero-tile.ok { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--card)); color: var(--green); opacity: .55; pointer-events: none; }
.cero-tile.mal { animation: cero-mal .4s; border-color: var(--red); }
@keyframes cero-mal { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* ¿cuál oíste? */
.cero-oye { display: grid; justify-items: center; gap: 18px; }
.cero-oye h2 { font: 800 calc(20px * var(--ts))/1.2 var(--font-display); }
.cero-big-play { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); font-size: 40px; cursor: pointer; }
.cero-big-play:active { transform: scale(.95); }
.cero-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.cero-opt { min-height: 64px; border-radius: 18px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 800 calc(20px * var(--ts)) var(--font); cursor: pointer; }
.cero-opt.ok { border-color: var(--green); background: color-mix(in srgb, var(--green) 16%, var(--card)); }
.cero-opt.ko { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--card)); }
.cero-opt.off { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .cero-tile.mal { animation: none; } }
.cero-foot { display: grid; gap: 10px; width: 100%; }
/* pulido: íconos propios en los títulos y una entrada suave de cada tarjeta (como el resto de la app) */
.cero-pares h2, .cero-oye h2 { display: flex; align-items: center; gap: 8px; }
.cero-pares h2 .glifo, .cero-oye h2 .glifo { width: 30px; height: 30px; flex: none; }
.cero-card .cero-k { display: inline-flex; align-items: center; gap: 6px; }
.cero-card .cero-k .glifo { width: 18px; height: 18px; }
.cero-card, .cero-pares, .cero-oye, .cero-intro { animation: cero-in .38s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes cero-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.cero-intro p { padding: 16px 18px; border-radius: 22px; background: var(--soft); }
@media (prefers-reduced-motion: reduce) { .cero-card, .cero-pares, .cero-oye, .cero-intro { animation: none; } }
.cero-big-play { display: grid; place-items: center; } .cero-big-play .ico { width: 42px; height: 42px; color: var(--bg); }
.cero-intro .mascota-slot { margin-bottom: -6px; }
/* Parejas y ¿Cuál oíste? con frases (calentamiento de «Dilo tú» y Práctica, lesson/parejas-ui.js): tarjetas más largas, letra menor */
.cero-pares.frases .cero-tile { min-height: 64px; padding: 10px 12px; font-size: calc(15px * var(--ts)); line-height: 1.3; text-align: left; }
.cero-pares.frases .cero-tile.es { font-weight: 700; }
.cero-oye.frases .cero-opts { grid-template-columns: 1fr; }
.cero-oye.frases .cero-opt { min-height: 56px; padding: 10px 16px; font-size: calc(17px * var(--ts)); text-align: left; }

/* ===================== La bienvenida de Abuelito English (screens/onboarding-ingles.js) =====================
   Una plática con el Abuelito: él dice (globo + su voz) y el alumno toca tarjetas grandes. Blanco/negro con el amarillo del sol,
   todo sólido (sin labios), animaciones cortas que se apagan con «reducir movimiento». */
.oi { min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; padding: max(14px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink); max-width: 560px; margin: 0 auto; }
.oi-top { display: flex; align-items: center; gap: 14px; min-height: 40px; }
.oi-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.oi-bar i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .5s cubic-bezier(.2, .9, .3, 1); }
.oi-skip { border: 0; background: none; color: var(--muted); font: 800 calc(15px * var(--ts)) var(--font); padding: 8px 4px; cursor: pointer; }
.oi-cuerpo { flex: 1; display: flex; flex-direction: column; gap: 14px; animation: oi-entra .42s cubic-bezier(.2, .9, .3, 1) both; }
.oi-pie { display: grid; justify-items: center; gap: 10px; padding-top: 6px; }
@keyframes oi-entra { from { opacity: 0; transform: translateY(18px); } }
.oi-cta { width: 100%; min-height: 58px; border: 0; border-radius: 999px; background: var(--cta); color: var(--on-cta); font: 900 calc(18px * var(--ts)) var(--font); cursor: pointer; transition: transform .12s, opacity .2s; }
.oi-cta.big { min-height: 64px; font-size: calc(20px * var(--ts)); }
.oi-cta:active { transform: scale(.98); }
.oi-cta:disabled { opacity: .28; cursor: default; }

/* el Abuelito que platica */
.oi-dice { display: flex; align-items: flex-end; gap: 10px; }
.oi-dice-av { flex: none; width: 86px; height: 86px; margin-bottom: -6px; }
.oi-globo { position: relative; margin: 0; padding: 14px 16px; border-radius: 22px 22px 22px 6px; background: var(--soft); font: 800 calc(18px * var(--ts))/1.35 var(--font); animation: oi-globo .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.oi-dice.feliz .oi-globo { background: var(--sun-soft); }
@keyframes oi-globo { from { opacity: 0; transform: scale(.9) translateY(8px); transform-origin: 0 100%; } }

/* portada y final */
.oi-p-portada, .oi-p-listo { justify-content: flex-end; text-align: center; }
.oi-lang { align-self: center; }
.oi-hero { position: relative; display: grid; place-items: center; flex: 1; min-height: 250px; }
.oi-sol { position: absolute; bottom: 4%; width: min(70vw, 280px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); animation: oi-sol 6s ease-in-out infinite; }
@keyframes oi-sol { 50% { transform: scale(1.04); } }
.oi-hero > div[data-abuelo] { position: relative; }
.oi-titulo { margin: 0; font: 900 calc(34px * var(--ts))/1.05 var(--font-display); letter-spacing: -.03em; }
.oi-sub { margin: 0 auto; max-width: 30ch; color: var(--muted); font: 700 calc(17px * var(--ts))/1.4 var(--font); }
.oi-promesas { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.oi-promesas li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--soft); font: 800 calc(15px * var(--ts)) var(--font); }
.oi-promesas .glifo { width: 30px; height: 30px; flex: none; }
.oi-primera { display: grid; gap: 2px; padding: 16px; border-radius: 22px; background: var(--soft); }
.oi-primera small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: calc(12px * var(--ts)); }
.oi-primera b { font: 900 calc(22px * var(--ts)) var(--font-display); }
.oi-primera span { color: var(--muted); font-weight: 700; }

/* la plática con Ms. Park: ella arriba (su retrato y el chat), el Abuelito abajo con lo que hay que decir y el micrófono */
@keyframes oi-pop { 40% { transform: scale(1.04); } }
.oi-oir { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 16px; border: 0; border-radius: 99px; background: var(--card); color: var(--ink); font: 800 calc(14px * var(--ts)) var(--font); cursor: pointer; }
.oi-oir .glifo { width: 24px; height: 24px; }
.oi-oido { min-height: 1.3em; margin: 4px 0 0; color: var(--muted); font-weight: 800; }
.oi-mic { position: relative; width: 104px; height: 104px; border: 0; border-radius: 50%; background: var(--cta); cursor: pointer; display: grid; place-items: center; }
.oi-mic::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--sun) 55%, transparent); animation: oi-pulso 1.6s ease-out infinite; }
.oi-mic.escucha::before { border-color: var(--red); animation-duration: .8s; }
.oi-mic-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.oi-mic-ic .glifo { width: 44px; height: 44px; }
@keyframes oi-pulso { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.oi-mic-d { margin: 0; font: 800 calc(16px * var(--ts)) var(--font); }

/* tarjetas, filas y opciones */
.oi-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oi-tile { display: grid; justify-items: start; gap: 10px; min-height: 104px; padding: 14px; border: 2px solid transparent; border-radius: 22px; background: var(--soft); color: var(--ink); text-align: left; cursor: pointer; transition: transform .12s, border-color .2s, background .2s; }
.oi-tile { position: relative; }
.oi-tile-reco { position: absolute; top: 10px; right: 10px; }
.oi-tile b { font: 800 calc(15px * var(--ts))/1.2 var(--font); }
.oi-tile-ic .glifo { width: 44px; height: 44px; }
.oi-tile.sel, .oi-fila.sel, .oi-ritmo.sel { border-color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--ink); }
.oi-tile:active, .oi-fila:active, .oi-ritmo:active { transform: scale(.98); }
.oi-eco { display: grid; gap: 2px; position: relative; padding: 14px 52px 14px 16px; border: 0; border-radius: 20px; background: var(--sun-soft); color: var(--ink); text-align: left; cursor: pointer; animation: oi-entra .4s both; }
.oi-eco small { color: var(--sun-d); font: 900 calc(12px * var(--ts)) var(--font); text-transform: uppercase; letter-spacing: .08em; }
.oi-eco b { font: 900 calc(20px * var(--ts))/1.2 var(--font-display); }
.oi-eco span { color: var(--muted); font-weight: 700; }
.oi-eco i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.oi-eco .glifo { width: 26px; height: 26px; }
.oi-varias { margin: -4px 0 0 96px; color: var(--muted); font-weight: 700; }
.oi-lista { display: grid; gap: 8px; }
.oi-fila { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 2px solid transparent; border-radius: 20px; background: var(--soft); color: var(--ink); text-align: left; font: 800 calc(16px * var(--ts))/1.25 var(--font); cursor: pointer; transition: transform .12s, border-color .2s, background .2s; }
.oi-fila small { display: block; margin-top: 2px; color: var(--muted); font-weight: 700; font-size: calc(13px * var(--ts)); }
.oi-fila-ic .glifo { width: 34px; height: 34px; }
.oi-check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); transition: background .2s, border-color .2s; }
.oi-fila.sel .oi-check { border-color: var(--ink); background: var(--ink); }
.oi-fila.sel .oi-check::after { content: ""; display: block; width: 100%; height: 100%; background: var(--bg); -webkit-mask: 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='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; mask: 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='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.oi-hora { color: var(--muted); font-weight: 800; }
.oi-reco { flex: none; padding: 4px 10px; border-radius: 99px; background: var(--sun); color: #0f1115; font: 900 calc(12px * var(--ts)) var(--font); }
.oi-prueba-card { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb, var(--sun) 45%, var(--line)); border-radius: 22px; background: color-mix(in srgb, var(--sun) 14%, var(--card)); color: var(--ink); text-align: left; cursor: pointer; }   /* tinte del sol (antes bloque negro / blanco) */
.oi-prueba-card b { display: block; font: 900 calc(17px * var(--ts)) var(--font); }
.oi-prueba-card small { display: block; margin-top: 2px; opacity: .75; font-weight: 700; }
.oi-prueba-card .glifo { width: 40px; height: 40px; padding: 4px; border-radius: 12px; background: var(--card); }
.oi-prueba-card > i { font-style: normal; font-size: 28px; }
.oi-o { margin: 2px 0 -4px; color: var(--muted); font-weight: 800; text-align: center; }
.oi-prueba { display: grid; justify-items: center; gap: 18px; padding-top: 6px; }
.oi-pasos-prueba { display: flex; gap: 8px; }
.oi-pasos-prueba i { width: 36px; height: 8px; border-radius: 99px; background: var(--soft-2); }
.oi-pasos-prueba i.on { background: var(--ink); } .oi-pasos-prueba i.ok { background: var(--green); } .oi-pasos-prueba i.ko { background: var(--red); }
.oi-play { width: 112px; height: 112px; border: 0; border-radius: 50%; background: var(--sun); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px color-mix(in srgb, var(--sun) 45%, transparent); }
.oi-play .glifo { width: 56px; height: 56px; }
.oi-opciones { display: grid; gap: 8px; width: 100%; }
.oi-op { min-height: 58px; padding: 12px 16px; border: 2px solid transparent; border-radius: 18px; background: var(--soft); color: var(--ink); font: 800 calc(17px * var(--ts)) var(--font); text-align: left; cursor: pointer; }
.oi-op.ok { border-color: var(--green); background: color-mix(in srgb, var(--green) 16%, var(--soft)); }
.oi-op.ko { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--soft)); }
.oi-op.off { opacity: .4; }
.oi-ritmos { display: grid; gap: 8px; }
.oi-ritmo { display: flex; align-items: center; gap: 14px; min-height: 70px; padding: 12px 16px; border: 2px solid transparent; border-radius: 20px; background: var(--soft); color: var(--ink); text-align: left; font: 800 calc(16px * var(--ts)) var(--font); cursor: pointer; transition: transform .12s, border-color .2s, background .2s; }
.oi-ritmo b { min-width: 74px; font: 900 calc(22px * var(--ts)) var(--font-display); }
.oi-ritmo small { display: block; color: var(--muted); font-weight: 700; font-size: calc(13px * var(--ts)); }

/* tu plan: se arma frente a él (las clases y los logros entran uno por uno) */
.oi-plan { display: grid; gap: 12px; }
.oi-plan-head { display: grid; gap: 2px; padding: 18px; border-radius: 24px; background: var(--ink); color: var(--bg); }
.oi-plan-head small { opacity: .7; font: 900 calc(12px * var(--ts)) var(--font); text-transform: uppercase; letter-spacing: .1em; }
.oi-plan-head b { font: 900 calc(26px * var(--ts))/1.1 var(--font-display); }
.oi-plan-head span { color: var(--sun); font-weight: 800; }
.oi-clases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.oi-clases li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--soft); animation: oi-entra .4s calc(var(--i) * .12s + .1s) both; }
.oi-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font: 900 calc(15px * var(--ts)) var(--font); }
.oi-clases li:first-child .oi-num { background: var(--sun); color: #0f1115; }
.oi-clases small { display: block; color: var(--muted); font-weight: 800; font-size: calc(12px * var(--ts)); }
.oi-clases b { font: 800 calc(16px * var(--ts)) var(--font); }
.oi-clases em { font-style: normal; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: var(--bg); font: 900 calc(12px * var(--ts)) var(--font); }
.oi-logros { display: grid; gap: 8px; padding: 16px; border-radius: 22px; background: var(--sun-soft); }
.oi-logros small { color: var(--sun-d); font: 900 calc(12px * var(--ts)) var(--font); text-transform: uppercase; letter-spacing: .1em; }
.oi-logros p { display: flex; align-items: flex-start; gap: 10px; margin: 0; font: 800 calc(15px * var(--ts))/1.35 var(--font); animation: oi-entra .4s calc(var(--i) * .12s + .1s) both; }
.oi-logros .glifo { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.oi-logros .oi-semanas { display: block; margin-top: 2px; color: var(--muted); font-weight: 700; font-size: calc(14px * var(--ts)); }
.oi-hold { margin-top: 0; background: var(--soft-2); }
.oi-hold .hc-fill { background: var(--ink); }
.oi-hold.done { color: var(--bg); }
/* arriba: ‹ Atrás · la barra de 3 tramos (Habla · Tú · Tu plan) · Saltar */
.oi-atras { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); font: 900 26px/1 var(--font); cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.oi-atras-ph { flex: none; width: 40px; }
.oi-top .oi-skip { flex: none; min-width: 40px; }
.oi-bar3 { flex: 1; display: flex; gap: 6px; }
.oi-seg { flex: 1; display: grid; gap: 4px; }
.oi-track { display: block; height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.oi-track i { display: block; height: 100%; border-radius: 99px; background: var(--ink); transition: width .5s cubic-bezier(.2, .9, .3, 1); }
.oi-seg small { color: var(--muted); font: 800 calc(11px * var(--ts)) var(--font); text-align: center; letter-spacing: .02em; }
.oi-seg.on small, .oi-seg.full small { color: var(--ink); }
.oi-privado { display: block; margin: 2px 0 0; text-align: center; color: var(--muted); font: 700 calc(13px * var(--ts)) var(--font); }
.oi-privado .glifo, .oi-privado svg, .oi-privado .ico { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.oi-why { padding: 0 4px; color: var(--muted); font-weight: 700; }
.oi-why summary { cursor: pointer; list-style: none; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.oi-why summary::-webkit-details-marker { display: none; }
.oi-why p { margin: 6px 0 0; line-height: 1.4; }

.oi-p-platica .oi-cuerpo { gap: 10px; min-height: 0; }
.oi-escena { flex: 1; min-height: 150px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 26px; background: var(--soft); }
.oi-park { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.oi-park-foto { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--sun); display: grid; place-items: center; }
.oi-park-cv { width: 64px !important; height: 64px !important; }
.oi-park b { font: 900 calc(18px * var(--ts)) var(--font-display); align-self: end; }
.oi-park small { color: var(--muted); font-weight: 800; align-self: start; }
.oi-chat { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.oi-msg { max-width: 84%; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--card); animation: oi-globo .35s cubic-bezier(.2, 1.3, .4, 1) both; }
.oi-msg b { display: block; font: 900 calc(19px * var(--ts))/1.25 var(--font); }
.oi-msg small { display: block; margin-top: 2px; color: var(--muted); font-weight: 700; }
.oi-msg.yo { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--ink); color: var(--bg); transform-origin: 100% 100%; }
.oi-coach { display: grid; gap: 8px; }
.oi-dice.chico { align-items: center; }
.oi-dice.chico .oi-dice-av { margin-bottom: 0; }
.oi-dice.chico .oi-globo { font-size: calc(15px * var(--ts)); padding: 10px 14px; }
.oi-dile { display: grid; justify-items: center; gap: 2px; padding: 12px 14px; border-radius: 22px; background: var(--sun-soft); text-align: center; }
.oi-dile small { color: var(--sun-d); font: 900 calc(12px * var(--ts)) var(--font); text-transform: uppercase; letter-spacing: .1em; }
.oi-dile b { font: 900 calc(26px * var(--ts))/1.15 var(--font-display); letter-spacing: -.01em; }
.oi-dile b u { text-decoration: none; padding: 0 8px; border-radius: 10px; background: var(--card); color: var(--muted); font-size: .8em; }
.oi-dile > span { color: var(--muted); font-weight: 800; }
.oi-oirs { display: flex; gap: 8px; margin-top: 4px; }
.oi-oirs .oi-oir { margin-top: 0; }
.oi-pie .link-btn { min-height: 36px; }

/* el logro: su primera plática */
.oi-p-logro .oi-cuerpo { align-items: center; text-align: center; justify-content: center; }
.oi-medalla { position: relative; display: grid; place-items: center; height: 230px; width: 100%; }
.oi-sol.chico { width: 200px; bottom: 6%; }
.oi-medalla > div[data-abuelo] { position: relative; }
.oi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.oi-stats p { margin: 0; display: grid; padding: 12px 6px; border-radius: 20px; background: var(--soft); }
.oi-stats b { font: 900 calc(30px * var(--ts))/1 var(--font-display); }
.oi-stats small { color: var(--muted); font-weight: 800; }
.oi-dijiste { display: grid; gap: 6px; width: 100%; padding: 14px 16px; border-radius: 22px; background: color-mix(in srgb, var(--green) 14%, var(--soft)); text-align: left; }
.oi-dijiste > small { color: var(--muted); font: 900 calc(12px * var(--ts)) var(--font); text-transform: uppercase; letter-spacing: .1em; }
.oi-dijiste p { display: flex; align-items: center; gap: 10px; margin: 0; font-size: calc(17px * var(--ts)); }
.oi-dijiste .glifo { width: 22px; height: 22px; flex: none; }

/* lo difícil: la ayuda de la app aparece debajo de cada una */
.oi-fila small.oi-ayuda { color: var(--ink); font-weight: 800; }

/* el momento del día */
.oi-momentos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.oi-mom { min-height: 92px; gap: 6px; padding: 12px; }
.oi-mom .glifo { width: 38px; height: 38px; }
.oi-mom small { color: var(--muted); font-weight: 700; font-size: calc(12px * var(--ts)); line-height: 1.25; }
.oi-aviso { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; border-radius: 20px; background: var(--soft); font: 800 calc(16px * var(--ts)) var(--font); cursor: pointer; }
.oi-aviso .grow { display: flex; align-items: center; gap: 10px; }
.oi-aviso .glifo { width: 26px; height: 26px; }
.oi-switch { appearance: none; flex: none; width: 52px; height: 32px; margin: 0; border-radius: 99px; background: var(--soft-2); position: relative; cursor: pointer; transition: background .2s; }
.oi-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.oi-switch:checked { background: var(--green); }   /* verde: en oscuro la tinta es blanca y la perilla no se veía */ .oi-switch:checked::after { transform: translateX(20px); }
.oi-p-cuando .link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.oi-p-cuando .link-btn .glifo { width: 18px; height: 18px; }

/* tu plan: el trato (con su firma), el camino por semanas y lo que ya ganó */
.oi-p-plan .oi-cuerpo { gap: 10px; }
.oi-trato { position: relative; display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: 24px; background: color-mix(in srgb, var(--sun) 14%, var(--card)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--sun) 45%, var(--line)); }   /* tinte del sol, igual en claro y oscuro (antes bloque negro / blanco) */
.oi-trato small { color: var(--sun-d); font: 900 calc(12px * var(--ts)) var(--font); text-transform: uppercase; letter-spacing: .1em; }
.oi-trato p { margin: 0; font: 900 calc(22px * var(--ts))/1.25 var(--font-display); }
.oi-firma { justify-self: end; font: italic 800 calc(16px * var(--ts)) var(--font); opacity: .85; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); padding-top: 4px; min-width: 40%; text-align: right; }
.oi-trato.ok { animation: oi-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.oi-sello-ok { position: absolute; top: -12px; right: -8px; width: 52px; height: 52px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; transform: rotate(-12deg); }
.oi-sello-ok .glifo { width: 34px; height: 34px; }
.oi-camino { padding: 14px 16px; border-radius: 22px; background: var(--soft); }
.oi-camino > small, .oi-chips > small { color: var(--muted); font: 900 calc(12px * var(--ts)) var(--font); text-transform: uppercase; letter-spacing: .1em; }
.oi-camino ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.oi-camino li { position: relative; display: flex; gap: 12px; padding: 0 0 12px; animation: oi-entra .4s calc(var(--i) * .15s + .1s) both; }
.oi-camino li:last-child { padding-bottom: 0; }
.oi-camino li:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 3px; border-radius: 3px; background: var(--soft-2); }
.oi-hito-dot { flex: none; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%; border: 3px solid var(--ink); background: var(--card); }
.oi-camino li.hoy .oi-hito-dot { background: var(--sun); }
.oi-camino em { display: block; font: 900 calc(12px * var(--ts)) var(--font); font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.oi-camino b { display: block; font: 800 calc(16px * var(--ts))/1.25 var(--font); }
.oi-camino li small { display: block; color: var(--muted); font-weight: 700; font-size: calc(13px * var(--ts)); }
.oi-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.oi-chips > small { flex-basis: 100%; margin-top: 4px; }
.oi-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--soft); font: 800 calc(14px * var(--ts)) var(--font); }
.oi-chip.ok { background: color-mix(in srgb, var(--green) 16%, var(--soft)); }
.oi-chip .glifo { width: 18px; height: 18px; }
.oi-sello { display: flex; align-items: center; gap: 16px; width: 100%; padding: 4px 4px 0 10px; }
.oi-sello p { margin: 0; display: grid; text-align: left; }
.oi-sello small { color: var(--muted); font-weight: 800; }
.oi-sello b { font: 900 calc(28px * var(--ts))/1.1 var(--font-display); }
.oi-sello span { color: var(--muted); font-weight: 800; }
.oi-mic.chico { flex: none; width: 76px; height: 76px; }
.oi-mic.chico::before { inset: -7px; }
.oi-mic.chico .oi-mic-ic { width: 44px; height: 44px; } .oi-mic.chico .oi-mic-ic .glifo { width: 34px; height: 34px; }
.oi-p-plan .oi-hold { min-height: 44px; font-size: calc(14px * var(--ts)); }
.oi-p-plan .oi-camino { padding: 12px 14px; } .oi-p-plan .oi-camino li { padding-bottom: 8px; }
.oi-p-plan .oi-chip { padding: 5px 10px; font-size: calc(13px * var(--ts)); }
@media (prefers-reduced-motion: reduce) {
  .oi-cuerpo, .oi-globo, .oi-eco, .oi-clases li, .oi-logros p, .oi-msg, .oi-camino li, .oi-trato.ok { animation: none; }
  .oi-sol, .oi-mic::before { animation: none; }
}
