/* Panel Yaya — «Papel moneda». Los colores llegan como tokens desde js/theme.js (marca blanca).
   Valores de respaldo = vista Yaya (verde dinero), para que el primer pintado ya sea el correcto. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin.woff2") format("woff2");
  font-weight: 500 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2116, U+20AC;
}
:root {
  color-scheme: light;
  --paper: #f6fdf9; --ground: #e3f4eb; --shell: #003b26; --shell-2: #104b34; --shell-ink: #fff; --shell-ink-2: #c1d7cb;
  --ink: #102119; --ink-2: #415249; --ink-3: #5e6d65; --line: #30674f; --line-2: #5c9479; --line-soft: #bdd9ca;
  --wash: #d6efe2; --hair: #c8d9d0; --serial: #8a5c10; --serial-mark: #b2852c; --yape: #7a3aa6; --plin: #00908f;
  --crit: #b3261e; --warn: #8a5a00; --warn-bg: #fbefcf; --ok: #1d6b3a;
  --din: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --r: 14px; --r-s: 9px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t1: .75rem; --t2: .8125rem; --t3: .9375rem; --t4: 1.125rem; --t5: 1.375rem; --t6: 1.75rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t3)/1.45 var(--ui);
  font-variant-numeric: tabular-nums; caret-color: var(--line); -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--line-soft); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--line); outline-offset: 2px; border-radius: 6px; }
a { color: var(--line); text-underline-offset: 3px; }
h1, h2, p, dl, dd, ol, ul { margin: 0; }
button, select { font: inherit; color: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { display: block; }
.din { font-family: var(--din); font-weight: 700; font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.sub { color: var(--ink-3); font-size: var(--t2); }
.saltar { position: absolute; left: 8px; top: -60px; background: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.saltar:focus { top: 8px; }

/* ---------- cabecera (franja de billete) ---------- */
.barra {
  position: sticky; top: 0; z-index: 10; background: var(--shell); color: var(--shell-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); min-height: 60px;
}
.marca { display: flex; align-items: center; gap: 11px; min-width: 0; }
.logo { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--paper); }
.logo.mono { display: grid; place-items: center; background: var(--shell-ink); color: var(--shell); font: 700 1.25rem/1 var(--din); }
.marca-t { display: flex; flex-direction: column; min-width: 0; }
.marca-t b { font-size: var(--t4); font-weight: 650; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.marca-t span { font-size: var(--t1); color: var(--shell-ink-2); letter-spacing: .02em; }
.sede-sel { position: relative; flex: none; }
.sede-sel select {
  appearance: none; background: var(--shell-2); color: var(--shell-ink); border: 1px solid color-mix(in srgb, var(--shell-ink) 28%, transparent);
  border-radius: var(--r-s); padding: 0 32px 0 12px; height: 44px; font-size: var(--t2); font-weight: 600; max-width: 44vw;
}
.sede-sel::after { content: ""; position: absolute; right: 13px; top: 19px; width: 7px; height: 7px; border: solid var(--shell-ink-2); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); pointer-events: none; }
.sede-sel select:disabled { opacity: 1; padding-right: 12px; }
.sede-sel:has(select:disabled)::after { display: none; }
.sede-sel select:focus-visible { outline-color: var(--shell-ink); }
.demo { background: var(--warn-bg); color: var(--warn); font-size: var(--t2); padding: 7px 16px; text-align: center; }
.demo b { letter-spacing: .06em; text-transform: uppercase; font-size: var(--t1); margin-right: 4px; }

