/* Cuentas Claras: estilo sobrio tipo banca digital */
:root {
  --bg: #f2f4f8; --card: #ffffff; --card-2: #f7f9fc; --text: #0b1526; --muted: #5b6678; --line: #e3e8f0;
  --navy: #0b2545; --navy-2: #13315c; --accent: #1e5fd1; --accent-soft: #e8f0fd;
  --pos: #0f8a4f; --neg: #c8312b; --warn: #b26a00;
  --shadow: 0 1px 2px rgba(11, 21, 38, .05), 0 6px 20px rgba(11, 21, 38, .06);
  --radius: 16px; --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060b14; --card: #0e1626; --card-2: #121c2f; --text: #e8edf5; --muted: #8a96aa; --line: #1d2a40;
    --navy: #0d2a52; --navy-2: #123a6e; --accent: #5b9cf5; --accent-soft: #14243f;
    --pos: #3ccf8e; --neg: #ff6b63; --warn: #f2b84b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); font-weight: 600; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.texto-mut { color: var(--muted); font-size: 13px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }

/* ───────── Estructura ───────── */
.app { min-height: 100dvh; }
.contenido { padding-bottom: calc(var(--nav-h) + 24px + var(--safe-b)); }
main { padding: 0 16px 16px; max-width: 1180px; margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; max-width: 1180px; margin: 0 auto; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); }
.saludo small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.saludo b { font-size: 21px; letter-spacing: -.015em; font-weight: 700; }
.topbar-acc { display: flex; gap: 4px; }
.icon-btn { border: 0; background: var(--card); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); cursor: pointer; box-shadow: var(--shadow); }
.icon-btn svg { width: 20px; height: 20px; }

