/* =========================================================
   Inglés con Leo · v5 · Identidad oscura (dark first) y escenas del rediseño
   Evoluciona los tokens de v2-tokens.css y v3-ui.css (mismos nombres, valores nuevos en oscuro) y da composición propia
   a Inicio, Practicar, Progreso y la Academia. El claro y el automático se conservan.
   Negro como base, superficies en tres niveles, azul eléctrico solo para interactuar, cada color con una función:
   turquesa = Método Leo (errores), ámbar = reto y racha, violeta = insignias, verde = logrado.
   ========================================================= */

/* ---------- 1. Tokens: negro con profundidad ---------- */
html.v2[data-theme="dark"]{
  --paper:#06070B; --paper-dim:#0D1017; --v2-bg:#06070B;
  --v2-surface:#0E1118; --v2-surface-2:#151925; --v2-surface-3:#1D2231;
  --v2-line:#1B2030; --v2-line-strong:#2A3145;
  --line:#1B2030;
  --v2-brand:#3F5CFF; --v2-brand-lip:#1D2FAE; --blue:#4F6BFF; --blue-deep:#3F5CFF;
}
html.v2[data-theme="dark"] body{background:#06070B}
html.v2[data-theme="dark"] .k-scope{
  --k-bg:#06070B; --k-bg-pattern:rgba(255,255,255,.03);
  --k-surface:#0E1118; --k-surface-2:#151925; --k-surface-3:#1D2231;
  --k-line:#1B2030; --k-line-strong:#2A3145;
  --k-text:#F3F5FB; --k-text-2:#A8AFC2; --k-text-3:#777F96;
  --k-brand:#3F5CFF; --k-brand-lip:#1D2FAE; --k-brand-tint:#121A44; --k-brand-text:#93A5FF;
  --k-focus:#9AAEFF;
  --k-disabled-bg:#171B26; --k-disabled-text:#596179; --k-disabled-lip:#10131B;
  --k-shadow-soft:0 1px 0 rgba(255,255,255,.035) inset,0 18px 40px -22px rgba(0,0,0,.9);
  --k-chart-a:#5470FF; --k-chart-grid:#191E2B;
  --v5-glow:radial-gradient(120% 90% at 100% 0%,rgba(63,92,255,.30),rgba(63,92,255,0) 58%);
  --v5-edge:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.015));
}
.k-scope{
  --v5-glow:radial-gradient(120% 90% at 100% 0%,rgba(45,75,240,.14),rgba(45,75,240,0) 60%);
  --v5-edge:linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,255,255,.2));
}
/* Barra superior y navegación en negro con un filo de luz */
html.v2[data-theme="dark"] .v2-shell .k-topbar{background:rgba(6,7,11,.82);backdrop-filter:saturate(1.3) blur(14px);-webkit-backdrop-filter:saturate(1.3) blur(14px);border-bottom:1px solid #141824}
html.v2[data-theme="dark"] .v2-shell .k-nav{background:#08090E;border-color:#141824}
html.v2[data-theme="dark"] .v2-shell .k-nav__item[aria-current="page"]{background:linear-gradient(180deg,rgba(63,92,255,.16),rgba(63,92,255,.06));border-color:rgba(99,124,255,.45)}

/* Superficie con filo de luz (borde degradado de 1 px) para las piezas protagonistas */
.k-scope .v2-task,.k-scope .v2-skill,.k-scope .v2-expand{background:var(--k-surface);border-color:var(--k-line)}
html.v2[data-theme="dark"] .k-scope .v2-task,html.v2[data-theme="dark"] .k-scope .v2-skill,html.v2[data-theme="dark"] .k-scope .v2-expand{box-shadow:0 1px 0 rgba(255,255,255,.03) inset}
html.v2[data-theme="dark"] .k-scope a.v2-task:hover,html.v2[data-theme="dark"] .k-scope a.v2-skill:hover{background:var(--k-surface-2);border-color:var(--k-line-strong)}

/* Tipografía: títulos con más presencia y tracking cerrado */
.k-scope .v2-h1{letter-spacing:-.02em}
.k-scope .k-v5-hi{display:flex;flex-direction:column;gap:2px}
.k-scope .k-v5-hi__eyebrow{margin:0;font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--k-brand-text)}
.k-scope .k-v5-hi .v2-h1{font-size:clamp(30px,7.4vw,44px);line-height:1.02}

/* ---------- 2. La misión (Inicio): escena oscura, emblema grande, Profe Leo y camino de lecciones ---------- */
.k-scope .v2-next.k-v5-mision{position:relative;overflow:hidden;isolation:isolate;padding:22px 20px 20px;border-radius:28px;color:var(--k-text);
  background:var(--v5-glow),linear-gradient(180deg,var(--k-surface-2),var(--k-surface));border:1px solid var(--k-line-strong);
  box-shadow:0 30px 60px -34px rgba(31,51,181,.55),0 1px 0 rgba(255,255,255,.05) inset}
.k-scope .k-v5-mision::after{content:"";position:absolute;inset:auto -20% -60% 30%;height:120%;z-index:-1;background:radial-gradient(closest-side,rgba(63,92,255,.10),transparent);pointer-events:none}
.k-scope .k-v5-mision .v2-next__eyebrow{color:var(--k-brand-text)}
.k-scope .k-v5-mision h2{font-size:clamp(26px,6.6vw,34px);line-height:1.05;margin:6px 0 14px;max-width:calc(100% - 104px);color:var(--k-text)}
.k-scope .k-v5-mision__art{position:absolute;right:12px;top:12px;width:112px;height:112px;filter:drop-shadow(0 14px 22px rgba(0,0,0,.45));transform:rotate(6deg)}
.k-scope .k-v5-mision__art svg{width:112px;height:112px}
.k-scope .k-v5-profe{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.k-scope .k-v5-profe img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:50% 18%;flex:none;background:#E9E6E0;box-shadow:0 0 0 2px var(--k-surface),0 0 0 4px rgba(99,124,255,.65)}
.k-scope .k-v5-profe b{display:block;font-size:15px;font-weight:900;color:var(--k-text)}
.k-scope .k-v5-profe small{display:block;font-size:13px;font-weight:800;color:var(--k-text-2)}
.k-scope .k-v5-segs{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0 0 14px}
.k-scope .k-v5-segs i{height:8px;border-radius:99px;background:var(--k-surface-3)}
.k-scope .k-v5-segs i.k-is-done{background:linear-gradient(90deg,#4F6BFF,#7B8FFF)}
.k-scope .k-v5-segs i.k-is-now{background:var(--k-surface-3);box-shadow:inset 0 0 0 2px #5C77FF;animation:v5-latido 2.4s ease-in-out 3}
@keyframes v5-latido{50%{box-shadow:inset 0 0 0 2px #5C77FF,0 0 0 4px rgba(92,119,255,.18)}}
.k-scope .k-v5-mision .v2-next__why{margin:0 0 16px;background:rgba(255,255,255,.04);border:1px solid var(--k-line);color:var(--k-text-2);font-weight:700}
.k-scope .k-v5-mision .k-btn{--k-b-bg:var(--k-brand);--k-b-lip:var(--k-brand-lip);--k-b-fg:#fff;--k-b-hi:rgba(255,255,255,.25);--k-b-glow:rgba(63,92,255,.65);text-transform:none}
.k-scope .k-v5-mision .k-btn--award{--k-b-bg:var(--k-award);--k-b-lip:var(--k-award-lip);--k-b-glow:rgba(142,116,255,.55)}
.k-scope .k-v5-mision .v2-next__alt{color:var(--k-brand-text)}
.k-scope .k-v5-shelf{display:flex;margin:4px 0 14px}
.k-scope .k-v5-shelf > *{width:56px;height:56px;margin-right:-10px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.4))}
html.v2[data-theme="light"] .k-scope .v2-next.k-v5-mision,html:not([data-theme="dark"]) .k-scope .v2-next.k-v5-mision{box-shadow:0 24px 50px -30px rgba(45,75,240,.45)}

/* ---------- 3. El día: anillo de meta, semana y racha ---------- */
.k-scope .k-v5-dia{background:var(--k-surface);border:1px solid var(--k-line);border-radius:22px;padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.k-scope .k-v5-dia__meta{display:flex;align-items:center;gap:14px;width:100%;background:none;border:0;padding:0;text-align:left;cursor:pointer;color:inherit;border-radius:14px}
.k-scope .k-v5-dia__meta:focus-visible{outline:3px solid var(--k-focus);outline-offset:4px}
.k-scope .k-v5-ring{width:64px;height:64px;flex:none;transform:rotate(-90deg)}
.k-scope .k-v5-ring__t{fill:none;stroke:var(--k-surface-3);stroke-width:7}
.k-scope .k-v5-ring__f{fill:none;stroke:var(--k-ok);stroke-width:7;stroke-linecap:round;transition:stroke-dashoffset .9s var(--k-ease-out)}
.k-scope .k-v5-dia__meta small{display:block;font-size:12px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:var(--k-text-3)}
.k-scope .k-v5-dia__meta b{display:block;font-family:var(--k-font-display);font-size:28px;line-height:1.05;color:var(--k-text)}
.k-scope .k-v5-dia__meta b span{font-family:var(--k-font-body);font-size:15px;font-weight:800;color:var(--k-text-2)}
.k-scope .k-v5-dia__meta em{display:block;font-style:normal;font-size:13px;font-weight:800;color:var(--k-ok-text)}
.k-scope .k-v5-dia__sem{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--k-line)}
.k-scope .k-v5-dia__sem .k-week{margin:0}
.k-scope .k-v5-dia__racha{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:800;color:var(--k-streak-text)}
.k-scope .k-v5-dia__racha svg{width:20px;height:20px}
.k-scope .k-v5-dia__racha b{font-size:16px}

/* ---------- 4. Practicar: una acción, tres caminos ---------- */
.k-scope .k-v5-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.k-scope .k-v5-tile{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:14px;min-height:124px;padding:14px;border-radius:22px;text-decoration:none;color:var(--k-text);
  background:var(--k-surface);border:1px solid var(--k-line);text-align:left;cursor:pointer;font:inherit;overflow:hidden;
  transition:transform 90ms var(--k-ease-out),border-color .2s,background-color .2s;box-shadow:0 4px 0 var(--k-line)}
.k-scope .k-v5-tile:active{transform:translateY(3px);box-shadow:0 1px 0 var(--k-line)}
@media (hover:hover){.k-scope .k-v5-tile:hover{border-color:var(--k-line-strong);background:var(--k-surface-2)}}
.k-scope .k-v5-tile:focus-visible{outline:3px solid var(--k-focus);outline-offset:3px}
.k-scope .k-v5-tile b{display:block;font-size:17px;font-weight:900;line-height:1.15}
.k-scope .k-v5-tile small{display:block;margin-top:2px;font-size:13px;font-weight:700;color:var(--k-text-2)}
.k-scope .k-v5-tile .v2-task__ic{width:44px;height:44px}
.k-scope .k-v5-tile__n{position:absolute;top:12px;right:12px;min-width:30px;height:30px;padding:0 9px;border-radius:99px;display:grid;place-items:center;font-weight:900;font-size:14px;background:var(--k-mend-tint);color:var(--k-mend-text)}
.k-scope .k-v5-tile--mend{background:radial-gradient(110% 90% at 100% 0%,rgba(31,191,178,.16),transparent 60%),var(--k-surface)}
.k-scope .k-v5-tile--gram{background:radial-gradient(110% 90% at 100% 0%,rgba(63,92,255,.18),transparent 60%),var(--k-surface)}
.k-scope .k-v5-tile--solo{grid-column:1 / -1;min-height:0;flex-direction:row;align-items:center;justify-content:flex-start}
.k-scope .v2-practicar .v2-expand > summary{min-height:64px}
.k-scope .k-v5-errsheet{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.k-scope .k-v5-errsheet h3{margin:0 0 2px;font-size:22px}
.k-scope .k-v5-errsheet .v2-eyebrow{margin:8px 0 0}

/* ---------- 5. Progreso: tu semana, lo que aprendiste, tus insignias ---------- */
.k-scope .k-v5-semana{position:relative;overflow:hidden;border-radius:28px;padding:18px;border:1px solid var(--k-line-strong);
  background:radial-gradient(100% 80% at 0% 0%,rgba(255,138,51,.14),transparent 55%),linear-gradient(180deg,var(--k-surface-2),var(--k-surface))}
.k-scope .k-v5-semana__top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.k-scope .k-v5-big{font-family:var(--k-font-display);font-size:56px;line-height:.9;font-weight:800;color:var(--k-text);letter-spacing:-.03em}
.k-scope .k-v5-big small{font-family:var(--k-font-body);font-size:16px;font-weight:800;color:var(--k-text-2);letter-spacing:0;margin-left:6px}
.k-scope .k-v5-semana__k{display:block;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--k-streak-text);margin-bottom:6px}
.k-scope .k-v5-racha{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:16px;background:rgba(255,138,51,.12);color:var(--k-streak-text);font-weight:900;white-space:nowrap}
.k-scope .k-v5-racha svg{width:22px;height:22px}
.k-scope .k-v5-semana .v2-wdots{margin:0}
.k-scope .k-v5-semana__pie{margin:12px 0 0;font-size:14px;font-weight:700;color:var(--k-text-2)}
.k-scope .k-v5-aprende{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.k-scope .k-v5-met{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border-radius:20px;background:var(--k-surface);border:1px solid var(--k-line);text-decoration:none;color:var(--k-text);min-width:0}
.k-scope .k-v5-met__v{font-family:var(--k-font-display);font-size:30px;line-height:1;font-weight:800}
.k-scope .k-v5-met__l{font-size:13px;font-weight:800;color:var(--k-text-2);line-height:1.2}
.k-scope .k-v5-met__s{font-size:12px;font-weight:800;color:var(--k-text-3)}
.k-scope .k-v5-met__s.k-is-up{color:var(--k-ok-text)}
.k-scope .k-v5-met--ok .k-v5-met__v{color:var(--k-ok-text)}
.k-scope .k-v5-met--mend .k-v5-met__v{color:var(--k-mend-text)}
.k-scope .k-v5-met--brand .k-v5-met__v{color:var(--k-brand-text)}
.k-scope .k-v5-bar{width:100%;height:6px;border-radius:99px;background:var(--k-surface-3);overflow:hidden}
.k-scope .k-v5-bar i{display:block;height:100%;border-radius:inherit;background:currentColor;transform-origin:0 50%;animation:v5-crece .9s var(--k-ease-out) both}
@keyframes v5-crece{from{transform:scaleX(0)}}
.k-scope .k-v5-insig{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:22px;text-decoration:none;color:var(--k-text);
  background:radial-gradient(100% 90% at 100% 0%,rgba(142,116,255,.18),transparent 60%),var(--k-surface);border:1px solid var(--k-line)}
.k-scope .k-v5-insig__shelf{display:flex;flex:none}
.k-scope .k-v5-insig__shelf > *{width:44px;height:44px;margin-right:-12px}
.k-scope .k-v5-insig__t{min-width:0;flex:1;margin-left:12px}
.k-scope .k-v5-insig__t b{display:block;font-size:16px;font-weight:900}
.k-scope .k-v5-insig__t small{display:block;font-size:13px;font-weight:700;color:var(--k-text-2)}
.k-scope .k-v5-insig svg.k-chev,.k-scope .k-v5-insig > svg:last-child{width:18px;height:18px;color:var(--k-text-3);flex:none}

/* ---------- 6. Escritorio: el espacio se usa ---------- */
@media (min-width:1024px){
  .k-scope.v2-home{max-width:1080px}
  .k-scope .v2-home__cols{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px}
  .k-scope .v2-next.k-v5-mision{padding:30px 30px 26px;min-height:100%}
  .k-scope .k-v5-mision h2{font-size:40px}
  .k-scope .k-v5-mision__art,.k-scope .k-v5-mision__art svg{width:150px;height:150px}
  .k-scope .k-v5-mision__art{right:24px;top:22px}
  .k-scope .k-v5-mision h2{max-width:calc(100% - 170px)}
  .k-scope .v2-practicar.k-v5-practicar{max-width:1000px}
  .k-scope .k-v5-practicar__grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}
  .k-scope .k-v5-tiles{grid-template-columns:1fr 1fr}
  .k-scope .k-v5-prog__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
}

/* ---------- 7. Movimiento con intención (y nada con «reducir movimiento») ---------- */
.k-scope .k-v5-entra{animation:v5-entra .42s var(--k-ease-out) both}
.k-scope .k-v5-entra:nth-child(2){animation-delay:.05s}.k-scope .k-v5-entra:nth-child(3){animation-delay:.1s}
@keyframes v5-entra{from{opacity:0;transform:translateY(8px)}}
@media (prefers-reduced-motion:reduce){
  .k-scope .k-v5-segs i.k-is-now,.k-scope .k-v5-bar i,.k-scope .k-v5-entra{animation:none}
  .k-scope .k-v5-ring__f{transition:none}
}

/* Las escenas del rediseño usan más ancho en escritorio que la columna de lectura (760 px) */
@media (min-width:1100px){ html.v2.v2-app .v2-screen.k-v5-ancho{max-width:calc(1060px + 2 * var(--v2-pad))!important} }
html.v2.v2-app .k-scope .k-v5-hi .v2-h1{font-size:clamp(32px,7.6vw,48px)!important;line-height:1!important}
.k-scope .k-v5-mision__art--plan{display:grid;place-items:center;border-radius:30px;width:84px;height:84px;transform:rotate(-6deg);color:#fff;
  background:linear-gradient(150deg,#5873FF,#2E45E0);box-shadow:0 0 0 6px rgba(63,92,255,.12),0 18px 30px -12px rgba(46,69,224,.8)}
.k-scope .k-v5-mision__art--plan svg{width:46px!important;height:46px!important}
.k-scope .k-v5-mision .v2-next__meta{margin:-4px 0 14px}
.k-scope .k-v5-mision .v2-next__meta span{background:rgba(255,255,255,.06);border:1px solid var(--k-line-strong);color:var(--k-text-2)}
.k-scope .v5-reto,.k-scope .v2-reto-slot{margin-top:2px}
@media (min-width:1024px){ .k-scope .k-v5-mision__art--plan{width:104px;height:104px} .k-scope .k-v5-mision__art--plan svg{width:56px!important;height:56px!important} }
.k-scope .k-v5-mision .k-btn--block{max-width:none}
html.v2.v2-app .k-scope.v2-progreso .k-v5-hi .v2-h1{font-size:clamp(32px,7.6vw,48px)!important}
@media (max-width:420px){ .k-scope .k-v5-aprende{gap:8px} .k-scope .k-v5-met{padding:12px 10px} .k-scope .k-v5-met__v{font-size:26px} }

/* ---------- 8. Academia: la ruta como un recorrido ---------- */
.k-scope .k-v5-viaje{border-radius:28px;padding:18px;background:linear-gradient(180deg,var(--k-surface-2),var(--k-surface));border:1px solid var(--k-line-strong);display:flex;flex-direction:column;gap:14px}
.k-scope .k-v5-viaje__track{display:flex;flex-direction:column;gap:0;position:relative}
.k-scope .k-v5-viaje__st{position:relative;display:flex;align-items:flex-start;gap:12px;padding:0 0 14px}
.k-scope .k-v5-viaje__st:not(:last-child)::before{content:"";position:absolute;left:19px;top:40px;bottom:2px;width:3px;border-radius:3px;background:var(--k-surface-3)}
.k-scope .k-v5-viaje__st.k-is-past:not(:last-child)::before{background:var(--st)}
.k-scope .k-v5-viaje__node{width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:900;font-size:15px;background:var(--k-surface-3);color:var(--k-text-2);border:2px solid var(--k-line-strong)}
.k-scope .k-v5-viaje__node svg{width:20px;height:20px}
.k-scope .k-v5-viaje__st.k-is-past .k-v5-viaje__node{background:var(--st);border-color:transparent;color:#fff}
.k-scope .k-v5-viaje__st.k-is-now .k-v5-viaje__node{background:var(--k-brand);border-color:transparent;color:#fff;box-shadow:0 0 0 5px color-mix(in srgb,var(--k-brand) 22%,transparent),0 10px 24px -8px rgba(63,92,255,.8)}
.k-scope .k-v5-viaje__node b{font-size:13px}
.k-scope .k-v5-viaje__t small{display:block;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--k-text-3)}
.k-scope .k-v5-viaje__t b{display:block;font-family:var(--k-font-display);font-size:19px;line-height:1.15;color:var(--k-text)}
.k-scope .k-v5-viaje__t em{display:block;font-style:normal;font-size:13px;font-weight:800;color:var(--k-text-2)}
.k-scope .k-v5-viaje__st.k-is-now .k-v5-viaje__t em{color:var(--k-brand-text)}
.k-scope .k-v5-viaje__meta{margin:0;font-size:14px;font-weight:700;color:var(--k-text-2)}
.k-scope .k-v5-viaje__meta b{color:var(--k-text)}
.k-scope .k-v5-viaje__sum{background:none!important;border:0!important;padding:0!important;box-shadow:none!important}
@media (min-width:760px){
  .k-scope .k-v5-viaje__track{flex-direction:row;gap:0}
  .k-scope .k-v5-viaje__st{flex:1;flex-direction:column;padding:0 12px 0 0}
  .k-scope .k-v5-viaje__st:not(:last-child)::before{left:46px;right:8px;top:19px;bottom:auto;width:auto;height:3px}
}
/* Etapas: superficie oscura con el color de la etapa como luz, no como bloque */
html.v2[data-theme="dark"] .k-scope .v2-stage{background:var(--k-surface);border-color:var(--k-line)}
html.v2[data-theme="dark"] .k-scope .v2-stage > summary{background:radial-gradient(120% 140% at 0% 0%,color-mix(in srgb,var(--k-st) 30%,transparent),transparent 60%),var(--k-surface-2);color:var(--k-text);border-bottom:1px solid var(--k-line);box-shadow:inset 4px 0 0 var(--k-st)}
html.v2[data-theme="dark"] .k-scope .v2-stage > summary small{color:var(--k-st);opacity:1}
html.v2[data-theme="dark"] .k-scope .v2-stage__pill{background:rgba(255,255,255,.06);color:var(--k-text-2)}

/* ---------- 9. Logros: una vitrina para las insignias ---------- */
.k-scope .k-v5-vitrina{position:relative;overflow:hidden;border-radius:28px;padding:22px 16px 16px;text-align:center;border:1px solid var(--k-line-strong);
  background:radial-gradient(70% 90% at 50% 0%,rgba(142,116,255,.28),transparent 70%),linear-gradient(180deg,var(--k-surface-2),var(--k-surface))}
.k-scope .k-v5-vitrina__luz{position:absolute;left:50%;top:-40%;width:70%;height:120%;transform:translateX(-50%);background:conic-gradient(from 180deg at 50% 0%,transparent 40%,rgba(255,255,255,.06) 50%,transparent 60%);pointer-events:none}
.k-scope .k-v5-vitrina__fila{position:relative;display:flex;justify-content:center;align-items:flex-end;gap:10px}
.k-scope .k-v5-vitrina__b{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;cursor:pointer;color:var(--k-text);font:inherit;padding:6px;border-radius:18px;transition:transform .2s var(--k-ease-out)}
.k-scope .k-v5-vitrina__b svg{filter:drop-shadow(0 12px 18px rgba(0,0,0,.5))}
.k-scope .k-v5-vitrina__b.k-is-main{order:0;transform:translateY(-6px)}
.k-scope .k-v5-vitrina__b span{font-size:13px;font-weight:900;max-width:110px;line-height:1.15}
@media (hover:hover){ .k-scope .k-v5-vitrina__b:hover{transform:translateY(-8px)} }
.k-scope .k-v5-vitrina__b:focus-visible{outline:3px solid var(--k-focus);outline-offset:2px}
.k-scope .k-v5-vitrina__pie{position:relative;margin:10px 0 0;font-size:13px;font-weight:800;color:var(--k-award-text)}
.k-scope .k-v5-vitrina__fila .k-v5-vitrina__b:nth-child(1){order:2}.k-scope .k-v5-vitrina__fila .k-v5-vitrina__b:nth-child(2){order:1}.k-scope .k-v5-vitrina__fila .k-v5-vitrina__b:nth-child(3){order:3}
html.v2[data-theme="dark"] .k-scope .k-coll{background:var(--k-surface);border-color:var(--k-line)}
html.v2[data-theme="dark"] .k-scope .k-badge.k-is-locked svg{opacity:.55;filter:grayscale(1)}
html.v2[data-theme="dark"] .k-scope .k-badge:not(.k-is-locked) svg{filter:drop-shadow(0 8px 14px rgba(0,0,0,.45))}
html.v2[data-theme="dark"] .k-scope .k-next-badge{background:radial-gradient(100% 120% at 0% 0%,rgba(142,116,255,.22),transparent 60%),var(--k-surface-2);border:1px solid rgba(142,116,255,.35)}
@media (prefers-reduced-motion:reduce){ .k-scope .k-v5-vitrina__b{transition:none} }

/* ---------- 10. Momentos que comunican algo ---------- */
/* Cambio de ejercicio: el nuevo entra suave (sin bloquear: 260 ms, sin retraso) */
html.v2 .session-card .question-block,html.v2 .session-card .q-card,html.v2 .ac-card-act{animation:v5-entra .26s var(--k-ease-out,ease-out) both}
/* Acierto: la corrección aparece con un pequeño impulso y la marca se dibuja */
html.v2 .feedback.show.ok,html.v2 .ac-fb.is-ok{animation:v5-acierto .42s cubic-bezier(.34,1.56,.64,1) both}
html.v2 .feedback.show.ok .fb-head svg,html.v2 .ac-fb.is-ok .ac-fb-h::before{animation:v5-marca .5s cubic-bezier(.34,1.56,.64,1) .08s both}
@keyframes v5-acierto{0%{opacity:0;transform:translateY(6px) scale(.98)}100%{opacity:1;transform:none}}
@keyframes v5-marca{0%{transform:scale(0) rotate(-20deg)}100%{transform:none}}
/* Error: entra con calma (educativo, no castigo); la sacudida corta queda solo en la opción elegida */
html.v2 .feedback.show.bad,html.v2 .ac-fb.is-bad{animation:v5-entra .32s var(--k-ease-out,ease-out) both}
/* Profe Leo en la corrección: su foto aparece primero */
html.v2 .v2-leo-tip img{animation:v5-marca .4s cubic-bezier(.34,1.56,.64,1) both}
/* Lección completa: el tramo de esta lección se llena */
.k-scope .k-v5-avance{margin:4px 0 12px}
.k-scope .k-v5-avance small{display:block;margin-top:6px;font-size:13px;font-weight:800;color:var(--k-text-2)}
.k-scope .k-v5-segs--fin i.k-is-new{background:var(--k-surface-3);position:relative;overflow:hidden}
.k-scope .k-v5-segs--fin i.k-is-new::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,#4F6BFF,#7B8FFF);transform-origin:0 50%;animation:v5-crece .9s var(--k-ease-out) .35s both}
.k-scope .k-v5-res-riso{position:absolute;right:6px;top:-30px;pointer-events:none}
.v2-results .v2-results__top{position:relative}
/* Insignia ganada: rayos de luz que giran despacio unos segundos y Riso celebra */
.k-scope.k-v5-premio{position:relative;min-height:190px}
.k-scope .k-v5-rayos{position:absolute;left:50%;top:50%;width:300px;height:300px;margin:-150px 0 0 -150px;border-radius:50%;pointer-events:none;
  background:repeating-conic-gradient(from 0deg,rgba(255,215,114,.20) 0deg 10deg,transparent 10deg 30deg);-webkit-mask:radial-gradient(closest-side,#000 30%,transparent);mask:radial-gradient(closest-side,#000 30%,transparent);
  animation:v5-gira 9s linear 1 both,v5-aparece .6s ease-out both}
.k-scope .k-v5-premio .k-emblem,.k-scope .k-v5-premio > svg{position:relative}
.k-scope .k-v5-premio__riso{position:absolute;right:calc(50% - 170px);bottom:-6px}
@keyframes v5-gira{to{transform:rotate(120deg)}}
@keyframes v5-aparece{from{opacity:0;transform:scale(.6)}}
@media (max-width:420px){ .k-scope .k-v5-premio__riso{right:4px} .k-scope .k-v5-res-riso{top:-24px} }
@media (prefers-reduced-motion:reduce){
  html.v2 .session-card .question-block,html.v2 .session-card .q-card,html.v2 .ac-card-act,html.v2 .feedback.show.ok,html.v2 .ac-fb.is-ok,html.v2 .feedback.show.bad,html.v2 .ac-fb.is-bad,
  html.v2 .feedback.show.ok .fb-head svg,html.v2 .v2-leo-tip img,.k-scope .k-v5-rayos,.k-scope .k-v5-segs--fin i.k-is-new::after{animation:none}
}
.k-scope .k-v5-big--sm{font-size:28px;line-height:1.1;display:block;max-width:15ch}
/* La misión hereda colores pensados para el bloque azul: en la escena nueva el texto sigue al tema (claro y oscuro) */
.k-scope .v2-next.k-v5-mision h2{color:var(--k-text)!important}
.k-scope .v2-next.k-v5-mision p.v2-next__why{color:var(--k-text-2);background:color-mix(in srgb,var(--k-text) 4%,transparent)}
.k-scope .v2-next.k-v5-mision p{color:var(--k-text-2);max-width:none}
.k-scope .v2-next.k-v5-mision .v2-next__alt{color:var(--k-brand-text)}
html:not([data-theme="dark"]) .k-scope .k-v5-semana,html:not([data-theme="dark"]) .k-scope .k-v5-viaje,html:not([data-theme="dark"]) .k-scope .k-v5-vitrina{box-shadow:0 16px 40px -28px rgba(27,32,48,.35)}

/* ---------- Fase 3 · Inicio compacto en el teléfono: el día cabe en una fila (meta y racha); la semana vive en Progreso ---------- */
@media (max-width:1023px){
  .k-scope .k-v5-dia{flex-direction:row;align-items:center;gap:12px;padding:10px 14px;border-radius:18px}
  .k-scope .k-v5-dia__meta{flex:1;min-width:0;gap:12px}
  .k-scope .k-v5-ring{width:46px;height:46px}
  .k-scope .k-v5-dia__meta b{font-size:22px}
  .k-scope .k-v5-dia__meta small{font-size:11px}
  .k-scope .k-v5-dia__meta em{font-size:12px}
  .k-scope .k-v5-dia__sem{padding:0;border:0;flex:none}
  .k-scope .k-v5-dia__sem .k-week{display:none}
  .k-scope .k-v5-dia__racha{padding:8px 10px;border-radius:14px;background:rgba(255,138,51,.10);font-size:13px;white-space:nowrap}
  .k-scope .k-v5-racha-t{display:none}
  .k-scope .k-v5-hi .v2-sub{margin-top:2px}
  html.v2.v2-app .k-scope .k-v5-hi .v2-h1{font-size:clamp(30px,8.4vw,40px)!important}
  .k-scope .v2-home.k-v5-home{gap:14px}
}

/* ---------- Fase 3 · Academia: primero continuar; recorrido compacto; escritorio en dos columnas ---------- */
.k-scope .k-v5-route__grid{display:flex;flex-direction:column;gap:14px}
.k-scope .k-v5-route__etapas{display:flex;flex-direction:column;gap:10px}
.k-scope .k-v5-hi--comp .v2-h1{font-size:clamp(28px,7vw,40px)}
/* Recorrido compacto: tres etapas en una fila, objetivo y avance debajo */
.k-scope .k-v5-viaje--comp{padding:14px 16px;gap:10px;border-radius:22px}
.k-scope .k-v5-viaje--comp .k-v5-viaje__track{flex-direction:row;gap:0}
.k-scope .k-v5-viaje--comp .k-v5-viaje__st{flex:1;flex-direction:column;align-items:flex-start;gap:6px;padding:0 6px 0 0;min-width:0}
.k-scope .k-v5-viaje--comp .k-v5-viaje__st:not(:last-child)::before{left:36px;right:6px;top:15px;bottom:auto;width:auto;height:3px}
.k-scope .k-v5-viaje--comp .k-v5-viaje__node{width:32px;height:32px;font-size:13px}
.k-scope .k-v5-viaje--comp .k-v5-viaje__node b{font-size:11px}
.k-scope .k-v5-viaje--comp .k-v5-viaje__t small{font-size:10px}
.k-scope .k-v5-viaje--comp .k-v5-viaje__t b{font-size:14px;line-height:1.15}
.k-scope .k-v5-viaje--comp .k-v5-viaje__t em{font-size:11.5px;line-height:1.25}
.k-scope .k-v5-viaje--comp .k-v5-viaje__meta{font-size:13px}
.k-scope .k-v5-viaje--comp .v2-route-sum b{font-size:15px}
/* Evaluación disponible: acceso directo, violeta (insignias) */
.k-scope .k-v5-eval__a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:20px;text-decoration:none;color:var(--k-text);
  background:radial-gradient(110% 120% at 0% 0%,rgba(142,116,255,.20),transparent 60%),var(--k-surface);border:1px solid color-mix(in srgb,var(--k-award) 40%,var(--k-line))}
.k-scope .k-v5-eval__em{flex:none;width:52px;height:52px}
.k-scope .k-v5-eval__t{flex:1;min-width:0}
.k-scope .k-v5-eval__t small{display:block;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--k-award-text)}
.k-scope .k-v5-eval__t b{display:block;font-size:16px;font-weight:900;line-height:1.2}
.k-scope .k-v5-eval__t em{display:block;font-style:normal;font-size:13px;font-weight:700;color:var(--k-text-2)}
.k-scope .k-v5-eval__a .k-btn{flex:none;margin-bottom:3px}
@media (max-width:420px){ .k-scope .k-v5-eval__a{flex-wrap:wrap} .k-scope .k-v5-eval__a .k-btn{width:100%} }
.k-scope .k-v5-eval--main .k-v5-eval__a{padding:18px}
.k-scope .k-v5-crow-eval{margin:0 12px 0 0;flex:none;align-self:center}
.k-scope .v2-crow.is-eval{display:flex;align-items:center}
/* Etapa aprobada: su cabecera lleva la marca de completada */
html.v2 .k-scope .v2-stage.is-aprobada > summary{box-shadow:inset 4px 0 0 var(--k-ok)}
.k-scope .v2-stage.is-aprobada .v2-stage__pill{background:var(--k-ok-tint)!important;color:var(--k-ok-text)!important}
html.v2[data-theme="dark"] .k-scope .v2-stage > summary{background:radial-gradient(120% 160% at 0% 0%,color-mix(in srgb,var(--k-st) 18%,transparent),transparent 45%),var(--k-surface-2)}
html.v2[data-theme="dark"] .k-scope .v2-stage__dots .v2-dot{background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.3)}
html.v2[data-theme="dark"] .k-scope .v2-stage__dots .v2-dot--won{background:var(--k-st)}
/* Escritorio: la ruta deja de ser una columna estrecha. Izquierda continuar y etapas; derecha el recorrido (fijo al desplazar) */
@media (min-width:1100px){
  /* margin auto: con el ancho limitado, el contenedor se centra en el espacio que deja la barra lateral (antes quedaba pegado a ella en pantallas de 1440 px o más) */
  html.v2.v2-app .ac-wrap:has(> .k-v5-ancho),html.v2.v2-app main:has(> .k-v5-route){max-width:calc(1060px + 2 * var(--v2-pad))!important;margin-left:auto!important;margin-right:auto!important}
  .k-scope .k-v5-route__grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);grid-template-areas:"m v" "e v" "s v";gap:16px 24px;align-items:start}
  .k-scope .k-v5-route__mision{grid-area:m}
  .k-scope .k-v5-route__grid > [data-v5-eval]{grid-area:e}
  .k-scope .k-v5-route__grid > .k-v5-viaje{grid-area:v;position:sticky;top:calc(var(--v2-top-h,56px) + 16px)}
  .k-scope .k-v5-route__etapas{grid-area:s}
  .k-scope .k-v5-viaje--comp .k-v5-viaje__track{flex-direction:column}
  .k-scope .k-v5-viaje--comp .k-v5-viaje__st{flex-direction:row;align-items:flex-start;gap:12px;padding:0 0 12px}
  .k-scope .k-v5-viaje--comp .k-v5-viaje__st:not(:last-child)::before{left:15px;right:auto;top:36px;bottom:2px;width:3px;height:auto}
  .k-scope .k-v5-viaje--comp .k-v5-viaje__t b{font-size:16px}
  .k-scope .k-v5-viaje--comp .k-v5-viaje__t em{font-size:13px}
}
/* Sin repetir: los aprobados por etapa están en cada etapa; el recorrido dice dónde estás y cuánto llevas en total */
.k-scope .k-v5-viaje--comp .k-v5-viaje__t em{display:none}
.k-scope .k-v5-mision .k-v5-profe{max-width:calc(100% - 120px)}
@media (min-width:1024px){ .k-scope .k-v5-mision .k-v5-profe{max-width:calc(100% - 170px)} }
/* Logros: insignia con evaluación lista */
.k-scope .k-badge.is-ready svg{opacity:.9!important;filter:none!important}
.k-scope .k-v5-lista{display:inline-block;margin-top:2px;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:900;background:var(--k-award-tint);color:var(--k-award-text)}
html.v2[data-theme="dark"] .k-scope .k-badge.is-ready{background:radial-gradient(closest-side,rgba(142,116,255,.16),transparent)}
.k-scope .k-next-badge .k-bar__fill{background:var(--k-award)!important}
.k-scope .k-v5-nb-cta{margin-top:10px}
.k-scope .k-next-badge .k-bar__fill{background:var(--k-award)!important}
.k-scope .k-v5-nb-cta{margin-top:10px}

/* ---------- Fase 3 · Progreso en teléfonos pequeños: las tres métricas como filas legibles ---------- */
@media (max-width:380px){
  .k-scope .k-v5-aprende{grid-template-columns:1fr;gap:8px}
  .k-scope .k-v5-met{display:grid;grid-template-columns:72px 1fr;grid-template-areas:"v l" "v b" "v s";column-gap:12px;row-gap:3px;align-items:center;padding:12px 14px}
  .k-scope .k-v5-met__v{grid-area:v;font-size:28px}
  .k-scope .k-v5-met__l{grid-area:l;font-size:14px}
  .k-scope .k-v5-met .k-v5-bar{grid-area:b}
  .k-scope .k-v5-met__s{grid-area:s}
  .k-scope .k-v5-insig__shelf > *{width:34px;height:34px;margin-right:-14px}
  .k-scope .k-v5-insig__shelf > *:nth-child(n+4){display:none}
  .k-scope .k-v5-insig{gap:10px;padding:12px 14px}
  .k-scope .k-v5-big{font-size:46px}
}
/* Fase 6 · icono protagonista (piloto): sin baldosa; el volumen lo da el propio icono */
.k-scope .k-v5-mision__art--hero{background:none;box-shadow:none;border-radius:0;width:96px;height:96px;transform:rotate(-4deg);filter:drop-shadow(0 12px 18px rgba(0,0,0,.35))}
.k-scope .k-v5-mision__art--hero svg{width:96px!important;height:96px!important}
@media (min-width:1100px){ .k-scope .k-v5-mision__art--hero,.k-scope .k-v5-mision__art--hero svg{width:120px!important;height:120px!important} }
/* Fase 6 · iconos protagonistas en tarjetas (Practicar, Inicio): sin baldosa de color; el icono trae su propio volumen */
.k-scope .v2-task__ic--hero{background:none!important;box-shadow:none!important;border-radius:0}
.k-scope .v2-task__ic--hero svg.ico6,.k-scope .v2-task__ic--hero svg.k-ico6{width:50px;height:50px;max-width:none;display:block;margin:-3px}
.k-scope .k-v5-tile .v2-task__ic--hero svg.ico6,.k-scope .k-v5-tile .v2-task__ic--hero svg.k-ico6{width:56px;height:56px;max-width:none;margin:-6px}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .k-scope a:hover > .v2-task__ic--hero svg,.k-scope button:hover > .v2-task__ic--hero svg{transform:translateY(-2px) rotate(-3deg);transition:transform .18s cubic-bezier(.2,1.3,.4,1)}
}
.k-scope .k-v2-perfil__sub,.k-scope .v2-perfil__sub{margin:14px 4px 6px;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--k-text-3)}
/* Fase 7 · Iconos protagonistas definitivos (imágenes WebP de v6-iconos.js · iconoLeo). Hueco reservado: sin saltos. */
.k-hico{display:inline-block;flex:0 0 auto;width:var(--k-hico,48px);height:var(--k-hico,48px);line-height:0;position:relative}
.k-hico__img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;-webkit-user-drag:none;user-select:none}
.k-hico__img--oscuro{display:none}
html[data-theme="dark"] .k-hico__img--claro{display:none}
html[data-theme="dark"] .k-hico__img--oscuro{display:block}
/* en oscuro, una sombra de contacto apenas visible separa el volumen del fondo (sin halo) */
html[data-theme="dark"] .k-hico__img:not(.k-hico__img--oscuro){filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
.k-scope .v2-task__ic--hero .k-hico{width:50px;height:50px;margin:-3px}
.k-scope .k-v5-tile .v2-task__ic--hero .k-hico{width:56px;height:56px;margin:-6px}
.k-scope .k-v5-mision__art--hero .k-hico{width:100%!important;height:100%!important}
.k-hico--fb svg{width:100%;height:100%}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .k-scope a:hover > .v2-task__ic--hero .k-hico,.k-scope button:hover > .v2-task__ic--hero .k-hico{transform:translateY(-2px) rotate(-3deg);transition:transform .18s cubic-bezier(.2,1.3,.4,1)}
}
/* Fase 8: cursos gratis a la vista en Mi ruta (cuenta gratis o visitante), sin cambiar el orden de la ruta */
.k-scope .k-v5-gratis{border:1px solid var(--k-line,#e3e6ef);border-radius:20px;padding:12px 14px;margin:0 0 14px;background:var(--k-surface,#fff)}
.k-scope .k-v5-gratis__t{margin:0 0 8px;font-size:14px;color:var(--k-text-2,#4b5263)}
.k-scope .k-v5-gratis__l{display:flex;flex-wrap:wrap;gap:8px}
.k-scope .k-v5-gratis__c{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 200px;padding:8px 10px;border-radius:14px;border:1px solid var(--k-line,#e3e6ef);text-decoration:none;color:var(--k-text,#1f2430)}
.k-scope .k-v5-gratis__c span{display:flex;flex-direction:column;min-width:0;font-weight:700}
.k-scope .k-v5-gratis__c small{font-weight:400;color:var(--k-text-2,#4b5263)}
.k-scope .k-v5-gratis__c svg{flex:none;width:36px;height:36px}

/* 320 px (moviles pequenos): la barra inferior de 5 botones y la cabecera de Mi ruta no deben ensanchar la pagina. */
@media (max-width:359px){
  .k-scope .k-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
  .k-scope .k-nav__item{min-width:0;font-size:10px;letter-spacing:0}
  .k-scope .k-nav__label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .k-scope .k-v5-hi,.k-scope .k-v5-route__grid,.k-scope .k-v5-route__grid > *{min-width:0;max-width:100%}
  .k-scope .k-v5-hi .v2-h1{overflow-wrap:anywhere}
  /* Tarjeta «Tu clase de hoy»: emblema más pequeño para que el título y el botón respiren */
  .k-scope .k-v5-mision__art,.k-scope .k-v5-mision__art svg{width:72px;height:72px}
  .k-scope .k-v5-mision h2{max-width:calc(100% - 68px);font-size:24px}
  .k-scope .k-v5-mision .btn{font-size:16px;padding-left:12px;padding-right:12px}
}
