/* Tingo · estilos */
:root {
  --mango: #F28C28;
  --mango-hover: #DE7714;
  --mango-suave: #FDE8D3;
  --noche: #1F2A44;
  --turquesa: #0F9F8F;
  --turquesa-suave: #D7F2EE;
  --tomate: #E5484D;
  --tomate-suave: #FCE2E3;
  --maiz: #F5C542;
  --maiz-suave: #FDF3D3;
  --fondo: #FFF8EE;
  --superficie: #FFFFFF;
  --superficie-2: #FBF3E7;
  --borde: #EADFCF;
  --texto: #1F2A44;
  --texto-suave: #5B6478;
  --bloqueado: #CFC7BA;
  --sombra: 0 2px 0 rgba(31, 42, 68, .06), 0 8px 24px rgba(31, 42, 68, .06);
  --radio: 18px;
  --fuente: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mango-suave: #3A2A1A;
    --turquesa: #2BBBA9;
    --turquesa-suave: #12332F;
    --tomate: #F06A6E;
    --tomate-suave: #3A1E22;
    --maiz-suave: #3A3218;
    --fondo: #141B2D;
    --superficie: #1C2540;
    --superficie-2: #222C4A;
    --borde: #2F3B5C;
    --texto: #F3EEE6;
    --texto-suave: #AEB6C8;
    --bloqueado: #3C4766;
    --sombra: 0 2px 0 rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mango-suave: #3A2A1A; --turquesa: #2BBBA9; --turquesa-suave: #12332F; --tomate: #F06A6E;
  --tomate-suave: #3A1E22; --maiz-suave: #3A3218; --fondo: #141B2D; --superficie: #1C2540;
  --superficie-2: #222C4A; --borde: #2F3B5C; --texto: #F3EEE6; --texto-suave: #AEB6C8;
  --bloqueado: #3C4766; --sombra: 0 2px 0 rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--fondo); color: var(--texto);
  font-family: var(--fuente); font-size: 17px; line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--mango-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; }
