/* Plataforma Tokenín · un solo estilo para toda la app:
   fondo papel, piezas blancas con borde de tinta y sombra dura, acentos voltio y cian.
   Design system Tokenín: tinta, voltio, cian, coral (coral solo para error). */
:root {
  --tinta: #15123b;
  --tinta-alta: #231f5c;
  --linea: #4a4499;
  --papel: #fff6e5;
  --papel-2: #f6ebd3;
  --papel-tenue: #b8b3e3;
  --blanco: #ffffff;
  --voltio: #c8ff3d;
  --cian: #45d9f5;
  --cian-suave: #dff8ff;
  --coral: #ff6b57;
  --coral-suave: #ffe1dc;
  --gris: #5d5891;
  --sombra: #0b0924;
  --r-chip: 12px;
  --r-card: 28px;
  --display: "Unbounded", system-ui, sans-serif;
  --texto: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --borde: 3px solid var(--tinta);
  --dura: 5px 5px 0 var(--tinta);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--texto); font-weight: 500; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
a { color: var(--tinta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--linea); }
button { font-family: var(--texto); font-size: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.12; }
p { margin: 0; line-height: 1.5; }
strong { color: var(--tinta); box-shadow: inset 0 -0.45em 0 var(--voltio); padding: 0 2px; }

.cargando { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--gris); }
.noscript { padding: 24px; }

/* ---------- Tokenín ---------- */
.tokenin { position: relative; display: inline-block; width: var(--t, 64px); height: var(--t, 64px); flex: none; }
.tokenin .detras { position: absolute; inset: 0; transform: translate(22%, -14%) rotate(10deg); border-radius: 28%; background: var(--cian); border: 4px solid var(--sombra); }
.tokenin .cuerpo { position: absolute; inset: 0; border-radius: 28%; background: var(--voltio); border: 4px solid var(--sombra); box-shadow: 4px 4px 0 var(--sombra); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12%; }
.tokenin .ojos { display: flex; gap: 22%; width: 100%; justify-content: center; }
.tokenin .ojo { width: 11%; height: calc(var(--t, 64px) * 0.24); min-width: 5px; border-radius: 99px; background: var(--tinta); }
.tokenin .boca { width: 26%; height: calc(var(--t, 64px) * 0.07); min-height: 3px; border-radius: 2px; background: var(--tinta); animation: parpadeo 1.1s steps(2) infinite; }
.tokenin.contento .ojo { height: calc(var(--t, 64px) * 0.12); border-radius: 99px 99px 0 0; }
.tokenin.contento { animation: salto 0.5s ease; }
@keyframes salto { 40% { transform: translateY(-8px) rotate(-4deg); } }
@keyframes parpadeo { 50% { opacity: 0.2; } }
.tokenin-mini { width: 40px; height: 40px; border-radius: 12px; background: var(--voltio); border: 3px solid var(--sombra); animation: rebote 0.9s ease-in-out infinite alternate; }
@keyframes rebote { to { transform: translateY(-8px); } }

/* ---------- Estructura ---------- */
.pantalla { min-height: 100dvh; display: flex; flex-direction: column; }
.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.estrecho { max-width: 600px; }
.cabecera { border-bottom: var(--borde); background: var(--papel); position: sticky; top: 0; z-index: 5; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); font-family: var(--display); font-weight: 700; font-size: 20px; }
.pastillas { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pastilla { background: var(--blanco); border: var(--borde); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; white-space: nowrap; color: var(--tinta); text-decoration: none; }
.pastilla.mono { font-family: var(--mono); font-weight: 600; background: var(--tinta); color: var(--voltio); border-color: var(--tinta); }
a.pastilla:hover { background: var(--cian-suave); color: var(--tinta); }
.punto { color: var(--coral); }
.enlace-nav { color: var(--tinta); text-decoration: none; font-weight: 700; padding: 8px 10px; }
.enlace-nav:hover { text-decoration: underline; }
@media (max-width: 560px) { .enlace-nav { display: none; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: var(--borde); border-radius: 999px; padding: 13px 24px; font-weight: 800; font-size: 17px; text-decoration: none; min-height: 52px; transition: transform 0.08s, box-shadow 0.08s; }
.btn-voltio { background: var(--voltio); color: var(--tinta); box-shadow: 4px 4px 0 var(--tinta); }
.btn-voltio:hover { color: var(--tinta); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinta); }
.btn-voltio:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--tinta); }
.btn-voltio:disabled { background: var(--papel-2); color: #8f89b8; border-color: #c9bfa6; box-shadow: none; transform: none; }
.btn-tinta { background: var(--tinta); color: var(--papel); }
.btn-tinta:hover { color: var(--papel); background: var(--tinta-alta); }
.btn-borde { background: var(--blanco); color: var(--tinta); box-shadow: 4px 4px 0 var(--tinta); }
.btn-borde:hover { color: var(--tinta); background: var(--cian-suave); }
.btn-pequeno { min-height: 42px; padding: 8px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--tinta); }
.btn-texto { background: none; border: 0; color: var(--gris); font-weight: 700; padding: 10px; text-decoration: underline; }
.btn-ancho { width: 100%; }

