/* Cuentas by Vorka · estilos
   Identidad Vorka: la V y su trazo diagonal (≈28°) marcan secciones, la pestaña activa y el avance; morado como color de marca.
   Experiencia tipo app financiera: una tarjeta morada con el saldo, acciones rápidas redondas, tarjetas suaves y números grandes. */
:root {
  --bg: #f6f4f7; --card: #ffffff; --bg-2: #f1edf3; --bg-3: #e8e2eb;
  --fg: #17121a; --fg-2: #6b6370; --fg-3: #a39aa8; --line: #ece7ef;
  --accent: #6b2a85; --accent-2: #571f6d; --accent-soft: #f2eaf6; --accent-fg: #ffffff; --accent-txt: #6b2a85;
  --hero-1: #4a1660; --hero-2: #7a3497; --hero-3: #a45bc0;
  --warn: #b07712; --warn-soft: #fbf2e1; --bad: #c4412f; --bad-soft: #fbebe8; --good: #2b8553; --good-soft: #e5f4eb;
  --scrim: rgba(23, 18, 26, .5); --shadow: 0 1px 2px rgba(40, 20, 50, .04), 0 8px 24px rgba(40, 20, 50, .06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 22px; --tab-h: 64px; --skew: -28deg;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a0d; --card: #17141a; --bg-2: #1e1a21; --bg-3: #2a252e;
    --fg: #f4f1f6; --fg-2: #a89fad; --fg-3: #6f6774; --line: #26222a;
    --accent: #8e3fb3; --accent-2: #c79be0; --accent-soft: #2a1f31; --accent-fg: #ffffff; --accent-txt: #c79be0;
    --hero-1: #2e0d3d; --hero-2: #5a2272; --hero-3: #8a45a6;
    --warn: #e8b04e; --warn-soft: #2e2615; --bad: #f17d6b; --bad-soft: #33201d; --good: #5cc18c; --good-soft: #17291f;
    --scrim: rgba(0, 0, 0, .62); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0a0d; --card: #17141a; --bg-2: #1e1a21; --bg-3: #2a252e;
  --fg: #f4f1f6; --fg-2: #a89fad; --fg-3: #6f6774; --line: #26222a;
  --accent: #8e3fb3; --accent-2: #c79be0; --accent-soft: #2a1f31; --accent-fg: #ffffff; --accent-txt: #c79be0;
  --hero-1: #2e0d3d; --hero-2: #5a2272; --hero-3: #8a45a6;
  --scrim: rgba(0, 0, 0, .62); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--accent-txt); text-decoration: none; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.num, .monto { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
/* Ocultar montos (botón del ojo) */
.privado .sensible { filter: blur(9px); user-select: none; }
.sensible { transition: filter .2s; }

/* ---------- marca ---------- */
.marca { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; color: var(--fg); letter-spacing: -.02em; }
.marca .logo { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.marca .logo svg { width: 17px; height: 17px; }
.marca small { font-weight: 550; color: var(--fg-3); font-size: 12px; letter-spacing: 0; margin-left: -4px; }
/* trazo diagonal de la V: marca secciones */
.trazo::before { content: ""; display: inline-block; width: 4px; height: 15px; background: var(--accent); transform: skewX(var(--skew)); border-radius: 1px; margin-right: 10px; vertical-align: -2px; }

/* ---------- estructura ---------- */
.barra { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); }
.barra-in { max-width: 1080px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px; display: flex; align-items: center; gap: 14px; min-height: 60px; }
.nav { display: none; gap: 2px; margin-left: 22px; }
.nav a { position: relative; color: var(--fg-2); padding: 9px 14px; border-radius: 999px; font-weight: 600; }
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.nav a.on { color: var(--accent-txt); background: var(--accent-soft); }
.barra .fin { margin-left: auto; display: flex; gap: 8px; align-items: center; }
main { max-width: 1080px; margin: 0 auto; padding: 8px 16px calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 32px); }
.tabs-movil { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs-movil a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h); color: var(--fg-3); font-size: 11.5px; font-weight: 650; }
.tabs-movil a.on { color: var(--accent-txt); }
.tabs-movil a.on::before { content: ""; position: absolute; top: 0; width: 22px; height: 3px; border-radius: 1px; background: var(--accent); transform: skewX(var(--skew)); }
@media (max-width: 759px) { .barra .fin .btn.pri { display: none; } }
@media (min-width: 760px) { .nav { display: flex; } .tabs-movil { display: none; } main { padding-bottom: 56px; } }