p { margin: 0 0 .8em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--superficie); padding: 8px 12px; z-index: 50; }
.saltar:focus { left: 8px; }
main { flex: 1; width: 100%; outline: none; }
.contenedor { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; }
.angosto { max-width: 560px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primario { background: var(--mango); color: #fff; box-shadow: 0 6px 16px rgba(242, 140, 40, .35); }
.btn--primario:hover { background: var(--mango-hover); }
.btn--secundario { background: var(--superficie); border-color: var(--borde); color: var(--texto); }
.btn--secundario:hover { border-color: var(--mango); }
.btn--ok { background: var(--turquesa); color: #fff; }
.btn--mal { background: var(--tomate); color: #fff; }
.btn--neutro { background: var(--noche); color: #fff; }
.btn[disabled] { background: var(--bloqueado); color: var(--superficie); box-shadow: none; cursor: not-allowed; }
.btn--ancho { width: 100%; }
.btn--chico { min-height: 38px; padding: 6px 16px; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--texto-suave); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 6px; }

/* ---------- Barra superior ---------- */
.barra { position: sticky; top: 0; z-index: 20; background: var(--superficie); border-bottom: 1px solid var(--borde); }
.barra__in { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.marca { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--texto); font-weight: 900; font-size: 24px; letter-spacing: -.02em; }
.barra__nav { display: flex; gap: 4px; }
.barra__nav a { text-decoration: none; color: var(--texto-suave); font-weight: 800; padding: 8px 12px; border-radius: 12px; }
.barra__nav a.activo, .barra__nav a:hover { background: var(--mango-suave); color: var(--texto); }
.barra__stats { margin-left: auto; display: flex; gap: 6px; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; padding: 6px 10px; border-radius: 12px; white-space: nowrap; }
.stat--racha { color: var(--mango-hover); }
.stat--xp { color: #B8860B; }
.stat--vidas { color: var(--tomate); }
.stat--apagada { color: var(--texto-suave); filter: grayscale(1); opacity: .7; }

/* ---------- Pie ---------- */
.pie { border-top: 1px solid var(--borde); background: var(--superficie-2); padding: 18px 16px 22px; font-size: 14px; color: var(--texto-suave); }
.pie p { max-width: 1040px; margin: 0 auto 6px; }
.pie__aviso { color: var(--texto); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--noche); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700;
  max-width: calc(100% - 32px); transition: transform .25s ease, opacity .25s ease; z-index: 60; box-shadow: var(--sombra);
  opacity: 0; pointer-events: none;
}
.toast:empty { display: none; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Tarjetas ---------- */
.card { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px; box-shadow: var(--sombra); }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.muted { color: var(--texto-suave); }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mango-suave); font-size: 13px; font-weight: 800; }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 32px 0 24px; }
.hero__img { display: flex; justify-content: center; }
.hero__img img { width: min(340px, 80%); filter: drop-shadow(0 14px 24px rgba(31,42,68,.12)); }
.hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--mango-hover); }
.hero p { font-size: 19px; color: var(--texto-suave); }
.hero__acciones { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin-top: 18px; }
.portada-marca { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 28px; padding-top: 18px; }
.seccion { padding: 28px 0; }
.seccion > h2 { font-size: 26px; }
.grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.grilla .card { margin: 0; }
.unidad-mini { border-top: 6px solid var(--mango); }
.unidad-mini--futura { border-top-color: var(--bloqueado); opacity: .85; }
.no-hace { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.no-hace li { background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: 12px 14px; font-weight: 700; }
.no-hace li::before { content: "🚫 "; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.campo label { display: block; font-weight: 800; margin-bottom: 4px; }
.campo input[type=text], .campo input[type=email], .campo input[type=password] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px;
  border: 2px solid var(--borde); background: var(--superficie);
}
.campo input:focus { border-color: var(--mango); outline: none; }
.campo small { color: var(--texto-suave); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--mango); flex: none; }
.aviso-legal { background: var(--maiz-suave); border: 2px solid var(--maiz); border-radius: 14px; padding: 14px; }
.aviso-legal p { margin-bottom: 10px; font-weight: 700; }
.error-form { background: var(--tomate-suave); color: var(--texto); border-left: 4px solid var(--tomate); padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.promesa { background: var(--turquesa-suave); border-radius: 14px; padding: 12px 14px; font-weight: 700; }

/* ---------- Meta diaria ---------- */
.metas { display: grid; gap: 10px; }
.meta-op { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--borde); background: var(--superficie); cursor: pointer; font-weight: 800; }
.meta-op[aria-pressed=true] { border-color: var(--mango); background: var(--mango-suave); }
.meta-op span { color: var(--texto-suave); font-weight: 700; }

