/* App móvil: pantalla completa en el teléfono y marco de iPhone en el ordenador. Tema blanco y negro OLED. */
:root {
  --fondo: #FFFFFF; --sup: #F4F6F9; --sup2: #EBEFF4; --linea: #E1E6ED; --tinta: #101828; --suave: #667085;
  --azul: #0A5BD7; --azul-o: #0846A6; --azul-f: #E6EFFD; --verde: #22A447; --verde-o: #188235; --verde-f: #E4F6E9;
  --rojo: #E5484D; --rojo-o: #B8363A; --rojo-f: #FDECEC; --naranja: #FF8A00; --amarillo: #F5B400; --amarillo-f: #FFF6D6; --morado: #8B5CF6;
  --marca: #FFE38A; --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
[data-theme="dark"] {
  --fondo: #000000; --sup: #0E0F12; --sup2: #17191E; --linea: #24272E; --tinta: #F2F4F7; --suave: #98A2B3;
  --azul: #4C8DFF; --azul-o: #2F6FE0; --azul-f: #0F1D35; --verde: #3CC461; --verde-o: #23963F; --verde-f: #0C2416;
  --rojo: #FF6369; --rojo-o: #C9474C; --rojo-f: #2C1112; --amarillo-f: #2A2205; --marca: #6B5600; --sombra: none;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--fondo); color: var(--tinta); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#marco { height: 100%; }
#pantalla { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--fondo); }
@media (min-width: 900px) {
  body.marco { background: radial-gradient(circle at 30% 20%, #1d2b44, #05070b 70%); }
  body.marco #marco { display: grid; place-items: center; min-height: 100%; padding: 24px; }
  body.marco #pantalla { width: 393px; height: min(852px, calc(100vh - 48px)); border-radius: 48px; border: 10px solid #111; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 2px #333; }
  body.marco #pantalla::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 118px; height: 32px; border-radius: 20px; background: #000; z-index: 50; }
  body.marco .cab { padding-top: 46px; }
  body:not(.marco) #pantalla { max-width: 560px; margin: 0 auto; border-inline: 1px solid var(--linea); }
}

.cab { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--sa-t)) 14px 10px; background: var(--fondo); border-bottom: 1px solid var(--linea); z-index: 5; }
.cab-perfil { display: flex; align-items: center; gap: 9px; min-width: 0; background: none; border: 0; padding: 0; text-align: start; }
.cab-perfil span { display: grid; min-width: 0; line-height: 1.15; }
.cab-perfil strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.cab-perfil small { color: var(--suave); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.cab-der { display: flex; align-items: center; gap: 6px; }
.cab-racha { display: inline-flex; align-items: center; gap: 2px; color: var(--naranja); font-weight: 800; }
.cab-racha .ico { fill: var(--naranja); stroke: var(--naranja); }
.cab-chip { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--linea); background: var(--sup); font-weight: 800; font-size: .78rem; }
.cab-chip .ico { width: 20px; height: 20px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--linea); }
.avatar.ini { display: grid; place-items: center; background: linear-gradient(135deg, var(--azul), var(--morado)); color: #fff; font-weight: 800; border: 0; }

.vista { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.vista.v-chat { padding: 0; }
.cargando, .vacio { color: var(--suave); text-align: center; padding: 30px 10px; }
.sub { color: var(--suave); }
.nota { color: var(--suave); font-size: .82rem; }
.centro { text-align: center; }
.vista-t { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 800; }
.sec-t { font-size: 1.05rem; font-weight: 800; margin-top: 6px; }
.eyebrow { color: var(--suave); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

.tabs { flex: none; display: flex; border-top: 1px solid var(--linea); background: var(--fondo); padding-bottom: var(--sa-b); z-index: 5; }
.tabs a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; color: var(--suave); text-decoration: none; font-size: .68rem; font-weight: 700; }
.tabs a .ico { width: 25px; height: 25px; }
.tabs a.act { color: var(--azul); }
.tabs a.act .ico { stroke-width: 2.4; }
#pantalla.en-leccion .tabs, #pantalla.en-leccion .cab { display: none; }

.btn, .btn3d { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 14px; border: 0; font-weight: 800; text-decoration: none; }
.btn { background: var(--azul); color: #fff; }
.btn.sec { background: var(--sup); color: var(--tinta); border: 2px solid var(--linea); }
.btn.rojo { background: var(--rojo); color: #fff; }
.rojo-txt { color: var(--rojo) !important; }
.btn.peq, .btn3d.peq { min-height: 38px; padding: 6px 12px; font-size: .88rem; }
.btn3d { background: var(--azul); color: #fff; box-shadow: 0 4px 0 var(--azul-o); text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; transition: transform .06s; }
.btn3d:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--azul-o); }
.btn3d.verde { background: var(--verde); box-shadow: 0 4px 0 var(--verde-o); }
.btn3d.rojo { background: var(--rojo); box-shadow: 0 4px 0 var(--rojo-o); }
.btn3d:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }
.ancho { width: 100%; }
.fila-btn { display: flex; gap: 10px; }
.fila-btn > * { flex: 1; }
.fila-btn.envolver { flex-wrap: wrap; }
.redondo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--sup); color: var(--tinta); flex: none; }
.redondo.azul { background: var(--azul); color: #fff; }
.redondo.peq { width: 32px; height: 32px; }
.redondo.peq .ico { width: 17px; height: 17px; }
.enlace { background: none; border: 0; padding: 0; color: var(--azul); text-decoration: underline; font-size: .9rem; align-self: flex-start; justify-self: start; }

.progs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.prog { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; border: 2px solid var(--linea); background: var(--fondo); }
.prog strong { font-size: .8rem; }
.prog small { color: var(--suave); font-size: .7rem; font-weight: 700; }
.prog .prog-ico { width: 30px; height: 30px; color: var(--suave); }
.prog.act { border-color: var(--azul); background: var(--azul-f); }
.prog.act .prog-ico { color: var(--azul); }
.resumen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.resumen > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--sup); }
.resumen span { display: grid; line-height: 1.15; }
.resumen b { font-size: 1.25rem; }
.resumen small { color: var(--suave); font-size: .74rem; }
.fuego-g .ico { width: 40px; height: 40px; fill: var(--naranja); stroke: var(--naranja); }
.anillo-fondo { stroke: var(--linea); }
.anillo-valor { stroke: var(--verde); transition: stroke-dashoffset .6s ease; }