/* ---------- tipografía y bloques ---------- */
.titulo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 12px 0 20px; flex-wrap: wrap; }
.titulo h1 { font-size: 30px; font-weight: 780; }
.titulo p { margin: 4px 0 0; color: var(--fg-2); }
.sub { color: var(--fg-2); }
.peq { font-size: 13px; color: var(--fg-2); }
.mini { font-size: 12px; color: var(--fg-3); }
.etiqueta { font-size: 12.5px; font-weight: 600; color: var(--fg-2); }
.seccion { margin: 30px 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.seccion h2 { font-size: 18px; font-weight: 750; }
.seccion h2::before { content: ""; display: inline-block; width: 4px; height: 15px; background: var(--accent); transform: skewX(var(--skew)); border-radius: 1px; margin-right: 10px; vertical-align: -1px; }
.tarjeta { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.tarjeta.pad { padding: 20px; }
.rejilla { display: grid; gap: 12px; }
.rejilla > * { min-width: 0; }
.rejilla.par { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .rejilla.c2 { grid-template-columns: 1fr 1fr; } .rejilla.c3 { grid-template-columns: repeat(3, 1fr); } .rejilla.c4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .rejilla.c4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .rejilla.lado { grid-template-columns: 1.35fr 1fr; } }

.cifra { padding: 18px; }
.cifra .v { font-size: 22px; font-weight: 750; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; overflow-wrap: anywhere; }
.cifra .d { font-size: 12.5px; color: var(--fg-3); margin-top: 2px; }
.malo { color: var(--bad); } .bueno { color: var(--good); } .aviso-c { color: var(--warn); }

/* ---------- tarjeta morada (saldo) ---------- */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 22px 22px 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--hero-3) 0%, transparent 55%), linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 100%);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--hero-2) 35%, transparent); isolation: isolate; }
.hero::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 260px; height: 260px; opacity: .13; z-index: -1;
  background: url("/v.svg") no-repeat center / contain; }