/* ---------- Piezas ---------- */
.tarjeta, .tarjeta-papel, .lienzo, .tarjeta-item { background: var(--blanco); border: var(--borde); border-radius: var(--r-card); box-shadow: var(--dura); padding: 24px; }
.tarjeta-papel { background: var(--voltio); }
.tarjeta.oscura { background: var(--tinta); color: var(--papel); }
.tarjeta.oscura .etiqueta, .tarjeta.oscura .tenue, .tarjeta.oscura .nota { color: var(--papel-tenue); }
.tarjeta.oscura strong { color: var(--tinta); }
.etiqueta { font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.tenue, .nota { color: var(--gris); }
.nota { font-size: 13px; }
.pequeno { font-size: 14px; }
.chip { display: inline-block; font-family: var(--mono); font-weight: 600; padding: 5px 11px; border-radius: var(--r-chip); background: var(--cian); color: var(--tinta); border: 2px solid var(--tinta); box-shadow: 3px 3px 0 var(--tinta); white-space: pre; }
.chip.v { background: var(--voltio); }
.sello { align-self: flex-start; background: var(--voltio); color: var(--tinta); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; border: 2px solid var(--tinta); white-space: nowrap; }
.sello.cian { background: var(--cian); }
.sello.apagado { background: var(--papel-2); color: var(--gris); border-color: #c9bfa6; }
.barra { height: 14px; background: var(--papel-2); border: 2px solid var(--tinta); border-radius: 999px; overflow: hidden; display: block; }
.barra > i { display: block; height: 100%; background: var(--voltio); transition: width 0.45s cubic-bezier(.3,1.4,.5,1); }
.pila { display: flex; flex-direction: column; gap: 16px; }
.fila { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.texto-grande { font-size: 20px; line-height: 1.55; }
.enunciado { font-size: 20px; font-weight: 800; line-height: 1.35; }
.campo { width: 100%; font: inherit; font-size: 17px; padding: 14px 18px; border-radius: 16px; border: var(--borde); background: var(--blanco); color: var(--tinta); }
.campo::placeholder { color: #8f89b8; }
.campo:focus { outline: none; box-shadow: 0 0 0 4px var(--cian); }
textarea.campo { min-height: 96px; resize: vertical; }
.formulario { display: flex; flex-direction: column; gap: 12px; }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.casilla input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tinta); flex: none; }
.pie { margin-top: auto; border-top: var(--borde); padding: 20px 0; font-size: 14px; color: var(--gris); }
.pie .contenedor { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.contador { font-family: var(--mono); font-weight: 600; font-size: 18px; }
.piezas { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.piezas .chip:nth-child(3n+2) { background: var(--voltio); }
.piezas .chip:nth-child(3n) { background: var(--blanco); }
.ventajas { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.ventajas li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.ventajas li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 4px; background: var(--voltio); border: 2px solid var(--tinta); }
.estrellas { font-family: var(--mono); letter-spacing: 2px; }
.pop { animation: pop 0.35s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }
.agita { animation: agita 0.35s; }
@keyframes agita { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.aviso { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 30; background: var(--tinta); color: var(--papel); font-weight: 700; padding: 12px 18px; border-radius: 14px; box-shadow: 4px 4px 0 var(--voltio); max-width: calc(100% - 32px); }

/* ---------- Portada ---------- */
.heroe { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 72px; }
.heroe h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
.heroe h1 span { box-shadow: inset 0 -0.35em 0 var(--voltio); }
.heroe .entrada { font-size: 19px; color: var(--gris); max-width: 540px; }
@media (max-width: 860px) { .heroe { grid-template-columns: 1fr; padding-block: 28px 48px; gap: 36px; } }
.escena { position: relative; min-height: 460px; display: grid; place-items: center; }
.movil { width: 290px; background: var(--tinta); color: var(--papel); border: 4px solid var(--sombra); border-radius: 40px; box-shadow: 10px 10px 0 var(--cian); padding: 22px 18px; display: flex; flex-direction: column; gap: 16px; transform: rotate(-3deg); }
.movil .etiqueta { color: var(--papel-tenue); }
.movil-cab { display: flex; align-items: center; gap: 10px; }
.mini-barra { flex: 1; height: 10px; border-radius: 99px; background: var(--tinta-alta); overflow: hidden; display: block; }
.mini-barra i { display: block; height: 100%; background: var(--voltio); border-radius: 99px; }
.chip-xp { font-family: var(--mono); color: var(--voltio); font-size: 13px; }
.movil-frase { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; }
.movil-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mb { text-align: center; font-weight: 800; letter-spacing: 0.06em; font-size: 14px; padding: 14px 6px; border-radius: 16px; border: 3px solid var(--sombra); background: var(--tinta-alta); }
.mb-ok { background: var(--voltio); color: var(--tinta); box-shadow: 3px 3px 0 var(--sombra); }
.movil-panel { background: var(--voltio); color: var(--tinta); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.flota { position: absolute; }
.f1 { top: 18px; right: 6%; animation: flotar 4s ease-in-out infinite; }
.f2 { bottom: 40px; left: 0; transform: rotate(-6deg); }
.f3 { top: 70px; left: 2%; transform: rotate(4deg); }
@keyframes flotar { 50% { transform: translateY(-10px) rotate(4deg); } }
@media (max-width: 860px) { .escena { min-height: 420px; } .f3 { top: 0; } }
.banda { background: var(--blanco); border-block: var(--borde); }
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; padding-block: 48px; }
.demo .tarjeta { background: var(--papel); }
.demo h2, .seccion h2 { font-size: clamp(26px, 3.5vw, 36px); }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }
.seccion { padding-block: 64px; display: flex; flex-direction: column; gap: 28px; }
.cabeza-seccion { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.rejilla-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rejilla-3 h3 { font-size: 20px; }
@media (max-width: 900px) { .rejilla-3 { grid-template-columns: 1fr; } }
.num-grande { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; -webkit-text-stroke: 2px var(--tinta); color: var(--voltio); }
.conmutador { display: inline-flex; background: var(--papel-2); border: 2px solid var(--tinta); border-radius: 999px; padding: 3px; align-self: flex-start; }
.conmutador button { border: 0; background: none; color: var(--gris); font-weight: 800; padding: 7px 16px; border-radius: 999px; }
.conmutador button.activo { background: var(--tinta); color: var(--voltio); }
.ejemplo { background: var(--cian-suave); border: 2px solid var(--tinta); border-radius: 16px; padding: 14px; font-weight: 700; }
.camino-portada { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.paso-camino { display: flex; gap: 18px; align-items: flex-start; position: relative; padding-bottom: 28px; }
.paso-camino:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 4px; background: var(--tinta); border-radius: 2px; opacity: 0.25; }
.paso-camino h3 { font-size: 20px; }
.hito { flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; background: var(--papel-2); color: var(--gris); border: 3px dashed #b3a986; }
.paso-camino.listo .hito { background: var(--voltio); color: var(--tinta); border: var(--borde); box-shadow: 4px 4px 0 var(--tinta); }
.rejilla-2-igual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
@media (max-width: 860px) { .rejilla-2-igual { grid-template-columns: 1fr; } }
.niveles { display: flex; flex-wrap: wrap; gap: 8px; }
.nivel { font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--blanco); border: 2px solid var(--tinta); }
.nivel.actual { background: var(--tinta); color: var(--voltio); }
.pregunta { background: var(--blanco); border: var(--borde); border-radius: 18px; padding: 16px 18px; }
.pregunta summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pregunta summary::after { content: "+"; font-family: var(--mono); }
.pregunta[open] summary::after { content: "–"; }
.pregunta p { margin-top: 10px; }

/* ---------- Bienvenida y perfil ---------- */
.perfiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opcion-perfil { text-align: left; background: var(--blanco); border: var(--borde); box-shadow: 4px 4px 0 var(--tinta); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.opcion-perfil b { font-family: var(--display); font-size: 18px; }
.opcion-perfil span { color: var(--gris); font-size: 14px; }
.opcion-perfil[aria-pressed="true"] { background: var(--voltio); }

/* ---------- Inicio: camino de lecciones ---------- */
.inicio { padding-block: 28px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .inicio { grid-template-columns: 1fr; } }
.lateral { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
@media (max-width: 900px) { .lateral { position: static; } }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dia { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--gris); }
.dia i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--tinta); background: var(--blanco); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.dia.hecho i { background: var(--voltio); }
.dia.hoy i { box-shadow: 0 0 0 3px var(--cian); }
.unidad-bloque { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.cartel-unidad { border: var(--borde); border-radius: 22px; box-shadow: var(--dura); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--cian); }
.cartel-unidad.u2 { background: #ffd84d; }
.cartel-unidad.u3 { background: #ff9ecb; }
.cartel-unidad.u4 { background: var(--papel-tenue); }
.cartel-unidad h2 { font-size: 22px; }
.cartel-unidad.bloq { filter: saturate(0.35); }
.camino { position: relative; display: flex; flex-direction: column; gap: 26px; padding: 8px 0; }
.nodo-fila { display: flex; align-items: center; gap: 18px; }
.nodo-fila:nth-child(4n+2) { padding-left: 18%; }
.nodo-fila:nth-child(4n+3) { padding-left: 34%; }
.nodo-fila:nth-child(4n+4) { padding-left: 18%; }
.nodo { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 4px solid var(--tinta); background: var(--blanco); box-shadow: 0 7px 0 var(--tinta); display: grid; place-items: center; text-decoration: none; color: var(--tinta); font-family: var(--display); font-weight: 800; font-size: 22px; transition: transform 0.1s, box-shadow 0.1s; position: relative; }
.nodo:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--tinta); color: var(--tinta); }
.nodo:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--tinta); }
.nodo.hecho { background: var(--voltio); }
.nodo.actual { background: var(--cian); animation: latido 1.6s ease-in-out infinite; }
@keyframes latido { 50% { box-shadow: 0 7px 0 var(--tinta), 0 0 0 12px rgba(69, 217, 245, 0.3); } }
.nodo.bloqueado { background: var(--papel-2); border-color: #b3a986; box-shadow: 0 7px 0 #b3a986; color: #b3a986; pointer-events: none; }
.nodo-info { display: flex; flex-direction: column; gap: 4px; }
.nodo-info b { font-size: 17px; line-height: 1.25; }
.bocadillo { position: relative; background: var(--tinta); color: var(--voltio); font-weight: 800; padding: 8px 14px; border-radius: 12px; font-size: 14px; align-self: flex-start; }
.insignias { display: flex; flex-wrap: wrap; gap: 12px; }
.insignia { width: 88px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 700; }
.insignia .icono { width: 58px; height: 58px; border-radius: 18px; background: var(--voltio); border: var(--borde); box-shadow: 3px 3px 0 var(--tinta); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 15px; }
.insignia.no .icono { background: var(--papel-2); color: #b3a986; border: 3px dashed #b3a986; box-shadow: none; }
.insignia.no { color: var(--gris); }

/* ---------- Lección ---------- */
.leccion-cab { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.cerrar { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--blanco); border: var(--borde); display: grid; place-items: center; }
.cerrar svg { stroke: var(--tinta); }
.leccion-cab .barra { flex: 1; height: 18px; border-width: 3px; }
.xp-vivo { font-family: var(--mono); font-weight: 600; background: var(--tinta); color: var(--voltio); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.paso { display: flex; flex-direction: column; gap: 20px; padding-bottom: 160px; animation: entra 0.25s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.paso h2 { font-size: 26px; }
.lienzo { min-height: 160px; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lienzo-frase { min-height: 120px; }
.lienzo-caso { background: var(--cian-suave); }
.visual { min-height: 150px; border-radius: var(--r-card); background: var(--blanco); border: var(--borde); box-shadow: var(--dura); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 20px; }
.afirmacion { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.3; text-align: center; }
.opciones { display: flex; flex-direction: column; gap: 12px; }
.opcion { width: 100%; text-align: left; background: var(--blanco); color: var(--tinta); border: var(--borde); box-shadow: 4px 4px 0 var(--tinta); border-radius: 20px; padding: 14px 18px; font-size: 17px; font-weight: 700; line-height: 1.35; min-height: 60px; display: flex; align-items: center; gap: 12px; transition: transform 0.1s, box-shadow 0.1s; }
.opcion.centro { justify-content: center; letter-spacing: 0.04em; }
.opcion:not(:disabled):hover { background: #f4f1ff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--tinta); }
.opcion.elegida, .opcion.activa { background: var(--cian-suave); box-shadow: 0 0 0 4px var(--cian), 4px 4px 0 var(--tinta); }
.opcion.bien { background: var(--voltio); }
.opcion.mal { background: var(--coral); }
.opcion.fijada { color: var(--tinta); }
.letra { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--tinta); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; }
.opcion.elegida .letra, .opcion.bien .letra { background: var(--tinta); color: var(--papel); }
.columnas { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; align-items: start; }
.columnas .opciones { gap: 10px; }
.columnas .opcion { font-size: 15px; min-height: 56px; padding: 12px 14px; }
.frase-hueco { font-size: 21px; font-weight: 700; line-height: 1.45; }
.hueco { display: inline-block; min-width: 60px; background: var(--voltio); border-radius: 8px; padding: 0 8px; font-family: var(--mono); }
.prob { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.prob .barra { flex: 1; height: 16px; }
.prob .barra > i { background: var(--cian); }
.prob.top .barra > i { background: var(--voltio); }
.prob .pct { width: 52px; text-align: right; font-family: var(--mono); }
.prob .pal { width: 96px; }
.orden-hecho { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.orden-hecho div { display: flex; gap: 10px; align-items: center; background: var(--voltio); border: 2px solid var(--tinta); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.paso-n { width: 26px; height: 26px; border-radius: 8px; background: var(--tinta); color: var(--voltio); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; flex: none; }
.reloj { height: 12px; background: var(--papel-2); border: 2px solid var(--tinta); border-radius: 999px; overflow: hidden; }
.reloj > i { display: block; height: 100%; background: var(--coral); width: 100%; }

.panel-fijo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--papel); border-top: var(--borde); }
.panel-fijo .contenedor { padding: 0; }
.panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: var(--borde); animation: sube 0.22s ease; }
@keyframes sube { from { transform: translateY(100%); } }
.panel .contenedor { display: flex; flex-direction: column; gap: 12px; padding: 0; }
.panel.bien { background: var(--voltio); }
.panel.mal { background: var(--coral-suave); }
.panel.neutro { background: var(--cian-suave); }
.panel h3 { font-size: 20px; }
.panel strong { box-shadow: none; text-decoration: underline; }
.xp-ganado { margin-left: auto; font-family: var(--mono); background: var(--tinta); color: var(--voltio); padding: 6px 12px; border-radius: 999px; white-space: nowrap; animation: pop 0.4s ease; }

/* Lluvia de tokens al acertar */
.lluvia { position: fixed; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.lluvia span { position: absolute; bottom: 120px; font-family: var(--mono); font-weight: 600; font-size: 14px; padding: 4px 9px; border-radius: 10px; border: 2px solid var(--tinta); animation: vuela 1.1s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes vuela { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* Ilustraciones */
.tecleo { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tecleo .chip { opacity: 0; animation: aparece 0.3s ease forwards; }
@keyframes aparece { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.caja-ilus { border: 3px dashed var(--linea); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.flecha { font-family: var(--mono); font-weight: 600; }
.bucle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-weight: 800; }
.bucle span { background: var(--voltio); border: var(--borde); border-radius: 14px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--tinta); }
.bucle i { font-style: normal; font-family: var(--mono); }
.bucle .vuelta { font-size: 26px; animation: gira 2.5s linear infinite; display: inline-block; }
@keyframes gira { to { transform: rotate(360deg); } }

.movil-ilus { width: 100%; max-width: 330px; background: var(--tinta); border-radius: 30px; padding: 16px 12px 18px; color: var(--papel); margin: -6px; }
.movil-hora { font-family: var(--mono); font-size: 13px; text-align: center; margin-bottom: 12px; color: var(--papel-tenue); }
.rejilla-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 2px; }
.app { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--papel); padding: 4px; border-radius: 16px; }
.app-icono { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: var(--tinta); font-size: 17px; border: 3px solid transparent; transition: transform 0.15s; }
.app-nombre { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.app.elegida .app-icono { transform: scale(1.08); box-shadow: 0 0 0 3px var(--voltio); }
.app.es-ia .app-icono { box-shadow: 0 0 0 4px var(--voltio); }
.app.es-ia::after { content: "IA"; font-family: var(--mono); font-size: 11px; background: var(--voltio); color: var(--tinta); border-radius: 6px; padding: 1px 6px; }
.app.no-ia { opacity: 0.45; }
.app.fallo .app-icono { outline: 3px dashed var(--coral); outline-offset: 3px; }
.movil-ilus.chat { display: flex; flex-direction: column; gap: 14px; }
.burbuja { align-self: flex-end; background: var(--cian); color: var(--tinta); border-radius: 18px 18px 4px 18px; padding: 12px 14px; font-weight: 700; font-size: 18px; max-width: 95%; }
.cursor { display: inline-block; width: 2px; height: 1em; background: var(--tinta); margin-left: 2px; vertical-align: -2px; animation: parpadeo 1s steps(2) infinite; }
.sugerencias { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--tinta-alta); border-radius: 12px; overflow: hidden; }
.sugerencia { background: none; border: 0; border-right: 1px solid var(--linea); color: var(--papel); font-weight: 800; padding: 10px 4px 8px; font-size: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sugerencia small { font-family: var(--mono); font-size: 11px; color: var(--papel-tenue); font-weight: 600; }
.sugerencia:last-child { border-right: 0; }
.sugerencia:hover, .sugerencia:focus-visible { background: var(--voltio); color: var(--tinta); }
.sugerencia:hover small { color: var(--tinta); }
.teclas { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.teclas span { background: var(--tinta-alta); border-radius: 6px; text-align: center; font-size: 12px; padding: 8px 0; color: var(--papel-tenue); }

.tarjeta-item { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.caja-destino { background: var(--blanco); border: 3px dashed var(--tinta); border-radius: 22px; min-height: 150px; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: left; color: var(--tinta); }
.caja-destino:not(:disabled):hover { background: #f4f1ff; border-style: solid; }
.caja-destino.bien { background: var(--voltio); border-style: solid; }
.caja-destino.mal { background: var(--coral); border-style: solid; }
.contenido-caja { display: flex; flex-direction: column; gap: 6px; }
.mini { font-size: 12px; font-weight: 700; background: var(--papel); border: 2px solid var(--tinta); border-radius: 8px; padding: 3px 8px; }

.palabra-cortable { display: flex; align-items: stretch; justify-content: center; flex-wrap: nowrap; font-family: var(--mono); font-weight: 600; }
.letra-t { padding: 6px 1px; }
.hueco-corte { width: 12px; flex: none; border: 0; background: none; position: relative; padding: 0; }
.hueco-corte::before { content: ""; position: absolute; left: 5px; top: 10%; bottom: 10%; width: 2px; background: #d9d2bd; }
.hueco-corte:hover::before { background: var(--cian); width: 3px; }
.hueco-corte.cortado::before { background: var(--coral); width: 4px; left: 4px; top: 0; bottom: 0; }
.palabra-cortable.fija .hueco-corte { pointer-events: none; }
.deslizador { width: 100%; accent-color: var(--tinta); height: 28px; }
.frase-coste { font-weight: 800; font-size: 18px; }

/* Paso a paso (la IA escribiendo) */
.texto-ia { font-size: 22px; font-weight: 700; line-height: 1.5; min-height: 66px; }
.texto-ia .nueva { background: var(--voltio); border-radius: 6px; padding: 0 4px; animation: pop 0.35s ease; }
.candidatas { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.candidata { display: grid; grid-template-columns: 110px 1fr 52px; gap: 10px; align-items: center; font-weight: 700; background: none; border: 0; padding: 0; text-align: left; }
.candidata .barra { height: 22px; }
.candidata.ganadora .barra > i { background: var(--voltio); }
.candidata:not(.ganadora) .barra > i { background: var(--cian); }
.candidata.ganadora { animation: pop 0.4s ease; }
.candidata:not(:disabled):hover .barra { box-shadow: 0 0 0 3px var(--cian); }

/* Presupuesto de tokens */
.fragmentos { display: flex; flex-wrap: wrap; gap: 10px; }
.fragmento { background: var(--blanco); border: var(--borde); border-radius: 14px; padding: 10px 14px; font-weight: 700; box-shadow: 3px 3px 0 var(--tinta); text-align: left; }
.fragmento.elegida { background: var(--voltio); }
.fragmento.falta { outline: 3px dashed var(--coral); outline-offset: 3px; }
.depósito, .deposito { width: 100%; min-height: 70px; border: 3px dashed var(--linea); border-radius: 18px; padding: 12px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.medidor { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.medidor .barra { height: 20px; }
.medidor.pasado .barra > i { background: var(--coral); }

/* Compara idiomas */
.idiomas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.idioma { background: var(--blanco); border: var(--borde); border-radius: 20px; box-shadow: 4px 4px 0 var(--tinta); padding: 16px; display: flex; flex-direction: column; gap: 10px; text-align: left; color: var(--tinta); }
.idioma.elegida { background: var(--cian-suave); box-shadow: 0 0 0 4px var(--cian), 4px 4px 0 var(--tinta); }
.idioma.bien { background: var(--voltio); }
.idioma.mal { background: var(--coral); }
.idioma .piezas { justify-content: flex-start; }
.idioma .chip { font-size: 13px; padding: 3px 7px; box-shadow: 2px 2px 0 var(--tinta); }

/* Resultado */
.resultado { padding-block: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.resultado .grande { font-family: var(--display); font-weight: 800; font-size: 54px; -webkit-text-stroke: 2px var(--tinta); color: var(--voltio); }
.resultado .fila { justify-content: center; }

/* Páginas legales */
.legal { padding: 40px 20px 64px; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 20px; margin-top: 12px; }
.legal h3 { font-size: 16px; margin-top: 4px; }
.legal li { line-height: 1.5; margin-bottom: 6px; }

@media (max-width: 480px) {
  .afirmacion { font-size: 21px; }
  .columnas { grid-template-columns: 1fr; }
  .nodo { width: 72px; height: 72px; }
  .nodo-fila:nth-child(4n+3) { padding-left: 22%; }
  .nodo-fila:nth-child(4n+2), .nodo-fila:nth-child(4n+4) { padding-left: 11%; }
  .idiomas { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .tecleo .chip { opacity: 1; }
}

/* ---------- Unidad 2: mando de temperatura, detectar trozos, ventana de contexto ---------- */
.mando { width: 100%; accent-color: var(--tinta); height: 32px; cursor: pointer; }
.mando-valor { font-family: var(--mono); }
.salidas .chip { box-shadow: none; padding: 3px 9px; font-size: 14px; }
.mando-ilus { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.mando-pista { width: 180px; height: 16px; border: var(--borde); border-radius: 999px; background: var(--papel-2); position: relative; }
.mando-pista i { position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--voltio); border: var(--borde); animation: mando 3s ease-in-out infinite alternate; }
@keyframes mando { from { left: -6px; } to { left: calc(100% - 22px); } }
.texto-detecta { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.texto-detecta p { margin: 0; background: var(--blanco); border: var(--borde); border-radius: 18px; padding: 14px 16px; line-height: 2; font-size: 17px; }
.texto-detecta.como-mensaje p { background: var(--cian-suave); }
.trozo { font: inherit; color: inherit; background: none; border: 0; padding: 2px 4px; border-radius: 8px; cursor: pointer; text-align: left; box-shadow: inset 0 -2px 0 var(--papel-tenue); }
.trozo:hover { background: var(--papel-2); }
.trozo.elegida { background: var(--voltio); box-shadow: inset 0 0 0 2px var(--tinta); }
.trozo.es-malo { background: var(--coral-suave); box-shadow: inset 0 0 0 2px var(--coral); }
.trozo.elegida.es-malo { background: var(--voltio); box-shadow: inset 0 0 0 2px var(--tinta), 0 0 0 3px var(--coral); }
.trozo.fallo { text-decoration: line-through; text-decoration-color: var(--coral); }
.burbuja-ia { margin: 0; background: var(--blanco); border: var(--borde); border-radius: 16px; padding: 10px 14px; font-weight: 600; }
.burbuja-ia mark { background: var(--coral-suave); border-radius: 6px; padding: 0 4px; }
.ventana-ilus { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 8px; }
.burbuja-mini { background: var(--blanco); border: 2px solid var(--tinta); border-radius: 12px; padding: 4px 10px; font-size: 14px; font-weight: 600; }
.burbuja-mini.fuera { opacity: 0.35; }
.marco-ventana { position: absolute; left: -6px; right: -6px; top: 70px; bottom: -6px; border: 3px dashed var(--tinta); border-radius: 16px; font-size: 12px; font-weight: 800; padding: 2px 8px; display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none; }

/* ---------- Unidad 3: entrenar con textos, etapas de modelo a asistente ---------- */
.libros-ilus { gap: 6px; align-items: flex-end; }
.libros-ilus .chip { animation: entra 0.5s ease both; }
@keyframes entra { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.etapas-ilus { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fuentes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fuente { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--blanco); border: var(--borde); border-radius: 14px; cursor: pointer; box-shadow: 3px 3px 0 var(--tinta); }
.fuente span { font-size: 13px; color: var(--gris); font-weight: 600; }
.fuente.elegida { background: var(--voltio); }
.fuente:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinta); }
.etapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.etapa { font: inherit; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; background: var(--blanco); border: var(--borde); border-radius: 14px; cursor: pointer; text-align: center; }
.etapa .num { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--tinta); display: grid; place-items: center; font-family: var(--mono); }
.etapa.vista .num { background: var(--cian); }
.etapa.elegida { background: var(--voltio); }
.etapa:disabled { opacity: 0.45; cursor: not-allowed; }
.pregunta-usuario { margin: 0; align-self: flex-end; max-width: 85%; background: var(--cian-suave); border: var(--borde); border-radius: 16px 16px 4px 16px; padding: 8px 12px; font-weight: 600; }
.respuesta-ia { flex: 1; font-weight: 500; line-height: 1.45; }
.respuesta-ia.en-bruto { font-family: var(--mono); font-size: 14px; background: var(--papel-2); }
.histo-largo .prob .pal { width: 42%; flex: none; font-size: 15px; line-height: 1.2; }
.fila-respuesta { display: flex; gap: 10px; align-items: flex-start; flex-wrap: nowrap; }
.fila-respuesta .tokenin { flex: none; }
.respuesta-ia { min-width: 0; font-size: 16px; }

/* ---------- Plan Pro ---------- */
.nodo.candado { background: var(--papel-2); color: var(--tinta); }
.nodo.candado:hover { background: var(--voltio); }
.planes-pantalla { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; padding-bottom: 56px; max-width: 920px; }
.selector-intervalo { align-self: center; display: inline-flex; border: var(--borde); border-radius: 999px; background: var(--blanco); padding: 4px; gap: 4px; }
.selector-intervalo button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 10px 18px; background: none; color: var(--tinta); cursor: pointer; }
.selector-intervalo button[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }
.ahorro { background: var(--voltio); color: var(--tinta); border-radius: 999px; padding: 1px 8px; font-size: 13px; margin-left: 4px; }
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.plan { gap: 12px; }
.plan.destacado { box-shadow: 8px 8px 0 var(--tinta); outline: 4px solid var(--voltio); outline-offset: -10px; }
.precio { margin: 0; font-family: var(--display); font-weight: 800; font-size: 36px; }
.precio span { font-family: var(--texto); font-size: 16px; font-weight: 700; color: var(--gris); }
.ventajas { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.4; flex: 1; }
.plan .btn { align-self: stretch; text-align: center; }

/* ==========================================================================
   Paleta D · «Blanco limpio» (17/11/2026, decisión de Alex): la misma de la landing tokenin.es.
   Fondo blanco, tarjetas lila muy claro con borde suave, lima solo en botones principales,
   Tokenín y resaltados; tinta para los bloques destacados. Sobrescribe el estilo «papel» anterior.
   ========================================================================== */
:root {
  --papel: #ffffff;
  --papel-2: #f6f5fc;
  --lila: #e7e5f7;
  --suave: #d9d6ef;
  --borde: 2px solid var(--tinta);
  --dura: 3px 3px 0 var(--tinta);
}
html, body { background: #ffffff; }
.cabecera { background: #ffffff; border-bottom: 2px solid var(--suave); }
.pie { border-top: 2px solid var(--suave); }
.pastilla { border: 2px solid var(--suave); }
.pastilla.mono { border-color: var(--tinta); }

.tarjeta, .lienzo, .tarjeta-item { background: var(--papel-2); border: 2px solid var(--suave); box-shadow: none; }
.tarjeta-papel { background: var(--lila); border: 2px solid var(--suave); box-shadow: none; }
.tarjeta.oscura { background: var(--tinta); border-color: var(--tinta); box-shadow: 6px 6px 0 var(--voltio); }
.lienzo-caso { background: var(--lila); }

.cartel-unidad, .cartel-unidad.u2, .cartel-unidad.u3, .cartel-unidad.u4 { background: var(--papel-2); border: 2px solid var(--suave); border-left: 10px solid var(--cian); box-shadow: none; }
.cartel-unidad.u2 { border-left-color: var(--voltio); }
.cartel-unidad.u3 { border-left-color: #ff9ecb; }
.cartel-unidad.u4 { border-left-color: var(--papel-tenue); }

.btn-voltio, .btn-borde, .btn-pequeno { box-shadow: 3px 3px 0 var(--tinta); }
.btn-voltio:hover { box-shadow: 4px 4px 0 var(--tinta); }
.btn-voltio:disabled { border-color: var(--suave); }
.btn-borde:hover { background: var(--papel-2); }
.opcion, .opcion-perfil { box-shadow: 3px 3px 0 var(--tinta); }
.opcion:not(:disabled):hover { background: var(--papel-2); box-shadow: 4px 4px 0 var(--tinta); }
.opcion.elegida, .opcion.activa { box-shadow: 0 0 0 4px var(--cian), 3px 3px 0 var(--tinta); }

.nodo { border-width: 3px; box-shadow: 0 5px 0 var(--tinta); }
.nodo:hover { box-shadow: 0 7px 0 var(--tinta); }
.nodo.bloqueado { background: var(--papel-2); border-color: var(--suave); box-shadow: 0 5px 0 var(--suave); color: var(--papel-tenue); }
.nodo.candado { background: #ffffff; }
.barra { background: var(--lila); }
.sello.apagado { background: var(--papel-2); border-color: var(--suave); }

/* Planes: Pro en tinta con sombra lima, como en la landing */
.plan.destacado { background: var(--tinta); color: #fff6e5; border-color: var(--tinta); box-shadow: 6px 6px 0 var(--voltio); outline: none; }
.plan.destacado .etiqueta { color: var(--voltio); }
.plan.destacado .nota, .plan.destacado .precio span { color: var(--papel-tenue); }
.plan.destacado .ventajas li::before { border-color: var(--voltio); }
.selector-intervalo { border: 2px solid var(--suave); }
.apuntado { background: var(--voltio); color: var(--tinta); border: 2px solid var(--tinta); border-radius: 18px; padding: 14px 16px; }
.apuntado .nota { color: var(--tinta); }
/* Contenedores con borde suave (las piezas que se tocan siguen con borde de tinta, como los botones de la landing) */
.visual, .pregunta { background: var(--papel-2); border: 2px solid var(--suave); box-shadow: none; }
.banda { border-block: 2px solid var(--suave); }
.panel-fijo { background: #ffffff; border-top: 2px solid var(--suave); }

/* ==========================================================================
   Rediseño app (17/11/2026, petición de Alex): navegación de app, mapa de lecciones,
   intro de lección visual, perfil con logros, portada con vista previa e instalar en el móvil.
   ========================================================================== */
/* Navegación: en el ordenador, en la cabecera; en el móvil, barra fija abajo */
.cabecera .contenedor { flex-wrap: nowrap; }
.nav-app { display: flex; gap: 4px; margin-right: auto; margin-left: 24px; }
.nav-app a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--gris); }
.nav-app a svg { width: 20px; height: 20px; }
.nav-app a:hover { background: var(--papel-2); color: var(--tinta); }
.nav-app a.activa { background: var(--lila); color: var(--tinta); }
.pastilla.pendiente { background: var(--coral-suave); border-color: #ffc2b8; }
@media (max-width: 900px) {
  .nav-app { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; gap: 0; background: #ffffff; border-top: 2px solid var(--suave); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); }
  .nav-app a { flex-direction: column; gap: 3px; padding: 4px 2px; font-size: 12px; border-radius: 14px; }
  .nav-app a svg { width: 26px; height: 26px; padding: 2px 10px; box-sizing: content-box; border-radius: 999px; }
  .nav-app a.activa { background: none; }
  .nav-app a.activa svg { background: var(--voltio); color: var(--tinta); }
  body:has(.nav-app) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.nav-app) .pie { display: none; }
}
@media (max-width: 560px) { .solo-ancho { display: none; } }

/* Inicio */
.mapa { display: flex; flex-direction: column; min-width: 0; }
.panel-hoy { display: none; }
@media (max-width: 900px) {
  .panel-hoy { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
  .lateral { display: none; }
  .inicio { padding-top: 18px; }
}
.saludo { font-family: var(--display); font-size: 22px; font-weight: 700; }
.siguiente { display: flex; align-items: center; gap: 16px; padding: 22px; }
.siguiente h2 { font-size: 21px; color: #ffffff; }
.siguiente .btn { align-self: flex-start; margin-top: 6px; }
.siguiente-tokenin { flex: none; padding-right: 10px; }
.siguiente-tokenin .tokenin { animation: flotar 4s ease-in-out infinite; }
.tarjeta.mini { padding: 16px; gap: 10px; }
.cifra { font-size: 15px; white-space: nowrap; }
.mono { font-family: var(--mono); }
.panel-hoy .dos { grid-template-columns: 1fr 1fr; align-items: stretch; }
.panel-hoy .semana { gap: 2px; }
.panel-hoy .dia i { width: 22px; height: 22px; font-size: 11px; }
@media (max-width: 400px) { .panel-hoy .dos { grid-template-columns: 1fr; } }
.repaso-acceso { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--tinta); }
.repaso-acceso:hover { color: var(--tinta); background: var(--lila); }
.repaso-icono { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--voltio); border: 2px solid var(--tinta); display: grid; place-items: center; }
.repaso-acceso .flecha { margin-left: auto; font-size: 20px; font-weight: 800; }
.temporada { display: flex; flex-direction: column; gap: 2px; font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 18px; }

.cartel-unidad { flex-wrap: nowrap; align-items: flex-start; padding: 20px; border-radius: 24px; }
.num-unidad { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; background: var(--cian); border: 2px solid var(--tinta); box-shadow: 3px 3px 0 var(--tinta); }
.cartel-unidad.u2 .num-unidad { background: var(--voltio); }
.cartel-unidad.u3 .num-unidad { background: #ff9ecb; }
.cartel-unidad.u4 .num-unidad { background: var(--papel-tenue); }
.cartel-unidad .sello { text-decoration: none; }
.progreso-unidad { display: flex; align-items: center; gap: 10px; margin-top: 6px; max-width: 320px; }
.progreso-unidad .barra { flex: 1; height: 10px; border-width: 2px; }
@media (max-width: 560px) {
  .cartel-unidad { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .num-unidad { width: 44px; height: 44px; font-size: 20px; }
  .cartel-unidad > .pila { flex-basis: calc(100% - 60px) !important; }
  .cartel-unidad > .sello { margin-left: 56px; }
  .cartel-unidad h2 { font-size: 19px; }
}
.camino { padding: 14px 0 6px; }
.nodo.actual { box-shadow: 0 5px 0 var(--tinta), 0 0 0 8px rgba(69, 217, 245, 0.28); }
.nodo.hecho { color: var(--tinta); }
.estrellas-logro { color: #f2b200; letter-spacing: 1px; }
.estrellas-logro span { color: var(--suave); }
.unidad-bloque.cerrada .cartel-unidad { background: #ffffff; }
.lista-cerrada { margin-left: 26px; padding: 4px 0 4px 34px; border-left: 3px dashed var(--suave); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lista-cerrada ol { margin: 0; padding-left: 18px; color: var(--gris); display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.btn-tinta { border-color: var(--tinta); }
.btn-tinta svg { width: 18px; height: 18px; color: var(--voltio); }

/* Intro de lección */
.intro-leccion { gap: 14px; }
.intro-visual { position: relative; height: 230px; border-radius: 28px; border: 2px solid var(--suave); display: grid; place-items: center; overflow: hidden; margin-bottom: 8px;
  background-color: var(--cian-suave); background-image: radial-gradient(rgba(21, 18, 59, 0.12) 1.5px, transparent 1.5px); background-size: 18px 18px; }
.intro-visual.u2 { background-color: #f3ffd6; }
.intro-visual.u3 { background-color: #ffe6f2; }
.intro-visual.u4, .intro-visual.repaso { background-color: var(--lila); }
.intro-visual .tokenin { animation: flotar 4s ease-in-out infinite; }
.flota-chip { position: absolute; font-size: 15px; }
.flota-chip.c1 { left: 14%; top: 22%; transform: rotate(-8deg); }
.flota-chip.c2 { right: 14%; top: 18%; transform: rotate(6deg); animation: flotar 5s ease-in-out infinite; }
.flota-chip.c3 { right: 22%; bottom: 16%; transform: rotate(-4deg); background: #ffffff; }
.intro-leccion h2 { font-size: 28px; }
.datos-leccion { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.datos-leccion span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--papel-2); border: 2px solid var(--suave); font-weight: 800; font-size: 14px; }
.datos-leccion svg { width: 18px; height: 18px; }

/* Perfil */
.perfil-pantalla { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; padding-bottom: 48px; }
.perfil-heroe { display: flex; align-items: center; gap: 22px; padding: 6px 4px 6px 0; }
.perfil-heroe h1 { font-size: 30px; overflow-wrap: anywhere; }
.nivel-tarjeta h2 { font-size: 24px; color: #ffffff; }
.nivel-tarjeta .barra { background: var(--tinta-alta); border-color: var(--tinta-alta); height: 14px; }
.estadisticas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dato { background: var(--papel-2); border: 2px solid var(--suave); border-radius: 20px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.dato b { font-family: var(--display); font-size: 22px; }
.dato span { font-size: 12px; font-weight: 800; color: var(--gris); }
@media (max-width: 560px) { .estadisticas { grid-template-columns: 1fr 1fr; } }
.ajustes summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ajustes summary::after { content: "+"; font-family: var(--mono); font-weight: 600; font-size: 20px; }
.ajustes[open] summary::after { content: "–"; }

/* Instalar en el móvil */
.instalar { display: flex; gap: 16px; align-items: flex-start; }
.instalar-icono img { display: block; border-radius: 14px; border: 2px solid var(--tinta); }
.instalar.compacta { padding: 16px; background: #ffffff; }
.icono-compartir { display: inline-block; font-weight: 800; }

/* Portada sin sesión */
.heroe-app { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "texto escena" "entrar escena"; row-gap: 28px; align-items: start; padding-block: 48px 64px; }
.heroe-texto { grid-area: texto; }
.heroe-app .escena { grid-area: escena; align-self: center; }
.entrar-tarjeta { grid-area: entrar; gap: 14px; padding: 22px; }
.ventajas-portada { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ventajas-portada li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--gris); }
.ventajas-portada li b { color: var(--tinta); }
.ventajas-portada li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--voltio); border: 2px solid var(--tinta); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--tinta); }
.fila-form-campos { display: flex; gap: 10px; }
.fila-form-campos .campo { flex: 1; min-width: 0; }
.fila-form-campos .btn { flex: none; }
.movil { box-shadow: 10px 10px 0 var(--voltio); border-color: var(--tinta); }
.movil .etiqueta { color: var(--voltio); }
.probs { display: flex; flex-direction: column; gap: 8px; }
.prob-fila { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--tinta-alta); overflow: hidden; font-weight: 800; }
.prob-fila i { position: absolute; inset: 0 auto 0 0; background: rgba(255, 255, 255, 0.08); }
.prob-fila span, .prob-fila b { position: relative; }
.prob-fila b { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.prob-fila.ok { background: var(--voltio); color: var(--tinta); }
.prob-fila.ok i { background: rgba(21, 18, 59, 0.1); }
@media (max-width: 860px) {
  .heroe-app { grid-template-columns: 1fr; grid-template-areas: "texto" "entrar" "escena"; padding-block: 24px 40px; }
  .heroe-app .escena { min-height: 400px; }
}
@media (max-width: 480px) { .fila-form-campos { flex-direction: column; } }
.perfil-heroe { gap: 34px; }
.lateral .siguiente h2 { font-size: 19px; }
.lateral .siguiente-tokenin { padding-right: 4px; }
@media (max-width: 860px) {
  .heroe-app .f2 { bottom: 6px; left: auto; right: 4%; }
  .heroe-app .f3 { top: 6px; left: 2%; }
}
@media (max-width: 860px) { .heroe-app .f1 { top: -18px; right: 0; } }

/* Instalar (botón de cabecera + ventana con pasos), entrar con Google y código de empresa */
.btn-instalar { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--texto); }
.btn-instalar svg { width: 18px; height: 18px; }
.btn-instalar:hover { background: var(--papel-2); }
.ventana-fondo { position: fixed; inset: 0; z-index: 40; background: rgba(21, 18, 59, 0.45); display: grid; place-items: end center; padding: 16px; animation: entra 0.2s ease; }
@media (min-width: 640px) { .ventana-fondo { place-items: center; } }
.ventana { width: 100%; max-width: 440px; background: #ffffff; border: 2px solid var(--tinta); box-shadow: 6px 6px 0 var(--voltio); }
.icono-app { border-radius: 14px; border: 2px solid var(--tinta); flex: none; }
.pasos-instalar { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.45; }
.btn-google { background: #ffffff; color: var(--tinta); box-shadow: 3px 3px 0 var(--tinta); }
.btn-google:hover { background: var(--papel-2); color: var(--tinta); }
.bloque-google { display: flex; flex-direction: column; gap: 14px; }
.separador { display: flex; align-items: center; gap: 12px; color: var(--gris); font-size: 13px; font-weight: 700; }
.separador::before, .separador::after { content: ""; flex: 1; height: 2px; background: var(--suave); }
.codigo-empresa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.codigo-empresa summary::after { content: "+"; font-family: var(--mono); font-weight: 600; font-size: 20px; }
.codigo-empresa[open] summary::after { content: "–"; }
.codigo-empresa .campo { text-transform: uppercase; }
