/* Estructura común a los tres temas. Los colores, tipografías y la movida firma de cada
   mundo viven en temas.css como tokens; acá sólo se usan los tokens. */

@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(fonts/spline-sans-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(fonts/spline-sans-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url(fonts/spline-sans-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body, 15px)/1.45 var(--font-ui); font-feature-settings: "tnum" 1, "lnum" 1;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sel); color: var(--sel-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: var(--w-display); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.serie { font-family: var(--font-serie); letter-spacing: .02em; }
.tenue { color: var(--muted); }
.neg { color: var(--bad); }
.pos { color: var(--good); }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100dvh; }
.rail {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 12px; background: var(--rail-bg); color: var(--rail-ink); border-right: 1px solid var(--rail-line);
}
.marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.marca-sello { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--marca-bg); display: grid; place-items: center; color: var(--marca-ink); }
.marca b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.marca small { display: block; color: var(--rail-muted); font-size: 12px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail a.nav {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--rail-ink); text-decoration: none; font-weight: 500; transition: background .15s, color .15s;
}
.rail a.nav:hover { background: var(--rail-hover); }
.rail a.nav[aria-current="page"] { background: var(--rail-active); color: var(--rail-active-ink); }
.rail a.nav .cuenta { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--audit); color: var(--audit-ink); font-size: 12px; text-align: center; }
.rail .pie { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--rail-line); display: grid; gap: 8px; }
.rail .pie .quien b { display: block; font-weight: 600; }
.rail .pie .quien small { color: var(--rail-muted); }
.rail .pie button { justify-self: start; }

main { min-width: 0; padding: 0 28px 64px; }
.barra {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 -28px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line);
}
.barra h1 { font-size: 20px; margin-right: auto; }
.fecha-nav { display: flex; align-items: center; gap: 4px; }
.fecha-nav select { min-width: 150px; }