/* ---------- contenedor ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
#vista { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 14px 12px 104px; display: flex; flex-direction: column; gap: 12px; }
.rejilla { display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px; }
.panel h2 { font-size: var(--t3); font-weight: 650; color: var(--ink); margin-bottom: 12px; }
.ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ph h2 { margin: 0; }
.lnk { font-size: var(--t2); font-weight: 600; padding: 10px 0; }
.nota { display: flex; gap: 6px; align-items: center; color: var(--ink-3); font-size: var(--t2); margin: -4px 0 10px; }
.nota svg { width: 16px; height: 16px; flex: none; }
.h-v { font-size: var(--t6); font-weight: 700; letter-spacing: -.015em; margin-bottom: 14px; }

/* ---------- el billete ---------- */
.billete {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r); padding: 18px 18px 18px;
  background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink);
}
.billete::before { /* filete interior, como el marco impreso de un billete */
  content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-soft); border-radius: 10px; pointer-events: none; z-index: -1;
}
.roseta-wrap { position: absolute; z-index: -1; right: -86px; top: -64px; width: 300px; height: 300px; color: var(--line-2); opacity: .55; }
.roseta { width: 100%; height: 100%; }
.roseta .barrido { stroke: var(--serial-mark); stroke-dasharray: 0 1000; opacity: 0; }
.roseta .barrido.on { animation: barrido .6s var(--ease) 1; }
@keyframes barrido { 0% { stroke-dasharray: 0 1000; opacity: .95; } 80% { stroke-dasharray: 1000 0; opacity: .9; } 100% { stroke-dasharray: 1000 0; opacity: 0; } }
.serie-l { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: var(--t1); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--serial); }
.serie-l b { font-weight: 700; }
.vivo { display: inline-flex; align-items: center; gap: 6px; color: var(--serial); }
.vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--serial-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--serial-mark) 28%, transparent); }
.vivo.off i { background: var(--ink-3); box-shadow: none; }
.vivo.off { color: var(--ink-3); }
.billete .et { margin-top: 20px; font-size: var(--t3); font-weight: 600; color: var(--ink-2); }
.et { font-size: var(--t2); font-weight: 600; color: var(--ink-2); }
.numeral { display: flex; align-items: baseline; font: 700 4.25rem/1 var(--din); color: var(--ink); margin: 6px 0 10px; letter-spacing: -.02em; font-variant-numeric: lining-nums; min-height: 4.25rem; }
.numeral[data-n="8"] { font-size: 3.6rem; }
.numeral[data-n="9"] { font-size: 3.15rem; }
.numeral[data-n="10"], .numeral[data-n="11"], .numeral[data-n="12"] { font-size: 2.75rem; }
.numeral .sol { font-size: .5em; margin-right: .14em; color: var(--line); font-weight: 600; }
.numeral .dg { display: inline-block; height: 1em; overflow: hidden; }
.numeral .tira { display: flex; flex-direction: column; transition: transform .6s var(--ease); }
.numeral .tira span { height: 1em; }
.numeral.quieto .tira { transition: none; }
.numeral .sep { display: inline-block; }
.din .coma, .numeral .coma { font-family: var(--ui); font-weight: 700; font-size: .58em; margin: 0 .04em 0 .02em; }
.esq-n { display: block; width: 62%; height: .8em; border-radius: 8px; background: var(--wash); }
.comp { display: flex; gap: 6px; align-items: flex-start; font-size: var(--t2); color: var(--ink-2); max-width: 40ch; }
.comp svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.comp.sube svg { color: var(--ok); }
.comp.baja svg { color: var(--crit); }
.comp b { color: var(--ink); font-weight: 650; }