.hero .arriba { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero .rotulo { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .82); display: flex; align-items: center; gap: 8px; }
.hero .saldo { font-size: 40px; font-weight: 800; letter-spacing: -.045em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; line-height: 1.1; overflow-wrap: anywhere; }
.hero .nota-h { font-size: 13px; color: rgba(255, 255, 255, .75); }
.hero .ojo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; }
.hero .ojo:hover { background: rgba(255, 255, 255, .22); }
.hero .datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero .datos .e { font-size: 12px; color: rgba(255, 255, 255, .7); }
.hero .datos .v { font-size: 16.5px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hero .datos .v.alerta { color: #ffd0c7; }
.hero .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.hero .chip.malo { background: #ffd8d1; color: #8a2416; }
.hero .chip.bueno { background: rgba(255, 255, 255, .16); color: #fff; }
.hero .quien { display: flex; align-items: center; gap: 12px; }
.hero .quien .avatar { background: rgba(255, 255, 255, .16); color: #fff; }
.hero .quien h1 { font-size: 19px; font-weight: 700; }
.hero .quien .s { font-size: 13px; color: rgba(255, 255, 255, .75); }
@media (min-width: 640px) { .hero { padding: 28px 30px 24px; } .hero .saldo { font-size: 48px; } }
@media (max-width: 380px) { .hero .datos { grid-template-columns: 1fr 1fr; } }
/* avance: trazos diagonales que se van llenando */
.avance { margin-top: 18px; }
.avance .barras { display: flex; gap: 4px; }
.avance .barras i { flex: 1; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .2); transform: skewX(var(--skew)); }
.avance .barras i.on { background: #fff; }
.avance .leyenda { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .78); margin-top: 8px; gap: 8px; }

/* ---------- acciones rápidas (botones redondos) ---------- */
.rapidas { display: flex; gap: 6px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; }
.rapidas::-webkit-scrollbar { display: none; }
.rapida { flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg); font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.rapida .circ { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--fg); box-shadow: var(--shadow); transition: transform .12s, background .12s; }
.rapida:hover .circ { background: var(--accent-soft); color: var(--accent-txt); }
.rapida.pri:hover .circ { background: var(--accent-2); color: #fff; }
.rapida:active .circ { transform: scale(.94); }
.rapida.pri .circ { background: var(--accent); color: #fff; }
@media (min-width: 760px) { .rapidas { flex-wrap: wrap; overflow: visible; } }

/* ---------- listas ---------- */
.lista { list-style: none; margin: 0; padding: 4px 0; }
.lista > li + li, .lista > a + a, .lista > button + button, .lista > div + div { border-top: 1px solid var(--line); }
.tarjeta.lista > * { margin: 0 16px; }
.tarjeta.lista > .fila { margin: 0; padding-left: 16px; padding-right: 16px; }
.fila { display: flex; align-items: center; gap: 13px; padding: 14px 16px; color: var(--fg); min-height: 68px; }
a.fila:hover, button.fila:hover { background: var(--bg-2); }
.tarjeta.lista > .fila:first-child { border-radius: var(--r) var(--r) 0 0; }
.tarjeta.lista > .fila:last-child { border-radius: 0 0 var(--r) var(--r); }
.tarjeta.lista > .fila:only-child { border-radius: var(--r); }
button.fila { width: 100%; text-align: left; }
.fila .cuerpo { flex: 1; min-width: 0; }
.fila .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila .s { font-size: 13px; color: var(--fg-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.fila .der { text-align: right; flex: none; }
.fila .der .monto { font-weight: 700; letter-spacing: -.01em; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-txt); display: grid; place-items: center; font-weight: 750; font-size: 14.5px; flex: none; }
.vacio { padding: 40px 20px; text-align: center; color: var(--fg-2); }
.vacio h3 { color: var(--fg); font-size: 18px; margin-bottom: 6px; }
.vacio .btn { margin-top: 14px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--bg-3); color: var(--fg-2); white-space: nowrap; }
.chip.bueno { background: var(--good-soft); color: var(--good); }
.chip.malo { background: var(--bad-soft); color: var(--bad); }
.chip.aviso { background: var(--warn-soft); color: var(--warn); }
.chip.acento { background: var(--accent-soft); color: var(--accent-txt); }
.chip.tachado { text-decoration: line-through; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 650; background: var(--bg-3); color: var(--fg); white-space: nowrap; transition: background .12s, transform .12s; }
.btn:hover { background: color-mix(in srgb, var(--bg-3) 80%, var(--fg) 6%); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--accent); color: var(--accent-fg); }
.btn.pri:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn.borde { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.peligro { background: var(--bad-soft); color: var(--bad); }
.btn.claro { background: #fff; color: var(--hero-1); }
.btn.chico { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.bloque { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.icono { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--fg-2); background: var(--bg-2); }
.icono:hover { background: var(--bg-3); color: var(--fg); }
.volver { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 12px; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.volver:hover { color: var(--fg); }

/* ---------- formularios ---------- */
.campo { display: block; margin-bottom: 16px; }
.campo > span { display: block; font-size: 13px; font-weight: 650; color: var(--fg-2); margin-bottom: 7px; }
.campo small { display: block; color: var(--fg-3); font-size: 12.5px; margin-top: 6px; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[inputmode], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid transparent; background: var(--bg-2); color: var(--fg); outline: none; appearance: none; -webkit-appearance: none; font-size: 16px; transition: border-color .12s, background .12s; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--fg-3) 50%), linear-gradient(135deg, var(--fg-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--card); }
input[type=date] { min-width: 0; }
input[type=file] { font-size: 14px; color: var(--fg-2); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .dos.romper { grid-template-columns: 1fr; } }
.opciones { display: grid; gap: 8px; margin-bottom: 16px; }
.opciones.h { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.opcion { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1.5px solid transparent; border-radius: 16px; cursor: pointer; background: var(--bg-2); transition: border-color .12s, background .12s; }
.opcion input { margin: 2px 0 0; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.opcion b { display: block; font-weight: 650; }
.opcion small { color: var(--fg-2); font-size: 13px; }
.opcion:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.prefijo { position: relative; }
.prefijo > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-3); font-style: normal; pointer-events: none; font-weight: 600; }
.prefijo > input { padding-left: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sufijo { position: relative; }
.sufijo > i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--fg-3); font-style: normal; pointer-events: none; }
.error { background: var(--bad-soft); color: var(--bad); border-radius: 14px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px; font-weight: 550; }
.nota { background: var(--bg-2); border-radius: 16px; padding: 13px 15px; font-size: 13.5px; color: var(--fg-2); line-height: 1.5; }
.nota.aviso { background: var(--warn-soft); color: var(--warn); }
.nota b { color: var(--fg); }
.nota.aviso b { color: inherit; }
fieldset { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
legend { font-weight: 750; font-size: 17px; margin-bottom: 14px; padding: 0; letter-spacing: -.01em; }
legend::before { content: ""; display: inline-block; width: 4px; height: 14px; background: var(--accent); transform: skewX(var(--skew)); border-radius: 1px; margin-right: 10px; vertical-align: -1px; }
details > summary { list-style: none; color: var(--accent-txt); } details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: " ›"; }
details[open] > summary::after { content: " ‹"; }

/* ---------- hoja (modal) ---------- */
.velo { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: aparece .16s ease-out; }
.hoja { background: var(--card); width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 6px 20px calc(env(safe-area-inset-bottom, 0px) + 22px); animation: sube .22s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain; }
.hoja::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--bg-3); margin: 6px auto 4px; }
.hoja-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; position: sticky; top: -6px; background: var(--card); z-index: 1; }
.hoja-top h2 { font-size: 20px; font-weight: 750; }
@media (min-width: 640px) { .velo { align-items: center; } .hoja { border-radius: 28px; padding-bottom: 24px; } .hoja::before { display: none; } }
@keyframes aparece { from { opacity: 0; } }
@keyframes sube { from { transform: translateY(40px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .velo, .hoja { animation: none; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translateX(-50%); }
@media (min-width: 760px) { .toast { bottom: 28px; } }

/* ---------- préstamo ---------- */
.pestanas { display: flex; gap: 6px; overflow-x: auto; margin: 26px 0 14px; scrollbar-width: none; padding: 2px; }
.pestanas::-webkit-scrollbar { display: none; }
.pestanas button { padding: 9px 16px; font-weight: 650; color: var(--fg-2); border-radius: 999px; white-space: nowrap; background: var(--card); box-shadow: var(--shadow); font-size: 14px; }
.pestanas button.on { color: var(--accent-fg); background: var(--accent); }
.mov .icm { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-2); color: var(--fg-2); }
.mov .icm.entrega { background: var(--accent-soft); color: var(--accent-txt); }
.mov .icm.abono { background: var(--good-soft); color: var(--good); }
.mov .monto.mas { color: var(--fg); }
.mov .monto.menos { color: var(--good); }
.mov.cancelado .t, .mov.cancelado .monto { text-decoration: line-through; color: var(--fg-3); }
.desglose { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; }
.desglose .monto { text-align: right; font-weight: 600; }
.desglose .total { font-weight: 750; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; font-size: 15px; }
.desglose.condiciones { grid-template-columns: minmax(120px, 36%) 1fr; gap: 10px 14px; }
.desglose.condiciones > span:nth-child(even) { font-weight: 550; }
.explica { font-size: 12.5px; color: var(--fg-2); margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--accent-soft); }
.explica div + div { margin-top: 3px; }
.stat-mini { padding: 16px 18px; }
.stat-mini .v { font-size: 19px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* tablas (estado de cuenta y plan) */
.tabla-env { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; font-weight: 650; color: var(--fg-2); padding: 14px 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
table.estado td:nth-child(2) { white-space: normal; min-width: 250px; }
table.estado { min-width: 860px; }
td.m, th.m { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.corte td { background: var(--accent-soft); font-weight: 650; }
.estado-movil .item { padding: 16px 18px; }
.estado-movil .item + .item { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .estado-movil { display: none; } }
@media (max-width: 759px) { .estado-escritorio { display: none; } }

/* ---------- acceso ---------- */
.acceso { min-height: 100vh; display: grid; padding: 0; }
@media (min-width: 900px) { .acceso { grid-template-columns: 1.05fr 1fr; } }
.acceso .lado-marca { position: relative; overflow: hidden; color: #fff; padding: 36px 28px 120px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px;
  background: radial-gradient(120% 100% at 100% 0%, var(--hero-3) 0%, transparent 55%), linear-gradient(150deg, var(--hero-1), var(--hero-2)); isolation: isolate; }
.acceso .lado-marca::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 380px; height: 380px; opacity: .14; z-index: -1; background: url("/v.svg") no-repeat center / contain; }
.acceso .lado-marca .marca { color: #fff; }
.acceso .lado-marca .marca .logo { background: #fff; color: var(--hero-1); }
.acceso .lado-marca .marca small { color: rgba(255, 255, 255, .7); }
.acceso .lado-marca h2 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; max-width: 440px; margin-top: 40px; }
.acceso .lado-marca p { color: rgba(255, 255, 255, .8); max-width: 400px; font-size: 16px; }
.acceso .lado-form { position: relative; z-index: 1; display: grid; place-items: start center; padding: 0 16px 40px; margin-top: -96px; }
@media (min-width: 900px) { .acceso .lado-marca { padding: 48px; min-height: 100vh; } .acceso .lado-marca h2 { font-size: 46px; } .acceso .lado-form { margin-top: 0; padding: 40px; } }
.acceso .caja { width: 100%; max-width: 420px; }
.acceso .caja .tarjeta { padding: 28px 24px; }
.acceso h1 { font-size: 26px; font-weight: 780; margin-bottom: 6px; }
.acceso .sub { margin: 0 0 22px; }
.codigo-in { letter-spacing: 10px; font-size: 28px !important; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.legal { max-width: 720px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--fg-2); line-height: 1.65; }

/* pasos del primer uso */
.paso-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-txt); font-weight: 800; margin-bottom: 12px; }

/* impresión: el estado de cuenta se guarda como PDF desde el navegador */
.solo-impresion { display: none; }
@media print {
  :root { --bg: #fff; --card: #fff; --fg: #000; --fg-2: #333; --fg-3: #555; --line: #ccc; --accent: #6b2a85; --accent-soft: #f2eaf6; }
  body { background: #fff; font-size: 11px; }
  .barra, .tabs-movil, .no-imprimir, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .tarjeta { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .estado-movil { display: none !important; } .estado-escritorio { display: block !important; }
  .solo-impresion { display: block; }
  table.estado { min-width: 0; } table.estado td:nth-child(2) { min-width: 180px; }
  table { font-size: 10px; } td, th { padding: 5px 6px; }
  @page { margin: 14mm; }
}