/* ---------- Mapa ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.lateral { position: sticky; top: 76px; }
.unidad { margin-bottom: 34px; }
.unidad__cab { background: var(--noche); color: #fff; border-radius: var(--radio); padding: 16px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.unidad__cab h2 { margin: 0; font-size: 21px; }
.unidad__cab p { margin: 2px 0 0; opacity: .8; font-size: 15px; }
.unidad__cab .chip { background: rgba(255,255,255,.15); color: #fff; }
.camino { list-style: none; margin: 0; padding: 22px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.paso { display: flex; align-items: center; gap: 14px; width: min(100%, 420px); }
.paso:nth-child(4n+2) { transform: translateX(48px); }
.paso:nth-child(4n+4) { transform: translateX(-48px); }
.nodo {
  width: 68px; height: 68px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 26px; font-weight: 900; color: #fff;
  background: var(--bloqueado); box-shadow: inset 0 -5px 0 rgba(0,0,0,.12);
  transition: transform .12s ease;
}
.nodo:hover { transform: scale(1.05); }
.nodo--hecho { background: var(--turquesa); }
.nodo--actual { background: var(--mango); box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), 0 0 0 6px var(--mango-suave); animation: latido 2s ease-in-out infinite; }
.nodo--jefe { width: 80px; height: 80px; font-size: 32px; }
.nodo--bloqueado { cursor: not-allowed; color: var(--superficie); }
@keyframes latido { 50% { box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), 0 0 0 11px var(--mango-suave); } }
@media (prefers-reduced-motion: reduce) { .nodo--actual { animation: none; } }
.paso__txt { font-weight: 800; line-height: 1.25; }
.paso__txt small { display: block; color: var(--texto-suave); font-weight: 700; }
.paso--bloqueado .paso__txt { color: var(--texto-suave); }
.carpi-mapa { display: flex; justify-content: center; }
.carpi-mapa img { width: 120px; opacity: .95; }
.ruta-futura { border: 2px dashed var(--borde); border-radius: var(--radio); padding: 16px 18px; color: var(--texto-suave); }
.ruta-futura h3 { color: var(--texto); }

.barra-prog { height: 14px; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--borde); overflow: hidden; }
.barra-prog > span { display: block; height: 100%; background: var(--maiz); border-radius: 999px; transition: width .35s ease; }
.barra-prog--ok > span { background: var(--turquesa); }
.fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grande { font-size: 30px; font-weight: 900; }

/* ---------- Lección ---------- */
.leccion { min-height: calc(100vh - 140px); display: flex; flex-direction: column; }
.leccion__top { max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 16px 0; display: flex; align-items: center; gap: 14px; }
.cerrar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--texto-suave); flex: none; }
.cerrar:hover { background: var(--superficie-2); }
.leccion__top .barra-prog { flex: 1; height: 16px; }
.leccion__top .barra-prog > span { background: var(--turquesa); }
.vidas-lec { font-weight: 900; color: var(--tomate); white-space: nowrap; }
.leccion__cuerpo { flex: 1; max-width: 760px; width: 100%; margin: 0 auto; padding: 24px 16px 140px; }
.tipo-ej { display: inline-block; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--mango-hover); margin-bottom: 6px; }
.enunciado { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.opciones { display: grid; gap: 10px; }
.opcion {
  text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--borde);
  background: var(--superficie); cursor: pointer; font-weight: 700; display: flex; gap: 12px; align-items: center;
}
.opcion:hover { border-color: var(--mango); }
.opcion .tecla { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--borde); display: grid; place-items: center; font-size: 14px; color: var(--texto-suave); }
.opcion[aria-pressed=true] { border-color: var(--mango); background: var(--mango-suave); }
.opcion.es-ok { border-color: var(--turquesa); background: var(--turquesa-suave); }
.opcion.es-mal { border-color: var(--tomate); background: var(--tomate-suave); }
.opciones[data-bloqueado] .opcion { cursor: default; }
.vf { grid-template-columns: 1fr 1fr; }
.vf .opcion { justify-content: center; font-size: 19px; min-height: 64px; }

.emparejar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.emparejar .col { display: grid; gap: 10px; align-content: start; }
.par { position: relative; }
.par[data-par]::after { content: attr(data-par); position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--noche); color: #fff; font-size: 13px; display: grid; place-items: center; font-weight: 900; }

.ordenar__resp { min-height: 64px; border: 2px dashed var(--borde); border-radius: 14px; padding: 10px; display: grid; gap: 8px; margin-bottom: 14px; counter-reset: paso; }
.ordenar__resp:empty::before { content: "Tocá los pasos en orden"; color: var(--texto-suave); font-weight: 700; padding: 8px; }
.ordenar__resp .opcion { counter-increment: paso; }
.ordenar__resp .opcion::before { content: counter(paso); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--noche); color: #fff; display: grid; place-items: center; font-size: 14px; }
.ordenar__pool { display: grid; gap: 8px; }

.calculo { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.calculo input { flex: 1; min-height: 58px; font-size: 24px; font-weight: 800; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--borde); background: var(--superficie); }
.calculo input:focus { border-color: var(--mango); outline: none; }
.calculo .unidad-txt { font-size: 22px; font-weight: 900; color: var(--texto-suave); }