.accesos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acceso { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px; border-radius: 16px; border: 2px solid var(--linea); background: var(--fondo); box-shadow: 0 3px 0 var(--linea); }
.acceso:active { transform: translateY(2px); box-shadow: none; }
.acceso .ico { width: 30px; height: 30px; padding: 5px; border-radius: 10px; color: #fff; }
.acceso span { display: grid; min-width: 0; line-height: 1.2; }
.acceso strong { font-size: .9rem; }
.acceso small { color: var(--suave); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-sim .ico { background: var(--azul); } .ac-sup .ico { background: var(--rojo); } .ac-moc .ico { background: var(--naranja); }
.ac-par .ico { background: var(--morado); } .ac-ff .ico { background: var(--verde); }
.ac-sim { grid-column: span 2; }

.hoy-rec { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, var(--azul), var(--morado)); color: #fff; }
.hoy-rec img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .7); flex: none; }
.hoy-rec > div { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.hoy-rec small { opacity: .85; font-weight: 700; font-size: .78rem; }
.hoy-rec strong { font-size: 1.05rem; line-height: 1.2; }
.hoy-rec .btn3d { background: #fff; color: var(--azul-o); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); margin-top: 4px; }
.temas { display: grid; gap: 10px; }
.tema { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: start; border-radius: 18px; border: 2px solid var(--linea); background: var(--fondo); box-shadow: 0 3px 0 var(--linea); }
.tema:active { transform: translateY(2px); box-shadow: none; }
.tema.rec { border-color: var(--amarillo); box-shadow: 0 3px 0 #C99200; }
.tema-n { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-weight: 800; }
.t0 .tema-n { background: #22A447; } .t1 .tema-n { background: #0A5BD7; } .t2 .tema-n { background: #8B5CF6; }
.t3 .tema-n { background: #E5484D; } .t4 .tema-n { background: #FF8A00; } .t5 .tema-n { background: #0E9AA7; }
.tema-txt { flex: 1; display: grid; gap: 4px; min-width: 0; }
.tema-txt strong { font-size: .95rem; line-height: 1.25; }
.tema-txt small { color: var(--suave); font-size: .74rem; }
.tema-pct { flex: none; display: grid; justify-items: end; line-height: 1.1; min-width: 52px; }
.tema-pct b { font-size: 1.15rem; }
.tema-pct small { color: var(--suave); font-size: .68rem; }
.tag-rec { justify-self: start; display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--amarillo-f); color: #9a6a00; font-size: .7rem; font-weight: 800; }
[data-theme="dark"] .tag-rec { color: var(--amarillo); }
.tag-rec .ico { width: 12px; height: 12px; fill: currentColor; }
.tema-cab { display: flex; align-items: center; gap: 12px; }
.tema-cab b { font-size: 1.4rem; }
.lista-lec { display: grid; gap: 8px; }
.leccion-fila { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: start; border-radius: 14px; border: 2px solid var(--linea); background: var(--fondo); }
.leccion-fila span { flex: 1; display: grid; line-height: 1.25; }
.leccion-fila small { color: var(--suave); font-size: .75rem; }
.leccion-fila > .ico { color: var(--azul); }

.barra { display: block; height: 8px; border-radius: 6px; background: var(--linea); overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--verde); border-radius: 6px; }

.hoja { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0); transition: background .2s; }
.hoja.abierta { background: rgba(0, 0, 0, .45); }
.hoja-in { width: 100%; max-height: 88%; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 22px 18px calc(18px + var(--sa-b)); background: var(--fondo); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .22s ease; }
.hoja.abierta .hoja-in { transform: none; }
.hoja.alta .hoja-in { max-height: 92%; }
.hoja h2 { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
.hoja-t { font-weight: 700; }
.formato { font-weight: 800; color: var(--azul); }
.palabra-cab { display: flex; justify-content: space-between; align-items: center; }
.palabra-it { font-size: 1.6rem; font-weight: 800; }
.palabra-tr { font-size: 1.2rem; }
.lista-sel { display: grid; gap: 8px; }
.sel { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--linea); background: var(--fondo); }
.sel span { font-weight: 700; }
.sel small { margin-inline-start: auto; color: var(--suave); font-size: .75rem; max-width: 55%; text-align: end; }
.sel.act { border-color: var(--azul); background: var(--azul-f); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 2px solid var(--linea); background: var(--fondo); font-weight: 700; font-size: .85rem; }
.chip small { color: var(--suave); }
.chip.act { background: var(--azul); border-color: var(--azul); color: #fff; }
.chip.act small { color: inherit; }
.segmento { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sup); }
.segmento button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 10px; background: none; font-weight: 700; font-size: .88rem; }
.segmento button.act { background: var(--fondo); box-shadow: var(--sombra); color: var(--azul); }

.leccion { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--fondo); overflow: hidden; }
.lec-cab, .ex-cab { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--sa-t)) 16px 8px; }
body.marco .lec-cab, body.marco .ex-cab { padding-top: 46px; }
.barra-lec { flex: 1; height: 16px; border-radius: 10px; background: var(--linea); overflow: hidden; }
.barra-lec span { display: block; height: 100%; background: var(--verde); border-radius: 10px; transition: width .3s; }
.vidas { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: flex-end; color: var(--rojo); }
.vidas .ico { fill: var(--rojo); width: 26px; height: 26px; }
.vidas .perdida .ico { fill: var(--linea); stroke: var(--linea); }
.vidas b { margin-inline-start: 8px; color: var(--tinta); font-size: .9rem; }
.lec-cuerpo { flex: 1; overflow-y: auto; padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.lec-cuerpo.fallo { animation: temblor .35s; }
@keyframes temblor { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.lec-pregunta { font-size: 1.25rem; }
.esc-chip { display: flex; align-items: center; gap: 5px; font-weight: 800; color: var(--azul); font-size: .85rem; }
.esc-chip i { width: 18px; height: 8px; border-radius: 4px; background: var(--linea); }
.esc-chip i.ok { background: var(--verde); } .esc-chip i.act { background: var(--azul); }
.esc-chip span { margin-inline-start: 6px; }
.fig { align-self: center; padding: 8px; border-radius: 16px; background: #fff; border: 2px solid var(--linea); }
.fig img { display: block; max-width: 100%; height: auto; max-height: 200px; width: auto; }
.frase-fila { display: flex; gap: 10px; align-items: flex-start; }
.frase-fila > :first-child { flex: 1; min-width: 0; }
.frase-col { display: grid; gap: 10px; }
.frase { font-size: 1.32rem; font-weight: 700; line-height: 1.38; }
.frase.peq { font-size: 1.05rem; }
.frase.conglosas { line-height: 2.3; }
.w { background: none; border: 0; padding: 0; font: inherit; color: inherit; border-bottom: 2px dotted var(--suave); }
.w.clave { border-bottom: 2px solid var(--azul); }
.glosada { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; vertical-align: top; }
.glosada small { font-size: .58em; font-weight: 600; color: var(--azul); white-space: nowrap; }
mark { background: var(--marca); color: inherit; border-radius: 4px; padding: 0 3px; }
.trad { color: var(--suave); }
.reloj { height: 8px; border-radius: 4px; background: var(--linea); overflow: hidden; }
.reloj span { display: block; height: 100%; background: var(--rojo); }
.lec-pie { flex: none; padding: 14px 16px calc(14px + var(--sa-b)); border-top: 1px solid var(--linea); display: grid; gap: 12px; }
.vf2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vf { min-height: 58px; font-size: 1.05rem; }
.vf.marcada { background: var(--azul-o); outline: 3px solid var(--marca); }
.vf.correcta { background: var(--verde); box-shadow: 0 4px 0 var(--verde-o); }
.vf.mala { background: var(--rojo); box-shadow: 0 4px 0 var(--rojo-o); }
.lec-pie.fb { border-top: 0; animation: subir .2s ease; }
@keyframes subir { from { transform: translateY(40%); opacity: 0; } }
.lec-pie.fb.bien { background: var(--verde-f); }
.lec-pie.fb.mal { background: var(--rojo-f); }
.fb-txt { display: grid; gap: 4px; max-height: 34vh; overflow-y: auto; }
.fb-t { font-size: 1.25rem; font-weight: 800; }
.fb.bien .fb-t { color: var(--verde); } .fb.mal .fb-t { color: var(--rojo); }
.claudio-btn { gap: 6px; font-size: .85rem; padding-inline: 10px; }
.claudio-btn img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ops { display: grid; gap: 10px; }
.op { display: flex; gap: 10px; text-align: start; padding: 14px; border-radius: 16px; border: 2px solid var(--linea); background: var(--fondo); box-shadow: 0 3px 0 var(--linea); font-weight: 600; line-height: 1.35; }
.op b { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--azul-f); color: var(--azul); font-size: .8rem; }
.op.correcta { border-color: var(--verde); background: var(--verde-f); }
.op.mala { border-color: var(--rojo); background: var(--rojo-f); }
.fin-lec { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 20px calc(24px + var(--sa-b)); text-align: center; }
.fin-cara { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid var(--amarillo); animation: rebote .7s ease; }
@keyframes rebote { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } }
.fin-lec h1 { font-size: 1.6rem; color: var(--amarillo); }
.fin-tiles, .tiles4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
@media (min-width: 380px) { .tiles4 { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid; text-align: center; }
.tile b { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 1.25rem; }
.tile span { font-size: .72rem; font-weight: 700; }
.tile .ico { width: 20px; height: 20px; fill: currentColor; }
.tile.amarillo { border-color: var(--amarillo); color: #B07C00; } .tile.verde { border-color: var(--verde); color: var(--verde); }
.tile.naranja { border-color: var(--naranja); color: var(--naranja); } .tile.azul { border-color: var(--azul); color: var(--azul); }
.confeti { position: absolute; top: -10px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; z-index: 60; animation: caer var(--d) linear forwards; pointer-events: none; }
@keyframes caer { to { transform: translateY(560px) rotate(var(--r)); opacity: 0; } }

.claudio .hoja-in { gap: 14px; }
.claudio-cab { display: flex; gap: 12px; align-items: center; }
.claudio-cara, .claudio-burbuja img, .msg.bot img, .chat-cab img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--azul); }
.claudio-paso { display: flex; gap: 12px; }
.claudio-paso > b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--azul); color: #fff; font-size: .85rem; }
.claudio-paso h3 { font-size: .95rem; }
.it-peq { font-weight: 700; }
.claudio-burbuja { display: flex; gap: 10px; align-items: flex-start; }
.claudio-burbuja p { padding: 12px 14px; border-radius: 4px 18px 18px 18px; background: var(--sup); }