/* ---------- Yape / Plin ---------- */
.split { display: flex; gap: 2px; height: 14px; }
.split .sp { border-radius: 2px; min-width: 4px; }
.split .sp:first-child { border-radius: 4px 2px 2px 4px; }
.split .sp:last-child { border-radius: 2px 4px 4px 2px; }
.split .sp:only-child { border-radius: 4px; }
.m-yape { background: var(--yape); } .m-plin { background: var(--plin); }
.m-transferencia { background: var(--transferencia, #eb6834); } .m-tarjeta { background: var(--tarjeta, #2a78d6); } .m-efectivo { background: var(--efectivo, #c98500); }
.split-l { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split-l li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.split-l .sw { grid-row: span 3; align-self: start; margin-top: 5px; }
.split-l .mt { font-size: var(--t2); font-weight: 650; color: var(--ink-2); }
.split-l b { font-size: var(--t5); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.vacio-mini { color: var(--ink-3); font-size: var(--t2); }

/* ---------- serie de pagos ---------- */
.serie { list-style: none; padding: 0; }
.fila { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 10px; min-height: 60px; padding: 8px 2px; border-top: 1px solid var(--hair); }
.der { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.der-b { display: flex; align-items: center; gap: 6px; }
.fila:first-child { border-top: 0; }
.fila .nro { font-size: var(--t1); font-weight: 700; letter-spacing: .05em; color: var(--serial); min-width: 4.4em; }
.serie:not(:has(.nro)) .fila { grid-template-columns: 1fr auto; }
.quien { display: flex; flex-direction: column; min-width: 0; }
.quien b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: var(--t1); font-weight: 700; border-radius: 6px; padding: 3px 7px; letter-spacing: .02em; }
.chip.m-yape { background: var(--yape-chip, #7a3aa6); color: var(--chip-ink, #fff); }
.chip.m-plin { background: var(--plin-chip, #00716f); color: var(--plin-chip-ink, #fff); }
.chip.m-tarjeta, .chip.m-transferencia, .chip.m-efectivo { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.monto { font: 700 1.25rem/1.1 var(--din); font-variant-numeric: lining-nums; text-align: right; min-width: 5.6em; }
.fila.dev .monto { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.sello { font-size: .6875rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--crit); border: 1.5px solid var(--crit); border-radius: 4px; padding: 1px 5px; transform: rotate(-4deg); }
.fila.nueva { animation: imprime .6s var(--ease) 1; }
@keyframes imprime { 0% { background: color-mix(in srgb, var(--serial-mark) 24%, transparent); clip-path: inset(0 100% 0 0); } 45% { clip-path: inset(0 0 0 0); } 100% { background: color-mix(in srgb, var(--serial-mark) 0%, transparent); } }

/* ---------- gráficos ---------- */
.grid { stroke: var(--hair); stroke-width: 1; }
.ax { fill: var(--ink-3); font: 500 11px var(--ui); }
.ax.fuerte, .lbl.fuerte { fill: var(--ink); font-weight: 700; }
.val { fill: var(--ink); font: 700 12px var(--ui); }
.lbl { fill: var(--ink-2); font: 500 12px var(--ui); }
.bar:not([fill]) { fill: var(--line); }
.bar-sw { background: repeating-linear-gradient(45deg, var(--line) 0 2px, var(--line-2) 2px 3px); }
.bar.sel { fill: var(--shell); }
.bar-otro { fill: var(--line-soft); }
.prom { stroke: var(--line-2); stroke-width: 2.5; }
.hit { fill: transparent; cursor: pointer; outline: none; }
.hit:focus-visible { fill: color-mix(in srgb, var(--line) 12%, transparent); }
.ln { fill: none; stroke: var(--line); stroke-width: 2; stroke-linejoin: round; }
.pt { fill: var(--line); stroke: var(--paper); stroke-width: 2; }
.onset { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cross { stroke: var(--ink-3); stroke-width: 1; }
.leyenda { display: flex; gap: 16px; font-size: var(--t2); color: var(--ink-2); margin: -4px 0 8px; }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.prom-sw { background: var(--line-2); height: 2px; width: 14px; border-radius: 1px; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--ink); color: var(--paper); font-size: var(--t2); line-height: 1.35; padding: 7px 9px; border-radius: 8px; opacity: 0; transition: opacity .12s; white-space: nowrap; box-shadow: 0 6px 16px rgb(0 0 0 / .18); }
.tip.on { opacity: 1; }

/* ---------- controles ---------- */
.ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--ground); border: 1px solid var(--hair); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; min-height: 44px; padding: 0 13px; border-radius: 8px; font-size: var(--t2); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .18s, color .18s; }
.seg button:hover { color: var(--ink); background: var(--wash); }
.seg button[aria-pressed="true"] { background: var(--shell); color: var(--shell-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--line); font-weight: 650; cursor: pointer; transition: background .18s; }
.btn:hover { background: var(--wash); }
.btn:disabled { opacity: .55; cursor: not-allowed; background: var(--paper); }
.btn svg { width: 18px; height: 18px; }
.btn.ancho { width: 100%; margin-top: 12px; }
.btn.peligro { border-color: var(--crit); color: var(--crit); }
.btn-t { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--line); font-size: var(--t2); font-weight: 650; min-height: 44px; cursor: pointer; padding: 0 2px; }
.btn-t svg { width: 17px; height: 17px; }
.tot .total { font-size: 2.75rem; line-height: 1.05; margin: 4px 0 8px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.mini dt { font-size: var(--t1); color: var(--ink-3); }
.mini dd { font-weight: 650; font-size: var(--t4); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 12px; }
.kpis dt { font-size: var(--t2); color: var(--ink-3); }
.cifra { font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis dd.cifra { font-size: 2rem; line-height: 1.1; margin-top: 2px; }
.rating { display: inline-flex; align-items: center; gap: 4px; }
.rating svg { width: .8em; height: .8em; color: var(--line); }
.estado.neutro { background: var(--wash); color: var(--ink-2); }
.marca-agua { position: absolute; inset: 0; display: grid; place-items: center; font: 700 2.6rem/1 var(--din); color: var(--line); opacity: .5; }
.marca-agua img { width: 46px; height: 46px; border-radius: 50%; filter: grayscale(1); opacity: .55; mix-blend-mode: multiply; }
.micro { overflow: hidden; white-space: nowrap; font: 600 5.5px/1 var(--ui); letter-spacing: .14em; color: var(--line-2); user-select: none; }
.billete .micro { margin-top: 16px; }
.estado { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t2); font-weight: 650; border-radius: 7px; padding: 3px 8px; margin-top: 6px; }
.estado svg { width: 15px; height: 15px; }
.estado.warn { background: var(--warn-bg); color: var(--warn); }
.estado.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.goo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.goo .rating { font-size: 2rem; }
.goo .estado { margin: 0 0 0 auto; align-self: center; }

/* ---------- tablas ---------- */
.tabla-w { overflow-x: auto; margin: 0 -4px; }
.t { width: 100%; border-collapse: collapse; font-size: var(--t3); }
.t th, .t td { text-align: left; padding: 10px 5px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.t th { font-size: var(--t2); color: var(--ink-3); font-weight: 600; }
.t th button { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 6px 0; font-weight: 650; color: var(--ink-2); cursor: pointer; min-height: 44px; }
.t th .orden svg { width: 14px; height: 14px; }
.t th[aria-sort="ascending"] button, .t th[aria-sort="descending"] button { color: var(--ink); }
.t .n { text-align: right; }
.t tbody tr:last-child td { border-bottom: 0; }

/* ---------- vistas específicas ---------- */
.rec { display: flex; align-items: baseline; gap: 12px; }
.rec .total { font-size: 3rem; flex: none; line-height: 1; }
.sd-b { display: block; height: 8px; border-radius: 4px; background: var(--wash); overflow: hidden; }
.sd-b i { display: block; height: 100%; background: var(--line); border-radius: 4px; }
.sd-b.ancha { margin-top: 14px; height: 12px; border-radius: 6px; }
.sedes { list-style: none; padding: 0; display: grid; gap: 12px; }
.sedes li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.sd-n { font-weight: 600; }
.sd-m { font-size: var(--t4); text-align: right; }
.sedes .sd-b { grid-column: 1; }
.sedes .sub { text-align: right; }
.mejora { position: relative; isolation: isolate; border-color: var(--line); border-width: 1.5px; }
.mejora::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--line-soft); border-radius: 10px; pointer-events: none; z-index: -1; }
.mejora .micro { margin: -4px 0 12px; }
.mj-q { color: var(--line); font-size: var(--t2); font-weight: 650; margin-bottom: 8px; }
.btn.lleno { width: 100%; margin-top: 16px; background: var(--accion, var(--shell)); color: var(--accion-ink, #fff); border-color: var(--accion, var(--shell)); text-decoration: none; transition: filter .18s; }
.btn.lleno:hover { background: var(--accion, var(--shell)); filter: brightness(1.12); }
.mejora .nota { margin: 8px 0 0; justify-content: center; }
.panel h2.mj-t { font-size: var(--t5); font-weight: 700; line-height: 1.25; margin-bottom: 4px; text-wrap: balance; }
.mejora .sin-retorno { color: var(--ink-2); }
.mj-r { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; color: var(--ink-2); font-size: var(--t2); }
.mj-r .din { font-size: 2rem; color: var(--ink); }
.sup { font-size: var(--t2); color: var(--ink-2); }
.checks { list-style: none; padding: 0; }
.checks li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; min-height: 46px; border-top: 1px solid var(--hair); }
.checks li:first-child { border: 0; }
.checks svg { width: 20px; height: 20px; color: var(--ok); }
.empresas { list-style: none; padding: 0; display: grid; gap: 6px; }
.empresas a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-weight: 600; }
.empresas a:hover { background: var(--wash); }
.empresas a[aria-current] { border-color: var(--line); }
.empresas .sw { width: 18px; height: 18px; border-radius: 50%; }
.empresas .sub { margin-left: auto; }
.acceso { display: flex; align-items: center; gap: 12px; min-height: 56px; color: var(--ink); text-decoration: none; }
.acceso > svg:first-child { width: 28px; height: 28px; color: var(--line); flex: none; }
.acceso > svg:last-child { width: 20px; height: 20px; color: var(--ink-3); margin-left: auto; flex: none; }
.acceso b { display: block; font-size: var(--t4); }
.acceso:hover b { color: var(--line); }
.acceso-p { padding-top: 8px; padding-bottom: 8px; }
.explorar .marco-explorar { height: 880px; margin: 4px -6px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--hair); background: var(--paper); }
.explorar .marco-explorar iframe { width: 100%; height: 100%; border: 0; display: block; }
.explorar .solo-movil { display: none; }
@media (max-width: 759px) { .explorar .solo-movil { display: flex; } .explorar .marco-explorar { height: 620px; } }
.tarjeta .origen { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: var(--t1); color: var(--ink-3); }
.grande-t { font-size: 2.75rem; line-height: 1.05; }
.tarjeta .t { font-size: var(--t2); }
.tarjeta .t th, .tarjeta .t td { padding: 9px 4px; }
.aislado { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--hair); }
.aislado .nota { margin: 8px 0 0; }

/* ---------- estados ---------- */
.esq { display: grid; gap: 12px; }
.esq-b { height: 132px; border-radius: var(--r); background: linear-gradient(100deg, var(--paper) 30%, var(--wash) 50%, var(--paper) 70%) 0 0/300% 100%; border: 1px solid var(--hair); animation: brillo 1.4s linear infinite; }
@keyframes brillo { to { background-position: -150% 0; } }
.esq-billete .serie-l { height: 14px; }
.vacio { padding: 18px 4px 8px; color: var(--ink-2); }
.vacio b { color: var(--ink); }
.error { display: flex; gap: 12px; border-color: var(--crit); }
.error > svg { width: 24px; height: 24px; color: var(--crit); flex: none; }
.error p { color: var(--ink-2); margin: 4px 0 12px; }

/* ---------- navegación inferior ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--shell);
  padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid color-mix(in srgb, var(--shell-ink) 12%, transparent);
}
.tabs a { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; color: var(--shell-ink-2); text-decoration: none; font-size: var(--t1); font-weight: 600; }
.tabs a svg { width: 23px; height: 23px; }
.tabs a[aria-current="page"] { color: var(--shell-ink); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--shell-ink); }
.tabs .punto { position: absolute; top: 12px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--shell-ink); border: 2px solid var(--shell); }
.tabs a:focus-visible { outline-color: var(--shell-ink); outline-offset: -4px; }
.toast {
  position: fixed; left: 50%; bottom: 80px; z-index: 20; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 12px;
  font-size: var(--t2); font-weight: 600; box-shadow: 0 8px 24px rgb(0 0 0 / .22); transition: opacity .2s, transform .25s var(--ease); max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; flex: none; }
.firma { text-align: center; color: var(--ink-3); font-size: var(--t1); padding: 0 16px 92px; letter-spacing: .03em; }

/* ---------- escritorio: riel lateral y dos columnas ---------- */
@media (min-width: 960px) {
  .app { padding-left: 96px; }
  .tabs { top: 0; right: auto; width: 96px; flex-direction: column; justify-content: flex-start; padding-top: 76px; border: 0; }
  .tabs a { flex: none; min-height: 76px; }
  .tabs a { margin: 2px 10px; border-radius: 12px; }
  .tabs a[aria-current="page"] { background: var(--shell-2); }
  .tabs a[aria-current="page"]::before { display: none; }
  .barra { padding-left: 24px; padding-right: 24px; }
  #vista { max-width: 1080px; padding: 22px 24px 40px; }
  #vista[data-v="hoy"] .rejilla, #vista[data-v="analisis"] .rejilla { display: block; columns: 2; column-gap: 14px; }
  #vista[data-v="hoy"] .rejilla > .panel, #vista[data-v="analisis"] .rejilla > .panel { break-inside: avoid; margin-bottom: 14px; }
  #vista:not([data-v="hoy"]):not([data-v="analisis"]) { max-width: 760px; }
  .billete { padding: 26px 30px; }
  .numeral { font-size: 5.25rem; }
  .numeral[data-n="9"], .numeral[data-n="10"], .numeral[data-n="11"] { font-size: 4.4rem; }
  .roseta-wrap { width: 420px; height: 420px; right: -40px; top: -110px; }
  .firma { padding-bottom: 24px; }
  .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (forced-colors: active) {
  .bar, .seg button[aria-pressed="true"] { forced-color-adjust: none; }
}