.documento { background: var(--superficie); border: 2px solid var(--borde); border-radius: 10px; max-width: 520px; box-shadow: var(--sombra); overflow: hidden; }
.documento__tit { background: var(--superficie-2); padding: 10px 14px; font-weight: 900; border-bottom: 2px dashed var(--borde); font-size: 15px; }
.documento button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--borde); background: transparent; cursor: pointer; text-align: left; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; }
.documento button:last-child { border-bottom: 0; }
.documento button:hover { background: var(--mango-suave); }
.documento button[aria-pressed=true] { background: var(--mango-suave); outline: 2px solid var(--mango); outline-offset: -2px; }
.documento button.es-ok { background: var(--turquesa-suave); }
.documento button.es-mal { background: var(--tomate-suave); }

.qh-op { display: block; }
.qh-detalle { margin-top: 8px; font-weight: 600; font-size: 15px; display: grid; gap: 4px; }
.qh-detalle .pro::before { content: "👍 "; }
.qh-detalle .contra::before { content: "👎 "; }

.carpi-burbuja { display: flex; gap: 12px; align-items: flex-end; margin: 18px 0; }
.carpi-burbuja img { width: 86px; flex: none; }
.burbuja { background: var(--superficie); border: 2px solid var(--borde); border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-weight: 700; }
.intro-texto p { font-size: 18px; }
.intro-texto strong { color: var(--mango-hover); }
.fuentes-mini { background: var(--maiz-suave); border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 600; }