.vista { display: grid; gap: 28px; padding-top: 24px; }
.seccion { display: grid; gap: 12px; min-width: 0; }
.seccion > * { min-width: 0; }
.grafico-caja { width: 100%; min-height: 150px; }
.tipo { display: inline-block; min-width: 58px; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-align: center; }
.tipo.compra { background: var(--good-bg); color: var(--good); }
.tipo.venta { background: var(--chip); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.segmentos.grande { display: flex; }
.segmentos.grande button { flex: 1; height: 42px; font-size: 16px; font-weight: 600; }
details.mas-datos { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
details.mas-datos summary { cursor: pointer; font-weight: 600; }
details.mas-datos[open] summary { margin-bottom: 12px; }
.precinto-num { font-family: var(--font-serie); font-weight: 600; letter-spacing: .04em; }
.seccion > header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.seccion > header h2 { margin-right: auto; }
.dos { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }

/* --------------------------------------------------------------- controles */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .08s; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primario:hover { background: var(--accent-hover); }
.btn.audit { background: var(--audit); border-color: var(--audit); color: var(--audit-ink); }
.btn.peligro { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.chico { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icono { width: 36px; padding: 0; justify-content: center; }
.btn.fantasma { background: transparent; border-color: transparent; }
.btn.fantasma:hover { background: var(--hover); }
.rail .btn.fantasma { color: var(--rail-ink); }
.rail .btn.fantasma:hover { background: var(--rail-hover); }

input, select, textarea {
  height: 36px; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong);
  background: var(--field); min-width: 0;
}
textarea { height: auto; padding: 8px 10px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type="checkbox"] { height: 16px; width: 16px; accent-color: var(--accent); }
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.campo small { color: var(--muted); font-size: 12px; }
.campo .error { color: var(--bad); font-size: 13px; }
.form { display: grid; gap: 14px; }
.form .fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filtros label.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.segmentos { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); overflow: hidden; }
.segmentos button { border: 0; background: transparent; padding: 0 12px; height: 32px; cursor: pointer; font-weight: 500; }
.segmentos button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--chip); color: var(--ink-2); white-space: nowrap;
}
.chip.ok { background: var(--good-bg); color: var(--good); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.audit { background: var(--audit); color: var(--audit-ink); }

/* ------------------------------------------------------------------ tablas */
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; vertical-align: middle; }
thead th {
  position: sticky; top: 0; background: var(--th-bg); color: var(--ink-2); font-size: 12.5px; font-weight: 600;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
thead th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
thead th button:focus-visible { outline: 2px solid var(--focus); }
thead th[aria-sort="ascending"] button::after { content: "▲"; font-size: 9px; }
thead th[aria-sort="descending"] button::after { content: "▼"; font-size: 9px; }
tbody tr + tr td { border-top: 1px solid var(--line); }
tbody tr.clic { cursor: pointer; }
tbody tr.clic:hover td { background: var(--hover); }
tbody tr[aria-selected="true"] td { background: var(--sel-row); }
td.d, th.d { text-align: right; }
td.talon, td.nw { white-space: nowrap; }
tr.void td { background-attachment: fixed; }
tfoot td { border-top: 1px solid var(--line-strong); font-weight: 600; }
tr.anulada td { color: var(--muted); }
tr.anulada td.tachable { text-decoration: line-through; }
tr.inactivo td { color: var(--muted); }
.vacio { padding: 36px 16px; text-align: center; color: var(--muted); display: grid; gap: 8px; justify-items: center; }

/* ------------------------------------------------------------------ cierre */
.franja { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.franja .dia h1 { font-size: var(--fs-h1); }
.franja .dia p { color: var(--muted); }
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cifra { padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.cifra + .cifra { border-left: 1px solid var(--line); }
.cifra .etq { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cifra .val { white-space: nowrap; font-family: var(--font-num); font-size: clamp(19px, 2.1vw, var(--fs-cifra)); font-weight: var(--w-cifra); letter-spacing: -.01em; line-height: 1.1; }
.cifra .sub { font-size: 13px; color: var(--muted); }
.cifra.principal { background: var(--cifra-principal-bg); color: var(--cifra-principal-ink); }
.cifra.principal .etq, .cifra.principal .sub { color: var(--cifra-principal-muted); }

.grafico { width: 100%; height: auto; display: block; overflow: visible; }
.grafico text { font-family: var(--font-ui); font-size: 11px; fill: var(--muted); }
.grafico .eje { stroke: var(--line-strong); }
.grafico .barra-dia { fill: var(--serie-1); }
.grafico .barra-dia.abierto { fill: var(--serie-hoy); }
.grafico .barra-dia.violado { fill: var(--audit); }
.grafico .barra-dia.neg { fill: var(--bad); }
.grafico .linea-saldo { fill: none; stroke: var(--serie-1); stroke-width: 2; }
.grafico .linea-proy { fill: none; stroke: var(--serie-2); stroke-width: 2; stroke-dasharray: 5 4; }
.grafico .banda { fill: var(--serie-2); opacity: .16; }
.grafico .minimo { stroke: var(--bad); stroke-dasharray: 2 3; stroke-width: 1.5; }
.grafico .marca-riesgo { fill: var(--warn); }
.grafico .guia { stroke: var(--line); }
.grafico rect.toque { fill: transparent; cursor: pointer; }
.tip {
  position: fixed; z-index: 50; pointer-events: none; padding: 7px 10px; border-radius: var(--r-sm);
  background: var(--tip-bg); color: var(--tip-ink); font-size: 12.5px; box-shadow: 0 6px 20px rgb(0 0 0 / .18);
}

.resultado td:first-child { padding-left: 0; }
.resultado td { padding-top: 7px; padding-bottom: 7px; border-top: 0 !important; }
.resultado tr.total td { border-top: 1px solid var(--line-strong) !important; font-weight: 700; padding-top: 10px; }
.resultado tr.final td { font-size: 17px; font-weight: 700; }
.resultado td.sangria { padding-left: 18px; color: var(--ink-2); }

.socio { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; }
.socio + .socio { border-top: 1px solid var(--line); }
.socio .monto { font-family: var(--font-num); font-size: 20px; font-weight: 700; text-align: right; }
.socio .barra-socio { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; }
.socio .barra-socio i { display: block; height: 100%; background: var(--serie-1); border-radius: 3px; }

.alertas { display: grid; gap: 8px; }
.alerta { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bad-bg); }
.alerta svg { color: var(--bad); margin-top: 2px; }
.alerta.warn { background: var(--warn-bg); }
.alerta.warn svg { color: var(--warn); }
.alerta b { display: block; font-weight: 600; }
.alerta a { font-size: 13px; }

/* --------------------------------------------------------- correcciones */
del.antes { color: var(--audit); text-decoration-color: var(--audit); text-decoration-thickness: 1.5px; margin-right: 6px; }
ins.despues { text-decoration: none; font-weight: 600; }
.marca-corr { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--audit); font-weight: 600; }

/* ----------------------------------------------------------- panel lateral */
.lateral-fondo { position: fixed; inset: 0; z-index: 30; background: rgb(10 15 20 / .32); opacity: 0; transition: opacity .2s; }
.lateral-fondo.abierto { opacity: 1; }
.lateral {
  position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface);
  border-left: 1px solid var(--line-strong); box-shadow: -12px 0 40px rgb(0 0 0 / .14); display: grid; grid-template-rows: auto 1fr;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.lateral.abierto { transform: none; }
.lateral > header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lateral > header h2 { margin-right: auto; font-size: 18px; }
.lateral .cuerpo { overflow-y: auto; padding: 18px; display: grid; gap: 22px; align-content: start; }
dl.datos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.datos dt { color: var(--muted); }
dl.datos dd { margin: 0; min-width: 0; }
dl.datos dd.num { white-space: normal; overflow-wrap: anywhere; }
.historia { display: grid; gap: 12px; }
.evento { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid var(--line-strong); }
.evento .quien { font-size: 13px; color: var(--muted); }
.evento .motivo { font-style: italic; }

/* ------------------------------------------------------------- pronóstico */
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.multiple { display: grid; gap: 8px; }
.multiple header { display: flex; align-items: baseline; gap: 8px; }
.multiple header b { font-family: var(--font-display); font-size: 18px; margin-right: auto; }
.leyenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.leyenda i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 6px; background: var(--serie-1); }
.leyenda i.proy { background: repeating-linear-gradient(90deg, var(--serie-2) 0 5px, transparent 5px 9px); }
.leyenda i.cuadro { width: 10px; height: 10px; border-radius: 2px; }
.leyenda i.hoy { background: var(--serie-hoy); }
.leyenda i.violado { background: var(--audit); }
.leyenda i.min { background: repeating-linear-gradient(90deg, var(--bad) 0 2px, transparent 2px 5px); }

/* ------------------------------------------------------------------- temas */
.temas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tema-op { all: unset; cursor: pointer; display: grid; gap: 10px; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--surface); }
.tema-op:focus-visible { outline: 2px solid var(--focus); }
.tema-op[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.tema-op .muestra { display: flex; height: 44px; border-radius: 6px; overflow: hidden; }
.tema-op .muestra i { flex: 1; }
.tema-op b { font-size: 15px; }
.tema-op p { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ login */
.ingreso { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); }
.ingreso .lado { background: var(--rail-bg); color: var(--rail-ink); padding: 48px; display: grid; align-content: space-between; gap: 32px; }
.ingreso .lado h1 { font-size: clamp(30px, 4vw, 48px); max-width: 14ch; }
.ingreso .lado p { color: var(--rail-muted); max-width: 46ch; }
.ingreso form { align-self: center; padding: 48px 40px; display: grid; gap: 16px; }

/* ------------------------------------------------------------------ avisos */
#avisos { position: fixed; z-index: 60; bottom: 20px; right: 20px; display: grid; gap: 8px; }
.aviso { padding: 11px 14px; border-radius: var(--r-sm); background: var(--tip-bg); color: var(--tip-ink); box-shadow: 0 8px 24px rgb(0 0 0 / .2); max-width: 360px; font-size: 14px; animation: entra .25s cubic-bezier(.16, 1, .3, 1); }
.aviso.error { background: var(--audit); color: var(--audit-ink); }
@keyframes entra { from { transform: translateY(8px); opacity: 0; } }

.esqueleto { display: grid; gap: 16px; padding-top: 24px; }
.esqueleto i { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--chip), var(--hover), var(--chip)); background-size: 200% 100%; animation: brillo 1.4s linear infinite; }
.esqueleto i.alto { height: 110px; }
@keyframes brillo { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ móvil */
@media (max-width: 1100px) {
  .dos { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: fixed; z-index: 20; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--rail-line);
  }
  .rail .marca, .rail .pie { display: none; }
  .rail nav { flex-direction: row; width: 100%; justify-content: space-between; }
  .rail a.nav { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 10.5px; position: relative; }
  .rail a.nav span:not(.cuenta) { display: none; }
  .rail a.nav::after { content: attr(data-corto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .rail a.nav .cuenta { position: absolute; top: 2px; left: 55%; margin: 0; font-size: 10px; min-width: 16px; }
  .filtros > input, .filtros > select { flex: 1 1 140px; }
  .cifra .val { font-size: 21px; }
  main { padding: 0 16px 96px; }
  .barra { margin: 0 -16px; padding: 10px 16px; }
  .barra h1 { font-size: 17px; width: 100%; }
  .fecha-nav { flex: 1; }
  .fecha-nav select { flex: 1; min-width: 0; }
  .franja { grid-template-columns: 1fr; gap: 14px; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifra:nth-child(3) { border-left: 0; }
  .cifra:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ingreso { grid-template-columns: 1fr; }
  .ingreso .lado { padding: 32px 24px; }
  .ingreso form { padding: 28px 24px 48px; }
  #avisos { left: 16px; right: 16px; bottom: 84px; }
  th, td { padding: 8px 10px; }
}
@media (max-width: 480px) {
  /* Libro en el celular: hora, operación, tipo, divisa y utilidad; el resto está en el detalle. */
  table.libro th:nth-child(3), table.libro td:nth-child(3), table.libro th:nth-child(6), table.libro td:nth-child(6),
  table.libro th:nth-child(7), table.libro td:nth-child(7), table.libro th:nth-child(8), table.libro td:nth-child(8),
  table.libro th:nth-child(10), table.libro td:nth-child(10), table.libro th:nth-child(11), table.libro td:nth-child(11),
  table.libro th:nth-child(12), table.libro td:nth-child(12) { display: none; }
  table.libro tfoot { display: none; }
  .cifra { padding: 12px; }
  .cifra .val { font-size: 18px; letter-spacing: -.02em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