.ex-cab { justify-content: space-between; }
.crono { font-size: 1.4rem; font-variant-numeric: tabular-nums; } .crono.poco { color: var(--rojo); }
.rejilla { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rejilla button { min-height: 30px; padding: 0; border-radius: 7px; border: 1px solid var(--linea); background: var(--fondo); font-size: .75rem; font-variant-numeric: tabular-nums; }
.rejilla .hecha { background: var(--azul-f); color: var(--azul); font-weight: 800; }
.rejilla .act { outline: 2px solid var(--azul); }
.confirma { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: var(--amarillo-f); }
.res-cab { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 20px; text-align: center; }
.res-cab .ico { width: 56px; height: 56px; }
.res-cab.ok { background: var(--verde-f); color: var(--verde); } .res-cab.ko { background: var(--rojo-f); color: var(--rojo); }
.res-cab p { color: var(--tinta); }
.repaso { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 2px solid var(--linea); }
.lista-sim { display: grid; gap: 6px; }
.fila-sim { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--linea); background: var(--fondo); text-align: start; }
.fila-sim small { margin-inline-start: auto; color: var(--suave); }
.num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.num.ok { background: var(--verde-f); color: var(--verde); } .num.ko { background: var(--rojo-f); color: var(--rojo); }
.lista-moc { list-style: none; display: grid; gap: 6px; font-size: .88rem; }
.lista-moc li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--sup); }
.lista-moc small { color: var(--suave); }
.ff-rejilla { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ff-t { display: grid; gap: 4px; text-align: start; padding: 10px; border-radius: 14px; border: 2px solid var(--linea); background: var(--fondo); }
.ff-t span { font-size: .8rem; } .ff-t s { color: var(--rojo); } .ff-t small { color: var(--suave); font-size: .72rem; }
.ficha { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--sup); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.tag.malo { background: var(--rojo-f); color: var(--rojo); } .tag.bueno { background: var(--verde-f); color: var(--verde); }
.gloss { list-style: none; display: grid; gap: 4px; font-size: .9rem; }
.gloss li { display: flex; gap: 8px; flex-wrap: wrap; }
.gloss span { color: var(--suave); }

.campo { display: grid; gap: 4px; font-weight: 700; font-size: .85rem; }
.campo input, .chat-form input, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--linea); background: var(--sup); color: var(--tinta); font: inherit; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.cuenta { display: grid; justify-items: center; padding: 16px; border-radius: 20px; background: var(--azul); color: #fff; }
.cuenta b { font-size: 2.6rem; line-height: 1; } .cuenta small { opacity: .8; }
.tareas { list-style: none; display: grid; gap: 8px; }
.tareas li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 2px solid var(--linea); font-weight: 600; }
.tareas li.ok { border-color: var(--verde); background: var(--verde-f); }
.tareas li.ok .ico { color: var(--verde); }
.mes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font-size: .85rem; }
.mes b { color: var(--suave); font-size: .72rem; }
.mes span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: var(--sup); }
.mes span:empty { background: none; }
.mes .algo { background: var(--verde-f); }
.mes .ok { background: var(--verde); color: #fff; font-weight: 800; }
.mes .hoy { outline: 2px solid var(--azul); }
.mes .examen { background: var(--rojo); color: #fff; font-weight: 800; }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--verde); }
.nota .ico { width: 15px; height: 15px; vertical-align: -2px; color: var(--naranja); }

.chat { display: flex; flex-direction: column; height: 100%; }
.chat-cab { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.chat-cab img { width: 42px; height: 42px; }
.chat-cab div { display: grid; line-height: 1.2; } .chat-cab small { color: var(--verde); font-size: .74rem; font-weight: 700; }
.chat-lista { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; max-width: 92%; }
.msg p { padding: 10px 13px; border-radius: 18px; }
.msg.yo { align-self: flex-end; } .msg.yo p { background: var(--azul); color: #fff; border-end-end-radius: 4px; }
.msg.bot img { width: 32px; height: 32px; }
.msg.bot > div { display: grid; gap: 6px; } .msg.bot p { background: var(--sup); border-start-start-radius: 4px; }
.msg.nota-msg p { background: none; color: var(--suave); font-size: .8rem; padding: 0 4px; }
.msg-frase { position: relative; display: grid; gap: 3px; padding: 10px 44px 10px 12px; border-radius: 14px; border: 2px solid var(--linea); }
.msg-frase p { padding: 0; background: none !important; border-radius: 0; }
.msg-frase p:first-child { font-weight: 700; }
.msg-frase .redondo { position: absolute; top: 8px; inset-inline-end: 8px; }
.sug { flex: none; flex-wrap: nowrap; overflow-x: auto; padding: 6px 14px; }
.sug .chip { white-space: nowrap; }
.chat-form { flex: none; display: flex; gap: 8px; padding: 8px 14px calc(8px + var(--sa-b)); border-top: 1px solid var(--linea); }

.compositor { display: flex; gap: 10px; padding: 12px; border-radius: 18px; border: 2px solid var(--linea); }
.compositor > div { flex: 1; display: grid; gap: 8px; }
.prev { max-width: 100%; max-height: 220px; border-radius: 12px; }
.muro { display: grid; gap: 12px; }
.post { display: grid; gap: 8px; padding: 12px; border-radius: 18px; border: 2px solid var(--linea); }
.post header { display: flex; gap: 10px; align-items: center; }
.post header div { display: grid; line-height: 1.2; } .post header small { color: var(--suave); font-size: .74rem; }
.post header .ico { width: 13px; height: 13px; color: var(--naranja); fill: var(--naranja); vertical-align: -2px; }
.post-img { width: 100%; border-radius: 14px; }
.post footer { display: flex; gap: 14px; align-items: center; }
.like { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; font-weight: 800; color: var(--suave); }
.like.act { color: var(--rojo); } .like.act .ico { fill: var(--rojo); }
.res-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; }
.res-card div { display: grid; line-height: 1.25; } .res-card span { font-size: .82rem; }
.res-card.ok { background: var(--verde-f); color: var(--verde); }
.res-card .ico { width: 32px; height: 32px; }
.ranking { list-style: none; display: grid; gap: 6px; }
.ranking li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--sup); }
.ranking li.yo { outline: 2px solid var(--azul); }
.ranking li > b { width: 22px; text-align: center; }
.ranking li > span:nth-of-type(1) { flex: 1; font-weight: 700; }
.rk-racha { display: inline-flex; align-items: center; color: var(--naranja); font-weight: 800; }
.rk-racha .ico { width: 18px; height: 18px; fill: var(--naranja); }
.ranking small { color: var(--suave); }
.coms { list-style: none; display: grid; gap: 10px; }
.coms li { display: flex; gap: 8px; }

.perfil-cab { display: flex; gap: 14px; align-items: center; }
.perfil-cab > div { flex: 1; display: grid; gap: 8px; min-width: 0; }
.foto-edit { position: relative; cursor: pointer; }
.foto-edit .avatar { width: 92px; height: 92px; font-size: 2rem; }
.foto-edit > span:not(.avatar) { position: absolute; bottom: 0; inset-inline-end: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--azul); color: #fff; }
.foto-edit > span:not(.avatar) .ico { width: 18px; height: 18px; }
.qr-caja { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--sup); }
.qr-svg { width: 120px; flex: none; background: #fff; padding: 6px; border-radius: 10px; }
.qr-svg svg { display: block; width: 100%; height: auto; }
.solo-pc { display: none; }
@media (min-width: 900px) { .solo-pc { display: block; } }
.qr-pc { position: fixed; right: 18px; bottom: 18px; width: 190px; display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: 18px; background: #fff; color: #101828; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); z-index: 100; font-size: .78rem; }
.qr-pc .qr-svg { width: 150px; padding: 0; }
.qr-pc strong { font-size: .9rem; }
.qr-pc small { color: #667085; }
@media (max-width: 899px) { .qr-pc { display: none !important; } }
.toast { position: absolute; left: 50%; bottom: 90px; translate: -50% 20px; opacity: 0; padding: 10px 16px; border-radius: 999px; background: var(--tinta); color: var(--fondo); font-weight: 700; z-index: 70; transition: .25s; }
.toast.ver { translate: -50% 0; opacity: 1; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body.marco .vista, body.marco .chat-lista, body.marco .lec-cuerpo, body.marco .hoja-in { scrollbar-width: none; }
.chip:disabled, .sel:disabled { opacity: .5; cursor: not-allowed; }
.fb-fila { display: flex; align-items: center; gap: 10px; }
.fb-cara { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--verde); }
.fb.mal .fb-cara { border-color: var(--rojo); }
.salta { animation: salta .6s ease 2; }
@keyframes salta { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } }
.claudio-cara.triste { border-color: var(--rojo); filter: saturate(.85); }
.tu-resp { padding: 8px 12px; border-radius: 12px; background: var(--rojo-f); color: var(--rojo); font-weight: 700; font-size: .9rem; }
.cl-frase { display: grid; gap: 4px; justify-items: start; padding: 10px 12px; margin-top: 6px; border-radius: 14px; border: 2px solid var(--linea); }
.cl-frase p:first-child { font-weight: 700; }
.claudio-paso .sub { margin-top: 6px; font-size: .86rem; }
.cl-gloss li { align-items: baseline; }
.res-cara { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid currentColor; }