.pie-lec { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; border-top: 2px solid var(--borde); background: var(--superficie); }
.pie-lec__in { max-width: 760px; margin: 0 auto; padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.pie-lec--ok { background: var(--turquesa-suave); border-top-color: var(--turquesa); }
.pie-lec--mal { background: var(--tomate-suave); border-top-color: var(--tomate); }
.pie-lec--neutro { background: var(--maiz-suave); border-top-color: var(--maiz); }
.feedback { flex: 1; }
.feedback h3 { margin: 0 0 4px; font-size: 20px; }
.pie-lec--ok h3 { color: var(--turquesa); }
.pie-lec--mal h3 { color: var(--tomate); }
.feedback p { margin: 0; font-size: 15px; font-weight: 600; }
.feedback .correcta { margin-bottom: 4px; }

.fin { text-align: center; max-width: 560px; margin: 0 auto; padding: 32px 16px 60px; }
.fin img.carpi { width: 160px; }
.fin__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.fin__stats .card { margin: 0; padding: 14px; }
.tarjeta-recordar { text-align: left; background: var(--maiz-suave); border: 2px solid var(--maiz); border-radius: var(--radio); padding: 16px 18px; margin: 18px 0; }
.tarjeta-recordar h3 { margin-bottom: 8px; }
.tarjeta-recordar ul { margin: 0; padding-left: 20px; font-weight: 700; }
.logro-nuevo { background: var(--mango-suave); border-radius: 14px; padding: 10px 14px; font-weight: 800; margin-top: 8px; }

/* ---------- Perfil ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stats-grid .card { margin: 0; }
.logros { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.logro { display: flex; gap: 12px; align-items: center; background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: 12px; }
.logro__ico { font-size: 30px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--mango-suave); border-radius: 12px; flex: none; }
.logro--no { opacity: .55; }
.logro--no .logro__ico { filter: grayscale(1); background: var(--superficie-2); }
.logro b { display: block; }
.logro small { color: var(--texto-suave); font-weight: 600; }

.fuentes-lista { display: grid; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .lateral { position: static; order: -1; }
  .lateral .card:not(.card--meta) { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 12px; gap: 8px; }
  .hero__acciones { margin: 18px auto 0; }
  .hero__img img { width: 200px; }
  .barra__nav { display: none; }
  .barra__in { gap: 8px; }
  .marca span { display: none; }
  .stat { padding: 4px 6px; font-size: 15px; }
  .paso { width: calc(100% - 40px); }
  .paso:nth-child(4n+2) { transform: translateX(18px); }
  .paso:nth-child(4n+4) { transform: translateX(-18px); }
  .nodo { width: 60px; height: 60px; font-size: 23px; }
  .nodo--jefe { width: 70px; height: 70px; font-size: 28px; }
  .enunciado { font-size: 19px; }
  .emparejar .opcion { padding: 10px; font-size: 14px; }
  .pie-lec__in { flex-direction: column; align-items: stretch; }
  .pie-lec__in .btn { width: 100%; }
  .nav-movil:not([hidden]) { display: flex; }
}
.nav-movil { display: none; position: sticky; bottom: 0; z-index: 14; background: var(--superficie); border-top: 1px solid var(--borde); justify-content: space-around; padding: 6px 0; }
.nav-movil a { text-decoration: none; color: var(--texto-suave); font-weight: 800; font-size: 13px; text-align: center; padding: 4px 10px; border-radius: 10px; }
.nav-movil a span { display: block; font-size: 22px; }
.nav-movil a.activo { color: var(--texto); background: var(--mango-suave); }

/* ---------- Liga semanal ---------- */
.insignia { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; font-size: 22px; background: var(--div); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); flex: none; }
.insignia--chica { width: 34px; height: 34px; font-size: 17px; border-radius: 11px; }
.escalera { display: flex; justify-content: space-between; gap: 6px; margin: 6px 0 18px; padding: 12px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); }
.escalera__paso { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.escalera__paso small { font-weight: 800; font-size: 12px; color: var(--texto-suave); }
.escalera__paso.es-actual small { color: var(--texto); }
.escalera__paso.es-futura .insignia { filter: grayscale(1); opacity: .45; }
.tabla-liga { list-style: none; margin: 0; padding: 0; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.fila-liga { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--borde); font-weight: 700; }
.fila-liga:last-child { border-bottom: 0; }
.fila-liga__pos { width: 26px; text-align: center; font-weight: 900; color: var(--texto-suave); }
.zona-sube .fila-liga__pos { color: var(--turquesa); }
.zona-baja .fila-liga__pos { color: var(--tomate); }
.fila-liga__nom { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fila-liga__xp { font-weight: 900; white-space: nowrap; }
.fila-liga.es-yo { background: var(--mango-suave); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mango); color: #fff; font-weight: 900; flex: none; }
.avatar--personaje { background: var(--superficie-2); color: var(--texto-suave); border: 2px dashed var(--borde); }
.tag-personaje { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; background: var(--superficie-2); color: var(--texto-suave); border: 1px solid var(--borde); vertical-align: middle; }
.leyenda-liga { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--texto-suave); font-weight: 700; }
.punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.punto--sube { background: var(--turquesa); }
.punto--baja { background: var(--tomate); }
@media (max-width: 720px) {
  .escalera { padding: 10px 6px; }
  .escalera__paso small { font-size: 10px; }
  .fila-liga { gap: 8px; padding: 9px 10px; }
}

/* ---------- App instalada (pantalla completa en el celular) ---------- */
.barra { padding-top: env(safe-area-inset-top); }
.nav-movil { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
.pie-lec__in { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.pie { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.barra__in, .contenedor { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
}
.aviso-red { position: sticky; top: 0; z-index: 25; background: var(--noche); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); }
.instalar { display: flex; gap: 12px; align-items: center; }
.instalar img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.pasos-ios { margin: 8px 0 0; padding-left: 20px; font-weight: 600; }
.pasos-ios li { margin-bottom: 4px; }

/* ---------- Invitados ---------- */
.nodo--perfil { background: var(--maiz); color: var(--noche); box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); }
.paso--perfil .paso__txt small:last-child { color: var(--mango-hover); font-weight: 800; }
.tarjeta-invitado { border: 2px solid var(--mango); }
.fin .carpi-burbuja img { width: 64px; }
