  /* CROQUIS de la página de una lección del curso abierto. No se publica: vive fuera de web/. */
  :root {
    --cream: #fbf7ef; --ink: #1c0f5c; --muted: #5d547f; --pink: #ff2e93; --yellow: #FFE14D;
    --uva: #3a0a40; --uva-2: #5c1466; --tinte: color-mix(in oklab, #3a0a40 8%, #fbf7ef);
    --ok: #0e8a5f; --ok-bg: #e3f6ee; --bad-bg: #ffe6f1; --line: rgb(28 15 92 / .12);
    --card: #fff; --r: 22px; --shadow: 0 1px 2px rgb(28 15 92 / .06), 0 18px 40px -24px rgb(28 15 92 / .28);
    --display: "Gabarito", system-ui, sans-serif; --text: "Figtree", system-ui, sans-serif;
  }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
  button { font: inherit; color: inherit; cursor: pointer; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }

  .croquis-tag { position: fixed; z-index: 50; right: 12px; bottom: 12px; background: var(--yellow); color: var(--uva); font: 700 12px/1 var(--text);
    padding: 8px 12px; border-radius: 999px; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .4); text-transform: uppercase; letter-spacing: .06em; }

  /* 1 · Barra de arriba */
  .top { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--cream) 88%, transparent); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); }
  .top__in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
  /* Logo: la palabra EnModoAsia y, debajo, MÉTODO SPARK como texto real, del mismo ancho que el nombre */
  .top__logo { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; line-height: 1; text-decoration: none; }
  .top__logo img { display: block; height: 28px; width: auto; }
  .top__tag { display: flex; justify-content: space-between; font: 800 10px/1 var(--text); color: var(--ink); padding: 0 1px; }
  .top__tag i { font-style: normal; }
  .top__tag .sp { color: var(--pink); }
  .top__tag .gap { width: .5em; }
  @media (max-width: 639px) { .top__logo { gap: 3px; } .top__logo img { height: 22px; } .top__tag { font-size: 8px; } }
  .top__course { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
  .dots { display: flex; gap: 4px; }
  .dots i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
  .dots i.on { background: var(--pink); }
  .streak { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-weight: 700; color: var(--ink); font-size: 14px; }
  @media (max-width: 639px) { .top__course .lbl { display: none; } .dots i { width: 10px; } }

  /* Rejilla de la lección */
  .lesson { max-width: 1200px; margin: 0 auto; padding: 20px 16px 96px; display: grid; gap: 20px;
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "video" "practice" "cards" "side"; }
  @media (min-width: 960px) {
    .lesson { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding-top: 28px;
      grid-template-areas: "head head" "video side" "practice side" "cards side"; align-items: start; }
    .side { position: sticky; top: 76px; }
  }
  .card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }

  /* 2 · Título y meta */
  .head { grid-area: head; }
  .eyebrow { display: inline-block; font: 700 12px/1 var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--uva-2);
    background: color-mix(in oklab, var(--uva) 10%, #fff); padding: 7px 10px; border-radius: 999px; }
  .head h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 12px; }
  .goal { margin: 10px 0 0; font-size: 18px; color: var(--muted); max-width: 60ch; }
  .goal b { color: var(--ink); }

  /* 3 · Video */
  .video { grid-area: video; overflow: hidden; }
  .player { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 75% 40%, rgb(255 46 147 / .45), transparent 40%), var(--uva);
    display: grid; place-items: center; color: #fff; border: 0; width: 100%; padding: 0; }
  .player__btn { width: 76px; height: 76px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
  .player__btn svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }
  .player__lbl { position: absolute; left: 16px; bottom: 14px; background: var(--yellow); color: var(--uva); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
  .player__time { position: absolute; right: 16px; bottom: 14px; font-size: 13px; opacity: .85; }
  .video__foot { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; color: var(--muted); }
  .video__foot b { color: var(--ink); }

  /* 4 · Panel lateral */
  .side { grid-area: side; padding: 20px; display: grid; gap: 18px; }
  .side h2 { font-size: 20px; }
  .side h3 { font: 700 13px/1.2 var(--text); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
  .phrases { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .phrases li { display: flex; justify-content: space-between; gap: 10px; background: var(--tinte); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
  .phrases li span:first-child { font-weight: 600; }
  .phrases li span:last-child { color: var(--muted); text-align: right; }
  .fixes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
  .fixes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
  .mistakes li { display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .mistakes li:last-child { border-bottom: 0; padding-bottom: 0; }
  .mistakes .x { color: #b0125f; }
  .mistakes .v b { color: var(--ok); }
  .practice__foot[hidden] { display: none; }
  .fixes s { color: #b0125f; text-decoration-thickness: 2px; }
  .fixes b { color: var(--ok); }
  .res { display: grid; gap: 8px; }
  .res a { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; }
  .res a:hover { border-color: var(--uva-2); }
  .res small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
  .next { display: block; text-decoration: none; padding: 14px; border-radius: 14px; background: var(--uva); color: #fff; font-weight: 600; }
  .next small { display: block; opacity: .75; font-weight: 400; font-size: 13px; }

  /* 5 · Práctica tipo app */
  .practice { grid-area: practice; padding: 0; overflow: hidden; }
  .practice__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
  .practice__head h2 { font-size: 22px; }
  .free { background: var(--yellow); color: var(--uva); font: 700 12px/1 var(--text); padding: 6px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
  .bar { margin: 14px 20px 0; height: 12px; border-radius: 6px; background: var(--tinte); overflow: hidden; }
  .bar i { display: block; height: 100%; width: 0; background: var(--pink); border-radius: 6px; transition: width .35s ease; }
  .stage { padding: 22px 20px 20px; min-height: 300px; }
  .kind { font: 700 13px/1 var(--text); text-transform: uppercase; letter-spacing: .06em; color: var(--uva-2); }
  .prompt { font: 700 clamp(24px, 3.2vw, 32px)/1.15 var(--display); margin: 10px 0 18px; }
  .prompt.err { color: #b0125f; text-decoration: line-through; text-decoration-thickness: 2px; }
  .help { margin: -8px 0 16px; color: var(--muted); }
  .opts { display: grid; gap: 10px; }
  .opt { text-align: left; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; padding: 14px 16px; font-size: 18px; font-weight: 600; }
  .opt:hover { border-color: color-mix(in oklab, var(--uva-2) 50%, var(--line)); }
  .opt[aria-pressed="true"] { border-color: var(--uva-2); background: color-mix(in oklab, var(--uva) 6%, #fff); }
  .opt:disabled { cursor: default; }
  .listen { display: inline-flex; align-items: center; gap: 10px; background: var(--uva); color: #fff; border: 0; border-radius: 16px; padding: 14px 18px; font-weight: 700; margin-bottom: 16px; }
  .listen svg { width: 22px; height: 22px; fill: var(--yellow); }
  .note { font-size: 13px; color: var(--muted); margin: -6px 0 16px; }
  .answer { min-height: 60px; border-bottom: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; margin-bottom: 18px; }
  .bank { display: flex; flex-wrap: wrap; gap: 8px; }
  .tile { background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 12px; padding: 10px 14px; font-size: 18px; font-weight: 600; }
  .tile[hidden] { display: none; }
  .selfcheck { display: flex; flex-wrap: wrap; gap: 10px; }

  .practice__foot { border-top: 1px solid var(--line); padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: #fff; }
  .practice__foot.ok { background: var(--ok-bg); border-top-color: transparent; }
  .practice__foot.bad { background: var(--bad-bg); border-top-color: transparent; }
  .fb { flex: 1 1 260px; min-width: 0; }
  .fb strong { display: block; font: 700 20px/1.2 var(--display); }
  .ok .fb strong { color: var(--ok); }
  .bad .fb strong { color: #b0125f; }
  .fb p { margin: 4px 0 0; font-size: 15px; }
  .btn { border: 0; border-radius: 14px; padding: 14px 22px; font-weight: 700; font-size: 16px; background: var(--pink); color: #fff; box-shadow: 0 4px 0 #c01a6c; }
  .btn:disabled { background: #d9d4e6; color: #fff; box-shadow: 0 4px 0 #bdb5d1; cursor: default; }
  .btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
  .ok .btn { background: var(--ok); box-shadow: 0 4px 0 #086645; }

  /* 6 · Resultado + oferta */
  .result { padding: 26px 20px 22px; }
  .score { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .score__num { width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); color: var(--uva); display: grid; place-items: center; font: 800 30px/1 var(--display); }
  .score h2 { font-size: 26px; }
  .score p { margin: 4px 0 0; color: var(--muted); }
  .mistakes { margin: 20px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--tinte); }
  .mistakes h3 { font: 700 13px/1.2 var(--text); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
  .mistakes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
  .save { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .save label { flex-basis: 100%; font-weight: 600; }
  .save input { flex: 1 1 220px; min-width: 0; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; }
  .offer { margin-top: 26px; }
  .offer > h2 { font-size: 24px; }
  .offer > p { margin: 6px 0 16px; color: var(--muted); }
  .plans { display: grid; gap: 12px; grid-template-columns: 1fr; }
  @media (min-width: 720px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .plan { position: relative; border: 2px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
  .plan--star { border-color: var(--pink); box-shadow: 0 0 0 4px rgb(255 46 147 / .12); }
  .plan__tag { position: absolute; top: -12px; left: 16px; background: var(--pink); color: #fff; font: 700 12px/1 var(--text); padding: 6px 10px; border-radius: 999px; }
  .plan h3 { font-size: 20px; }
  .plan__price { font: 800 22px/1 var(--display); }
  .plan__price small { font: 500 14px var(--text); color: var(--muted); }
  .plan ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--muted); flex: 1; }
  .plan a { margin-top: 6px; text-align: center; text-decoration: none; border-radius: 12px; padding: 12px; font-weight: 700; background: var(--uva); color: #fff; }
  .plan--star a { background: var(--pink); }
  .fineprint { font-size: 13px; color: var(--muted); margin-top: 12px; }

  /* 7 · Tarjetero para memorizar */
  .deck { grid-area: cards; overflow: hidden; scroll-margin-top: 80px; }
  .deck__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 18px 20px 0; }
  .deck__head h2 { font-size: 22px; }
  .deck__head p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 15px; }
  .deck__body { padding: 16px 20px 20px; display: grid; gap: 14px; justify-items: center; }
  .modes { display: inline-flex; background: var(--tinte); border-radius: 999px; padding: 4px; gap: 4px; }
  .modes button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; color: var(--muted); }
  .modes button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(28 15 92 / .15); }
  .count { width: min(100%, 460px); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
  .count b { color: var(--ink); }
  .count .bar { margin: 0; height: 8px; }
  .count .bar i { background: var(--ok); }
  .flash { width: min(100%, 460px); aspect-ratio: 3 / 2; perspective: 1200px; border: 0; background: none; padding: 0; }
  .flash__in { position: relative; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; }
  .flash.is-flipped .flash__in { transform: rotateY(180deg); }
  .flash__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; display: grid;
    place-items: center; align-content: center; gap: 10px; padding: 24px; text-align: center; box-shadow: 0 16px 34px -18px rgb(28 15 92 / .55); }
  .flash__front { background: radial-gradient(circle at 85% 15%, rgb(255 46 147 / .45), transparent 45%), var(--uva); color: #fff; }
  .flash__back { background: var(--yellow); color: var(--uva); transform: rotateY(180deg); }
  .flash__lang { font: 700 12px/1 var(--text); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
  .flash__txt { font: 800 clamp(24px, 4.4vw, 34px)/1.15 var(--display); }
  .flash__hint { font-size: 13px; opacity: .7; }
  .deck__actions { width: min(100%, 460px); display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; }
  .deck__actions .btn { padding: 14px 12px; }
  .btn--again { background: #fff; color: #b0125f; border: 2px solid #f6b5d3; box-shadow: 0 4px 0 #f6b5d3; }
  .btn--know { background: var(--ok); box-shadow: 0 4px 0 #086645; }
  .btn--sound { background: var(--uva); box-shadow: 0 4px 0 #22052a; min-width: 58px; padding-inline: 14px; font-size: 20px; line-height: 1; }
  .done { text-align: center; padding: 10px 0; }
  .done strong { display: block; font: 800 24px/1.2 var(--display); }
  .done p { color: var(--muted); margin: 6px 0 14px; }
  .deck__list { width: min(100%, 460px); }
  .deck__list summary { cursor: pointer; font-weight: 600; color: var(--uva-2); }
  .deck__list ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
  .deck__list li { display: flex; justify-content: space-between; gap: 10px; background: var(--tinte); border-radius: 12px; padding: 8px 12px; font-size: 15px; }
  .deck__list li span:first-child { color: var(--muted); }
  .deck__list li span:last-child { font-weight: 600; text-align: right; }
  .deck__list li.known span:last-child::after { content: " ✓"; color: var(--ok); }

  :focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

  /* 8 · Recordatorio del repaso (a los 2 días) */
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .remind { margin-top: 18px; display: flex; gap: 14px; padding: 16px; border-radius: 16px; background: #fff;
    border: 2px dashed color-mix(in oklab, var(--uva-2) 35%, transparent); }
  .remind__icon { font-size: 28px; line-height: 1; }
  .remind h3 { font: 700 20px/1.2 var(--display); }
  .remind p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
  .remind .save { margin-top: 12px; }
  .remind__ok { color: var(--ink) !important; font-weight: 600; }
  .wa-bubble { margin-top: 10px; max-width: 380px; background: #dcf8c6; color: #111b21; border-radius: 12px 12px 12px 2px; padding: 10px 12px 6px; font-size: 15px;
    box-shadow: 0 1px 1px rgb(0 0 0 / .15); }
  .wa-bubble p { margin: 0 !important; color: inherit !important; }
  .wa-bubble a { color: #027eb5; font-weight: 600; }
  .wa-time { display: block; text-align: right; font-size: 11px; color: #667781; }

  /* 9 · Página de repaso */
  .lesson--single { grid-template-columns: minmax(0, 760px); grid-template-areas: "head" "intro" "practice"; justify-content: center; }
  .intro { grid-area: intro; padding: 22px 20px; display: grid; gap: 14px; justify-items: start; }
  .intro h2 { font-size: 24px; }
  .checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 17px; }
  .next-review { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--tinte); font-size: 16px; }
  .offer--moment > h2 { font-size: 24px; }
  .back { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--uva-2); }

  /* 10 · Avance de la lección: anillo + 3 pasos + candado de la siguiente */
  @media (min-width: 960px) { .head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; } }
  .progress { margin-top: 16px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; }
  @media (min-width: 960px) { .progress { margin-top: 0; min-width: 360px; } }
  .ring { position: relative; flex: none; display: block; width: 72px; height: 72px; color: var(--ink); text-decoration: none; }
  .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .ring__track { fill: none; stroke: var(--tinte); stroke-width: 7; }
  .ring__fill { fill: none; stroke: var(--pink); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65;
    transition: stroke-dashoffset .7s cubic-bezier(.2, .7, .2, 1), stroke .3s; }
  .ring.is-done .ring__fill { stroke: var(--ok); }
  .ring__num { position: absolute; inset: 0; display: grid; place-items: center; font: 800 18px/1 var(--display); }
  .ring--sm { width: 34px; height: 34px; }
  .ring--sm .ring__track, .ring--sm .ring__fill { stroke-width: 8; }
  .ring--sm .ring__num { font-size: 11px; }
  @media (max-width: 420px) { .top__course .dots { display: none; } }
  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
  .steps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.3; }
  .steps small { color: var(--muted); font-size: 13px; }
  .st { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--text);
    background: var(--tinte); color: var(--muted); }
  .steps li.is-half .st { background: color-mix(in oklab, var(--pink) 18%, #fff); color: #b0125f; }
  .steps li.is-done .st { background: var(--ok); color: #fff; }
  .unlock { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
  .unlock b { color: var(--ink); }
  .next.is-locked { background: #ece7f3; color: var(--muted); cursor: not-allowed; }
  .remind h3 .free { vertical-align: middle; margin-left: 6px; }

  /* 11 · Lección en pestañas: Video · Tarjetero · Práctica, uno a la vez en la misma página */
  .lesson--tabs { grid-template-areas: "head" "tabs" "panel" "side"; }
  @media (min-width: 960px) {
    .lesson--tabs { grid-template-areas: "head head" "tabs side" "panel side"; }
    .lesson--tabs .side { top: calc(var(--top-h, 70px) + 16px); align-self: start; }
  }
  .tabs { grid-area: tabs; position: sticky; top: var(--top-h, 64px); z-index: 15; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    margin: -6px -4px 0; padding: 10px 4px 8px; background: color-mix(in oklab, var(--cream) 94%, transparent); backdrop-filter: blur(8px); }
  .tab { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; background: #fff; border: 2px solid var(--line); border-bottom-width: 4px;
    border-radius: 16px; padding: 10px 12px; text-align: left; transition: background .2s, border-color .2s; }
  .tab:hover { border-color: color-mix(in oklab, var(--uva-2) 45%, var(--line)); }
  .tab[aria-selected="true"] { background: var(--uva); border-color: #22052a; color: #fff; }
  .tab__ico { font-size: 20px; line-height: 1; flex: none; }
  .tab__txt { min-width: 0; }
  .tab b { display: block; font: 700 17px/1.1 var(--display); }
  .tab small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tab[aria-selected="true"] small { color: rgb(255 255 255 / .78); }
  .tab__ok { position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff;
    display: none; place-items: center; font: 800 12px/1 var(--text); box-shadow: 0 0 0 2px var(--cream); }
  .tab.is-done .tab__ok { display: grid; }
  @media (max-width: 639px) {
    .tab { flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 8px 6px; }
    .tab b { font-size: 15px; }
    .tab small { font-size: 11px; max-width: 100%; }
  }
  .panel { grid-area: panel; min-width: 0; }
  .panel[hidden] { display: none; }
  .panel__next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
  .panel__next p { margin: 0; color: var(--muted); font-size: 15px; }
  .progress__title { margin: 0; font: 700 18px/1.2 var(--display); }
  .progress .unlock { margin-top: 4px; }
  .lesson-end { margin-top: 18px; display: grid; gap: 8px; }
  .lesson-end .unlock { margin: 0; }
  .side__det > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .side__det > summary::-webkit-details-marker { display: none; }
  .side__det > summary b { display: block; font: 700 20px/1.2 var(--display); }
  .side__det > summary small { display: block; color: var(--muted); font-size: 13px; }
  .side__det > summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--uva-2); border-bottom: 2px solid var(--uva-2);
    transform: rotate(45deg); transition: transform .2s; }
  .side__det[open] > summary::after { transform: rotate(-135deg); }
  .side__body { display: grid; gap: 18px; margin-top: 16px; }

  a.croquis-tag { text-decoration: none; }
  a.croquis-tag:hover { background: #fff; }

  /* 12 · Arriba, siempre visibles: dos botones (Método SPARK y profe 1:1) junto al logo */
  .top__cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .hbtn { display: inline-flex; align-items: center; border-radius: 14px; padding: 8px 14px; text-decoration: none; white-space: nowrap; line-height: 1.1; }
  .hbtn b { display: block; font: 700 14px/1.1 var(--text); }
  .hbtn small { display: block; margin-top: 2px; font: 500 11px/1 var(--text); opacity: .75; }
  .hbtn--ghost { background: #fff; color: var(--uva); border: 2px solid color-mix(in oklab, var(--uva-2) 30%, transparent); }
  .hbtn--ghost:hover { border-color: var(--uva-2); }
  .hbtn--main { background: var(--pink); color: #fff; border: 2px solid var(--pink); box-shadow: 0 3px 0 #c01a6c; }
  .hbtn__short { display: none; }
  @media (max-width: 639px) {
    .top__in { gap: 8px; }
    .hbtn { padding: 8px 10px; border-radius: 12px; font: 700 13px/1 var(--text); }
    .hbtn__long { display: none; }
    .hbtn__short { display: inline; }
  }
  .progress__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
  .progress__meta .dots i { width: 12px; }
  .head .streak { margin-left: 6px; }
  .hbtn--spark { background: var(--uva); color: #fff; border: 2px solid var(--uva); box-shadow: 0 3px 0 #22052a; }
  .hbtn--spark small { color: var(--yellow); opacity: 1; }

  /* 13 · Modo foco: mientras se ve el video o se hace la práctica, lo demás se oscurece */
  .foco-velo { position: fixed; inset: 0; z-index: 40; background: rgb(18 6 22 / .86); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  html.foco .foco-velo { opacity: 1; pointer-events: auto; }
  @media (min-width: 960px) and (prefers-reduced-motion: no-preference) { html.foco .foco-velo { backdrop-filter: blur(3px); } }
  .is-foco { position: relative; z-index: 50; }
  html.foco--video .video.is-foco { box-shadow: 0 0 0 4px rgb(255 255 255 / .08), 0 30px 80px -20px rgb(0 0 0 / .8); }
  .foco-bar { display: none; position: fixed; z-index: 70; top: 12px; right: 12px; gap: 8px; }
  html.foco .foco-bar { display: flex; }
  html.foco--practica #foco-frases { display: none; }
  .foco-btn { border: 0; border-radius: 999px; padding: 10px 14px; font: 700 14px/1 var(--text); background: rgb(255 255 255 / .96); color: var(--ink); cursor: pointer;
    box-shadow: 0 6px 18px -8px rgb(0 0 0 / .5); }
  html.foco--practica .foco-btn { background: var(--tinte); box-shadow: none; }
  .foco-btn .s { display: none; }
  @media (max-width: 639px) { .foco-btn .l { display: none; } .foco-btn .s { display: inline; } }
  .foco-frases { display: none; position: fixed; z-index: 70; right: 12px; top: 62px; width: min(340px, calc(100vw - 24px)); padding: 16px; }
  html.foco--video .foco-frases.is-open { display: block; }
  .foco-frases h3 { font: 700 16px/1.2 var(--display); margin-bottom: 10px; }

  html.foco--practica { overflow: hidden; }
  html.foco--practica .practice.is-foco { position: fixed; inset: 0; z-index: 60; border-radius: 0; box-shadow: none; overflow-y: auto; display: flex; flex-direction: column; }
  html.foco--practica .practice.is-foco > * { width: min(100%, 720px); margin-inline: auto; }
  html.foco--practica .practice.is-foco .practice__head { padding-top: 18px; padding-right: 120px; }
  html.foco--practica .practice.is-foco .stage { flex: 1; }
  html.foco--practica .practice.is-foco .practice__foot { position: sticky; bottom: 0; }
  @media (max-width: 639px) { html.foco--practica .practice.is-foco .practice__head { padding-right: 96px; } }

  .player.is-playing .player__btn { opacity: 0; transform: scale(.8); }
  .player__btn { transition: opacity .25s, transform .25s; }
  .player__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgb(255 255 255 / .2); }
  .player__progress i { display: block; height: 100%; width: 0; background: var(--pink); }

  .start { display: grid; gap: 10px; justify-items: start; padding: 6px 0 4px; }
  .start__big { margin: 0; font: 800 24px/1.2 var(--display); }
  .start__txt { margin: 0; color: var(--muted); max-width: 52ch; }
  @media (prefers-reduced-motion: reduce) { .foco-velo, .player__btn { transition: none; } }
  html.foco--video .video.is-foco .panel__next { opacity: .35; transition: opacity .3s; }
  html.foco--practica .practice.is-foco .bar { width: calc(min(100%, 720px) - 40px); }

  /* 14 · Foco centrado: el video al centro y más grande (computador); el tarjetero solo y centrado */
  @keyframes foco-in { from { opacity: .4; transform: translate(-50%, -50%) scale(.96); } }
  @keyframes foco-fade { from { opacity: 0; } }
  .video.is-centrado { position: fixed; z-index: 50; left: 50%; top: calc(50% + 24px); transform: translate(-50%, -50%);
    width: min(1100px, 92vw, calc((100vh - 220px) * 16 / 9)); animation: foco-in .35s cubic-bezier(.2, .7, .2, 1); }
  html.foco--practica .practice.is-foco { animation: foco-fade .3s ease; }

  html.foco--tarjetero { overflow: hidden; }
  html.foco--tarjetero #foco-frases { display: none; }
  html.foco--tarjetero .foco-btn { background: var(--tinte); box-shadow: none; }
  html.foco--tarjetero .deck.is-foco { position: fixed; inset: 0; z-index: 60; border-radius: 0; box-shadow: none; overflow-y: auto;
    display: flex; flex-direction: column; animation: foco-fade .3s ease; }
  html.foco--tarjetero .deck.is-foco::before, html.foco--tarjetero .deck.is-foco::after { content: ""; flex: 1 1 0; }
  html.foco--tarjetero .deck.is-foco > * { flex: none; width: min(100%, 560px); margin-inline: auto; }
  html.foco--tarjetero .deck.is-foco .deck__head { padding-top: 18px; padding-right: 110px; }
  html.foco--tarjetero .deck.is-foco .panel__next { display: none; }
  @media (prefers-reduced-motion: reduce) { .video.is-centrado, html.foco--practica .practice.is-foco, html.foco--tarjetero .deck.is-foco { animation: none; } }