/* Navegación: barra inferior en celular */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: calc(var(--nav-h) + var(--safe-b)); padding: 0 6px var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: var(--card); border-top: 1px solid var(--line); }
.nav-marca, .nav-pie { display: none; }
.nav-btn { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; padding: 8px 0; cursor: pointer; }
.nav-btn.activo { color: var(--accent); }
.nav-fab { width: 54px; height: 54px; margin: -22px auto 0; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.nav-fab span { display: none; }
.nav-fab svg { width: 26px; height: 26px; stroke-width: 2.3; }

/* Escritorio: menú lateral y paneles en columnas */
@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 248px 1fr; }
  .contenido { padding-bottom: 32px; min-width: 0; }
  .nav { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 22px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--navy); }
  .nav-marca { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; padding: 0 10px 22px; }
  .nav-marca img { width: 32px; height: 32px; border-radius: 9px; }
  .nav-btn { flex-direction: row; gap: 12px; font-size: 14.5px; font-weight: 600; padding: 11px 12px; border-radius: 11px; color: rgba(255,255,255,.72); }
  .nav-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
  .nav-btn.activo { background: rgba(255,255,255,.12); color: #fff; }
  .nav-fab { order: -1; width: auto; height: auto; margin: 0 0 14px; border-radius: 12px; display: flex; gap: 10px; justify-content: center; padding: 12px; font-weight: 700; background: #fff; color: var(--navy); box-shadow: none; }
  .nav-fab span { display: inline; }
  .nav-fab svg { width: 20px; height: 20px; }
  .nav-marca { order: -2; }
  .nav-pie { display: block; margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
  .nav-pie .nav-btn { width: 100%; }
  #btn-bloquear { display: none; }
  .topbar { padding: 22px 28px 14px; }
  main { padding: 0 28px 28px; }
  .grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .grid-2 > div > .card:last-child { margin-bottom: 0; }
}

/* ───────── Tarjetas ───────── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); }
.card-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-cab h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card-cab small { color: var(--muted); font-size: 12.5px; }
.sin-borde { padding: 4px 18px; }

/* Resumen principal (estilo tarjeta bancaria) */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1d4f91 0%, transparent 55%), linear-gradient(160deg, var(--navy-2), var(--navy)); border: 0; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); }
.hero-etq { font-size: 13px; color: rgba(255,255,255,.72); display: flex; justify-content: space-between; align-items: center; }
.hero-monto { font-size: 36px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; }
.hero-monto small { font-size: .5em; font-weight: 600; opacity: .75; margin-right: 4px; }
.pildora { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.12); }
.hero-pres { margin: 16px 0 14px; font-size: 12.5px; color: rgba(255,255,255,.8); }
.hero-pres .barra { margin-top: 6px; }
.barra { height: 6px; background: rgba(255,255,255,.16); border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.hero-stats div { font-size: 12px; color: rgba(255,255,255,.7); }
.hero-stats b { display: block; color: #fff; font-size: 15px; font-weight: 650; }

/* Accesos rápidos */
.accesos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.acceso i.verde, .opcion .ico.verde { color: var(--pos); }
.opcion .ico.verde { background: color-mix(in srgb, var(--pos) 14%, transparent); }
@media (max-width: 380px) { .acceso i { width: 46px; height: 46px; } .acceso { font-size: 11px; } }

/* Centro del anillo: lo que te queda */
.centro-pct { font-size: 15px; font-weight: 800; line-height: 1.1; margin-top: 2px; }
.centro-pct.pos { color: var(--pos); } .centro-pct.warn { color: var(--warn); } .centro-pct.neg { color: var(--neg); }

/* Flujo del mes */
.flujo { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; background: var(--card-2); }
.flujo-fila { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.flujo-fila:last-child { border-bottom: 0; }
.flujo-fila b { font-weight: 650; }
.flujo-fila.pos b { color: var(--pos); }
.flujo-fila.total { font-weight: 700; font-size: 14.5px; border-top: 1px solid var(--line); border-bottom: 0; margin-top: 2px; }
.flujo-fila.total b { font-size: 16px; font-weight: 800; }
.mov-totales { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.mov-totales small { display: block; font-size: 12px; color: rgba(255,255,255,.7); }
.mov-totales b { font-size: 21px; font-weight: 750; }
.mov-totales b.ing { color: #7ee2b0; }
.monto-input.ingreso input { color: var(--pos); }

/* Perfil laboral */
.beneficio { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.beneficio .txt { flex: 1; min-width: 0; }
.beneficio .txt b { display: block; font-weight: 600; }
.beneficio .txt span { color: var(--muted); font-size: 12.5px; }
.beneficio .val { font-weight: 700; color: var(--pos); white-space: nowrap; }
.trabajo .kpis { margin-bottom: 6px; }
.chip .punto { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.acceso { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; }
.acceso i { width: 52px; height: 52px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--accent); }

/* Anillo de porcentajes */
.resumen { padding-bottom: 14px; }
.pildora-c { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--card-2); }
.anillo-wrap { display: grid; justify-items: center; gap: 14px; }
.anillo { position: relative; }
.anillo svg { width: 100%; height: 100%; overflow: visible; display: block; }
.anillo .sector { cursor: pointer; transition: opacity .15s, transform .18s; stroke: var(--card); stroke-width: .6; }
.foco .sector { opacity: .28; }
.foco .sector.on { opacity: 1; transform: translate(var(--dx, 0), var(--dy, 0)); }
.anillo { margin: 0 auto; }
.anillo .sector.resto { fill: color-mix(in srgb, var(--pos) 26%, var(--card)); stroke: color-mix(in srgb, var(--pos) 45%, transparent); stroke-width: .8; }
.punto.resto { background: color-mix(in srgb, var(--pos) 22%, var(--card)); border: 1px solid color-mix(in srgb, var(--pos) 50%, transparent); }
.dist.es-resto b { color: var(--pos); }
/* Etiqueta con línea (sin recuadro) */
.callout { pointer-events: none; }
.callout polyline { fill: none; stroke: var(--muted); stroke-width: .9; }
.callout circle { fill: var(--text); }
.callout text { font-family: inherit; fill: var(--text); paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.callout .c1 { font-size: 13.5px; font-weight: 700; }
.callout .c2 { font-size: 12.5px; font-weight: 600; fill: var(--text); font-variant-numeric: tabular-nums; }
.callout .c3 { font-size: 10px; fill: var(--muted); }
.anillo-centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; gap: 1px; }
.anillo-centro small { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.anillo-centro b { font-size: clamp(15px, 4.6vw, 20px); font-weight: 750; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
.centro-pres { font-size: 11px; color: var(--muted); font-weight: 600; }
.centro-pres b { font-size: 12px !important; }
.anillo .seg-tip { bottom: auto; width: max-content; max-width: 200px; white-space: normal; }
.anillo .seg-tip::after { display: none; }
.punto.grande { width: 32px; height: 32px; border-radius: 10px; flex: none; }
.dist-det { display: block; color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.ley-grid { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.ley-grid .dist { padding: 6px 8px; gap: 8px; font-size: 13px; }
.ley-grid .punto { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ley-grid .ley-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ley-grid b { font-size: 13px; }
.anillo-wrap .dist-lista { width: 100%; }
.uso-pres { margin: 14px 0 4px; font-size: 13px; }
.uso-pres .dist-barra { height: 7px; }
.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.res-stats div { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.res-stats div + div { border-left: 1px solid var(--line); }
.res-stats b { display: block; color: var(--text); font-size: 15px; font-weight: 700; }
.warn { color: var(--warn); }

/* Perfiles: Personal / tarjetas */
.perfiles { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.perfiles::-webkit-scrollbar { display: none; }
.perfil { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 7px 14px 7px 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text); box-shadow: var(--shadow); }
.perfil svg { width: 18px; height: 18px; color: var(--muted); }
.perfil i { width: 22px; height: 15px; border-radius: 4px; display: inline-block; }
.perfil.sel { background: var(--navy); border-color: var(--navy); color: #fff; }
.perfil.sel svg { color: #fff; }
.perfil.mas { background: none; box-shadow: none; border-style: dashed; color: var(--muted); }
.tcredito.grande { aspect-ratio: auto; min-height: 196px; cursor: default; }
.tcredito.grande .tc-monto b { font-size: 32px; }
.tc-alerta { color: #ffd0cc; font-weight: 700; }
.acciones-fila { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.acciones-fila .btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.acciones-fila .btn svg { width: 16px; height: 16px; }
.cuota-res { display: block; font-size: 13px; margin: -6px 0 12px; color: var(--muted); }
.cuota-res b { color: var(--text); }

/* Avisos */
.icon-btn { position: relative; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--neg); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--card); }
.avisos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aviso-it { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 12px; }
.aviso-it.urg { border-left-color: var(--neg); } .aviso-it.pronto { border-left-color: var(--warn); }
.aviso-it .txt { flex: 1; min-width: 0; }
.aviso-it .txt b { display: block; font-size: 14.5px; }
.aviso-it .txt span { color: var(--muted); font-size: 12.5px; }
.aviso-it .val { font-weight: 700; white-space: nowrap; }
.aviso-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aviso-acc .mini-chip { text-decoration: none; color: var(--accent); font-weight: 600; background: var(--accent-soft); border-color: transparent; padding: 5px 10px; }

/* Préstamos: avatar, datos de pago, constancias */
.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.datos-pago .dato { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.datos-pago .dato:last-child { border-bottom: 0; }
.datos-pago small { display: block; color: var(--muted); font-size: 12px; }
.datos-pago b { font-size: 15px; letter-spacing: .02em; }
.subir { display: flex; align-items: center; gap: 10px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--muted); font-size: 13.5px; background: var(--card); }
.subir svg { color: var(--accent); }
.subir.lista { border-color: var(--pos); color: var(--pos); font-weight: 600; }
.constancia { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.constancia svg { width: 16px; height: 16px; }

/* Consejos */
.consejos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.consejo-it { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--card-2); }
.consejo-it > span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.consejo-it > span svg { width: 18px; height: 18px; }
.consejo-it.alerta > span { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.consejo-it.ahorro > span { background: color-mix(in srgb, var(--pos) 14%, transparent); color: var(--pos); }
.consejo-it.info > span { background: var(--accent-soft); color: var(--accent); }
.consejo-it b { display: block; font-size: 14px; }
.consejo-it p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Segmentos (pestañas internas) */
.segmentos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.segmentos button { border: 0; background: none; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.segmentos button.sel { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.segmentos.chico button { font-size: 12.5px; }
@media (min-width: 960px) { .segmentos:not(.chico) { max-width: 480px; } }

/* Tarjetas de crédito */
.tcredito { position: relative; overflow: hidden; color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 12px; cursor: pointer; background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.16), transparent 55%), linear-gradient(145deg, var(--tc), color-mix(in srgb, var(--tc) 60%, #000)); box-shadow: 0 10px 24px rgba(11,21,38,.18); aspect-ratio: 1.75; display: flex; flex-direction: column; }
.tcredito::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 26px solid rgba(255,255,255,.06); }
.tc-cab { display: flex; justify-content: space-between; align-items: baseline; }
.tc-cab b { font-size: 16px; } .tc-cab span { font-size: 12px; opacity: .8; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tc-monto { margin-top: auto; }
.tc-monto small { display: block; font-size: 12px; opacity: .8; }
.tc-monto b { font-size: 26px; font-weight: 750; letter-spacing: -.01em; }
.tc-pie { display: flex; justify-content: space-between; font-size: 12px; opacity: .85; margin: 6px 0 8px; }
.tcredito .barra { height: 5px; }
.colores { display: flex; gap: 10px; }
.color { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.color.sel { border-color: var(--card); box-shadow: 0 0 0 2px var(--accent); }

/* Préstamos */
.prestamo { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.prestamo:last-child { border-bottom: 0; }
.prestamo .txt { flex: 1; min-width: 0; }
.prestamo .txt b { display: block; font-weight: 600; }
.prestamo .txt span { color: var(--muted); font-size: 12.5px; }
.prestamo .val { font-weight: 650; text-align: right; white-space: nowrap; }
.prestamo .val small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.kpis.dos-k { grid-template-columns: 1fr 1fr !important; }

/* Distribución: lista detallada */
.dist-cab { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.dist-cab small { color: var(--muted); font-size: 12px; display: block; }
.dist-cab b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.seg-zona { position: relative; padding-top: 4px; margin-bottom: 14px; }
.seg-barra { display: flex; gap: 3px; height: 16px; }
.seg { min-width: 5px; border-radius: 4px; cursor: pointer; transition: opacity .15s, transform .15s; }
.seg:first-child { border-radius: 8px 4px 4px 8px; } .seg:last-child { border-radius: 4px 8px 8px 4px; }
.foco .seg { opacity: .3; } .foco .seg.on { opacity: 1; transform: scaleY(1.25); }
.seg-tip { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 12.5px; padding: 7px 10px; border-radius: 9px; white-space: nowrap; pointer-events: none; z-index: 2; box-shadow: 0 6px 16px rgba(0,0,0,.2); line-height: 1.35; }
.seg-tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--text); }
.dist-lista { list-style: none; margin: 0; padding: 0; }
.dist, .medio-fila { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.dist:hover, .dist.on { background: var(--card-2); }
.dist-txt { flex: 1; min-width: 0; }
.dist-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.dist-fila b { font-weight: 600; }
.dist-fila span { font-weight: 600; }
.dist-fila small { color: var(--muted); font-size: 12px; font-weight: 600; min-width: 42px; text-align: right; }
.dist-barra { flex: 1; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.dist-barra i { display: block; height: 100%; border-radius: 99px; }
.cat-ico.chico { width: 32px; height: 32px; border-radius: 10px; }
.cat-ico.chico svg { width: 17px; height: 17px; }
.medio-fila { cursor: default; }
.medio-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }

/* Indicadores */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpis.tres { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 960px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis.tres { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.kpi b { display: block; font-size: 18px; font-weight: 700; margin: 3px 0 2px; letter-spacing: -.01em; }
.kpi span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Calendario de gasto */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 360px; margin: 0 auto; }
.cal-ley { max-width: 360px; margin-left: auto; margin-right: auto; }
.cal-cab { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; padding-bottom: 2px; }
.cal-dia { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; background: var(--card-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-dia.hoy { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-dia.futuro { opacity: .45; }
.cal-ley { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.cal-ley i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }

/* Bandas de aviso */
.banda { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 13.5px; background: color-mix(in srgb, var(--warn) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.banda.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.banda svg { width: 20px; height: 20px; color: var(--accent); }
.etiqueta.neg-et { background: color-mix(in srgb, var(--neg) 14%, transparent); color: var(--neg); }
.pres .barra > i.alerta { background: var(--warn); }

/* Filtros de movimientos */
.filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.filtros .buscar { grid-column: 1 / 3; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.filtros .buscar svg { color: var(--muted); width: 18px; height: 18px; }
.filtros .buscar input { border: 0; outline: none; background: none; padding: 11px 0; width: 100%; }
.filtros select { padding: 10px 12px; font-size: 14px; }
@media (min-width: 960px) { .filtros { grid-template-columns: 2fr 1fr 1fr; } .filtros .buscar { grid-column: auto; } }
.hero.compacto { padding: 16px 18px; }
.hero.compacto .hero-monto { font-size: 28px; margin-bottom: 0; }

/* Desplegable de categorías */
.dd { position: relative; }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 7px 10px; cursor: pointer; text-align: left; font-weight: 600; font-size: 14px; }
.dd-btn > span:not(.cat-ico) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dos select.input { padding: 11px 10px; }
.dd.abierto .dd-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.dd.abierto .chev { transform: rotate(180deg); }
.dd-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 5; width: max(100%, 290px); max-height: 300px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(11,21,38,.18); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-op { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 7px; border-radius: 10px; cursor: pointer; font-size: 13px; text-align: left; }
.dd-op:hover { background: var(--card-2); }
.dd-op.sel { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sugeridas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
.mini-chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.dos .campo { min-width: 0; }

/* Desglose plegable */
.desglose { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 14px; }
.desglose summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; }
.desglose summary::-webkit-details-marker { display: none; }
.desglose summary svg:first-child { width: 18px; height: 18px; color: var(--accent); }
.desglose summary span { flex: 1; }
.desglose summary small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.desglose[open] .chev { transform: rotate(180deg); }
.desglose .items { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.item-orig { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: -2px; font-family: Consolas, monospace; }
.items-pie .toggle { font-size: 13px; }
.ocr { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); font: 12.5px/1.5 Consolas, "Cascadia Mono", monospace; white-space: pre-wrap; color: var(--muted); max-height: 240px; overflow: auto; }

/* Registro rápido (voz / texto) */
.rapido { display: flex; gap: 10px; align-items: center; }
.rapido-txt { flex: 1; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding-right: 4px; }
.rapido-txt .input { border: 0; box-shadow: none !important; background: none; }
.rapido-txt .icon-btn { box-shadow: none; background: var(--accent); color: #fff; width: 36px; height: 36px; border-radius: 10px; }
.mic { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.mic.grande { width: 96px; height: 96px; margin: 10px auto; }
.mic.grande svg { width: 40px; height: 40px; }
.mic.escuchando { animation: pulso 1.4s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.voz { text-align: center; padding: 6px 4px 10px; }
.voz-estado { font-weight: 700; margin: 8px 0 4px; }
.voz-texto { color: var(--muted); min-height: 44px; font-size: 16px; margin: 0 0 16px; }
.voz-texto.vivo { color: var(--text); }
.ejemplos-voz { display: grid; gap: 6px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.ejemplos-voz em { font-style: normal; color: var(--text); }
.ejemplos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Proceso paso a paso */
.proc-img { display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 16px; position: relative; overflow: hidden; }
.proc-img img { max-height: 240px; max-width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.proc-img::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent), transparent); animation: escaneo 1.8s ease-in-out infinite; }
@keyframes escaneo { to { top: 100%; } }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pasos li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 4px; opacity: .45; transition: opacity .2s; }
.pasos li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 1px; display: grid; place-items: center; }
.pasos li b { display: block; font-size: 14px; }
.pasos li span { color: var(--muted); font-size: 12.5px; }
.pasos li.activo, .pasos li.hecho { opacity: 1; }
.pasos li.activo i { border-color: var(--accent-soft); border-top-color: var(--accent); animation: girar .8s linear infinite; }
.pasos li.hecho i { background: var(--pos); border-color: var(--pos); }
.pasos li.hecho i::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }

/* Gráfico circular (ya no se usa) */
.dona-wrap { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: center; }
@media (max-width: 420px) { .dona-wrap { grid-template-columns: 1fr; justify-items: center; } .dona-wrap .leyenda { width: 100%; } }
.dona { position: relative; width: 168px; height: 168px; }
.dona svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dona circle { fill: none; stroke-width: 22; transition: stroke-width .15s, opacity .15s; }
.dona .seg { cursor: pointer; }
.dona.foco .seg { opacity: .3; } .dona.foco .seg.on { opacity: 1; stroke-width: 26; }
.dona-centro { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dona-centro small { color: var(--muted); font-size: 12px; }
.dona-centro b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.leyenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.leyenda li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.leyenda li:hover, .leyenda li.on { background: var(--card-2); }
.leyenda .punto { width: 10px; height: 10px; border-radius: 3px; }
.leyenda .pct { font-weight: 700; }
.leyenda .pct small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; text-align: right; }

/* Movimientos */
.lista { list-style: none; margin: 0; padding: 0; }
.mov { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mov:last-child { border-bottom: 0; }
.cat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.cat-ico svg { width: 20px; height: 20px; stroke-width: 2; }
.mov .txt { flex: 1; min-width: 0; }
.mov .txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mov .txt span { color: var(--muted); font-size: 12.5px; }
.mov .val { font-weight: 650; text-align: right; white-space: nowrap; }
.mov .val small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.dia { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 18px 2px 8px; display: flex; justify-content: space-between; }
.etiqueta { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: 1px; }
.etiqueta.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.vacio { text-align: center; color: var(--muted); padding: 26px 10px; }
.vacio b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 4px; }

/* Presupuesto por categoría */
.pres { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; }
.pres .cat-ico { grid-row: span 2; }
.pres .n { font-weight: 600; font-size: 14px; }
.pres .v { font-weight: 650; font-size: 14px; text-align: right; }
.pres .v small { color: var(--muted); font-weight: 500; }
.pres .barra { grid-column: 2 / 4; background: var(--line); height: 6px; }
.pres .barra > i { background: var(--accent); }
.pres .barra > i.pasado { background: var(--neg); }

/* Selector de mes */
.mes { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; box-shadow: var(--shadow); }
.mes b { font-size: 15px; }
.mes .icon-btn { box-shadow: none; background: none; }

/* Barras por mes */
.meses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 160px; }
.meses div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11.5px; color: var(--muted); }
.meses i { width: 64%; max-width: 44px; background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 7px 7px 3px 3px; min-height: 4px; }
.meses .act i { background: var(--accent); }
.meses span { margin-top: 7px; }
.meses small { font-size: 11px; color: var(--text); font-weight: 600; margin-bottom: 5px; }

/* Precios */
.precio { display: grid; grid-template-columns: 1fr 96px auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.precio:last-child { border-bottom: 0; }
.precio b { font-weight: 600; }
.precio span { color: var(--muted); font-size: 12.5px; display: block; }
.precio svg.spark { width: 96px; height: 30px; stroke: var(--accent); stroke-width: 2; }

/* ───────── Hoja (modal) ───────── */
.hoja { position: fixed; inset: 0; z-index: 20; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(4, 10, 22, .55); animation: aparecer .2s; }
.hoja-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 94dvh; display: flex; flex-direction: column; background: var(--bg); border-radius: 22px 22px 0 0; animation: subir .25s cubic-bezier(.2,.8,.2,1); max-width: 620px; margin: 0 auto; }
@media (min-width: 960px) { .hoja-panel { top: 50%; bottom: auto; transform: translateY(-50%); border-radius: 20px; max-height: 88dvh; animation: aparecer .2s; } .hoja-asa { display: none; } }
.hoja-asa { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 0; }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px 20px; }
.hoja-cab h2 { font-size: 18px; margin: 0; }
.hoja-cab .icon-btn { box-shadow: none; }
.hoja-cuerpo { overflow-y: auto; padding: 6px 18px calc(22px + var(--safe-b)); }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes aparecer { from { opacity: 0; } }

/* Opciones de registro */
.opciones { display: grid; gap: 10px; }
.opcion { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 15px; cursor: pointer; }
.opcion .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.opcion b { display: block; font-size: 15.5px; }
.opcion span { color: var(--muted); font-size: 13px; }
.opcion .flecha { margin-left: auto; color: var(--muted); }
.consejo { font-size: 13px; color: var(--muted); background: var(--card); border-radius: 12px; padding: 12px 14px; margin-top: 12px; border: 1px dashed var(--line); }

/* Formularios */
.campo { margin-bottom: 14px; }
.campo > label, .campo > .lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.monto-input { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; }
.monto-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.monto-input span { font-size: 22px; font-weight: 600; color: var(--muted); }
.monto-input input { border: 0; outline: none; background: none; font-size: 32px; font-weight: 700; width: 100%; padding: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 7px 11px; font-size: 13.5px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.chip svg { width: 16px; height: 16px; }
.chip.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.vista-previa { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 14px; }
.vista-previa img { width: 50px; height: 68px; object-fit: cover; border-radius: 8px; background: var(--line); }
.vista-previa div { font-size: 12.5px; color: var(--muted); }
.vista-previa b { color: var(--text); display: block; font-size: 14px; }
.items { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px; }
.item { display: grid; grid-template-columns: .8fr 1.2fr 1fr 32px; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); }
.item .prod { grid-column: 1 / 4; font-weight: 600; }
.item input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 9px; padding: 9px 10px; font-size: 15px; min-width: 0; }
.item .x { border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.items-pie { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-top: 2px; }
.btn { border: 0; border-radius: 12px; padding: 14px 18px; font-weight: 700; cursor: pointer; background: var(--accent); color: #fff; width: 100%; font-size: 15.5px; }
@media (prefers-color-scheme: dark) { .btn { color: #04122a; } }
.btn.sec { background: var(--accent-soft); color: var(--accent); }
.btn.peligro { background: none; color: var(--neg); border: 1px solid currentColor; }
.btn.chico { width: auto; padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: .55; }
.acciones { display: grid; gap: 10px; margin-top: 18px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Cargando */
.cargando { display: grid; place-items: center; gap: 14px; padding: 40px 0; color: var(--muted); text-align: center; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.esqueleto { height: 72px; border-radius: 14px; background: linear-gradient(90deg, var(--card), var(--line), var(--card)); background-size: 200% 100%; animation: brillo 1.2s infinite; margin-bottom: 12px; }
@keyframes brillo { to { background-position: -200% 0; } }

/* Aviso flotante */
.aviso { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + var(--safe-b)); transform: translate(-50%, 20px); background: #0b1526; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 40; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.aviso.ver { opacity: 1; transform: translate(-50%, 0); }
.aviso.error { background: #9b1c1c; }
@media (min-width: 960px) { .aviso { bottom: 28px; } }

/* ───────── Pantalla de bloqueo ───────── */
.bloqueo { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; color: #fff;
  background: radial-gradient(90% 60% at 50% 0%, #1d4f91 0%, transparent 70%), linear-gradient(180deg, #0d2a52, #06142b); }
.bloqueo-caja { width: 100%; max-width: 360px; text-align: center; }
.bloqueo-caja img { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.bloqueo-caja h2 { margin: 0 0 4px; font-size: 22px; }
.bloqueo-caja p { margin: 0 0 26px; color: rgba(255,255,255,.7); font-size: 14px; }
.bloqueo-caja .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; text-align: center; font-size: 17px; letter-spacing: .08em; }
.bloqueo-caja .input::placeholder { color: rgba(255,255,255,.45); letter-spacing: 0; }
.bloqueo-caja .btn { margin-top: 12px; background: #fff; color: #0b2545; }
.bio { margin: 26px auto 0; border: 0; background: none; color: #fff; display: grid; justify-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.bio i { width: 68px; height: 68px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.bio svg { width: 34px; height: 34px; stroke-width: 1.5; }
.bloqueo-error { color: #ffb4ae; font-size: 13px; min-height: 18px; margin-top: 10px; }
.bloqueo-pie { margin-top: 30px; font-size: 12px; color: rgba(255,255,255,.5); }

/* Bienvenida */
.bienvenida { text-align: center; padding: 18px 4px; }
.bienvenida img { width: 72px; height: 72px; border-radius: 20px; margin-bottom: 10px; }
.bienvenida h2 { margin: 0 0 6px; }
.bienvenida p { color: var(--muted); margin: 0 0 18px; }
.bienvenida-caja { max-width: 480px; margin: 0 auto; }

.mini-avatar { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.perfil.sel .mini-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }

/* Registro rápido (gastos frecuentes) */
.rapidos { margin-bottom: 14px; }
.rapidos .card-cab { margin-bottom: 8px; }
.rapido-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.rapido-chips::-webkit-scrollbar { display: none; }
.rapido-chip { flex: none; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 12px 8px 8px; cursor: pointer; text-align: left; box-shadow: var(--shadow); position: relative; }
.rapido-chip:active { transform: scale(.97); }
.rapido-chip b { display: block; font-size: 13px; white-space: nowrap; }
.rapido-chip small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rapido-chip em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 1px 6px; }
@media (min-width: 960px) { .rapido-chips { flex-wrap: wrap; overflow: visible; } }

/* Aviso con acción (Deshacer) */
.aviso.con-accion { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.aviso button { border: 0; background: none; color: #8cc0ff; font-weight: 700; cursor: pointer; padding: 0; }

/* Boleta de pago */
.subtitulo { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 8px; }
.boleta-res { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; background: var(--card-2); margin-bottom: 14px; }
.flujo-fila small.warn { font-weight: 600; font-size: 11.5px; }
