/* Transferencias.co · azul marino y dorado, a juego con el logo */
:root {
  --navy-950: #050E26; --navy-900: #071531; --navy: #0B1D4A; --navy-700: #142B66; --royal: #1E3F95;
  --navy-soft: #EAEEF8;
  --gold: #D4A437; --gold-200: #F6E3A6; --gold-100: #FBF3DC; --gold-700: #9C6E14;
  --gold-grad: linear-gradient(135deg, #F7E08F 0%, #D9AA3E 48%, #B4821F 100%);
  --navy-grad: radial-gradient(120% 140% at 85% -10%, #1E3F95 0%, #0B1D4A 45%, #050E26 100%);
  --bg: #F4F2EC; --surface: #FFFFFF; --line: #DCD6C8; --line-soft: #E9E5DA;
  --text: #0B1D4A; --muted: #4F5B78; --faint: #5E6984;
  --ok: #0F7A45; --ok-soft: #DFF3E8; --warn: #8A5A00; --warn-soft: #FFF1CC; --bad: #A3261F; --bad-soft: #FDECEC;
  --radius: 16px; --shadow: 0 1px 2px rgba(11,29,74,.06), 0 6px 20px rgba(11,29,74,.06);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--royal); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
img { max-width: 100%; }

.demo-band { background: var(--gold-grad); color: var(--navy-950); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-align: center; padding: 5px 12px; }

/* Encabezado */
.topbar { background: var(--navy-950); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(212,164,55,.35); }
.topbar .in { max-width: 560px; margin: 0 auto; padding: 8px 12px 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; color: #fff; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.brand .co { color: var(--gold); }
.bell { position: relative; background: none; border: 0; min-width: 44px; min-height: 44px; cursor: pointer; color: #fff; display: grid; place-items: center; border-radius: 12px; }
.bell:hover { background: rgba(255,255,255,.08); }
.bell .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: var(--navy-950); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

main { max-width: 560px; margin: 0 auto; padding: 18px 16px 112px; display: flex; flex-direction: column; gap: 16px; }
h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h2 { margin: 6px 0 0; font-size: 17px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec-title a { font-size: 14px; font-weight: 700; text-decoration: none; }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }

/* Tarjeta de la tasa */
.rate { background: var(--navy-grad); color: #fff; border-radius: 22px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(5,14,38,.25); }
.rate::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(212,164,55,.45); }
.rate .label { color: #C8D2EC; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.rate .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rate .row2 { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #DCE3F5; }
.rate .row2 b { color: #fff; font-variant-numeric: tabular-nums; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.trend.up { background: rgba(80,200,140,.18); color: #8FE3B6; }
.trend.down { background: rgba(255,120,110,.18); color: #FFB2A8; }

.pocket { background: var(--gold-100); border: 1.5px solid var(--gold); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.pocket .big { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Accesos rápidos */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--navy); font-size: 13px; font-weight: 700; text-align: center; }
.qa .ic { width: 58px; height: 58px; border-radius: 18px; background: var(--navy); color: var(--gold); display: grid; place-items: center; box-shadow: var(--shadow); }
.qa:hover .ic { background: var(--navy-700); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { min-height: 72px; border: 1px solid var(--line-soft); background: var(--surface); border-radius: var(--radius); font-weight: 700; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 14px; }
.tile svg { color: var(--gold-700); }

/* Banners */
.banners { display: flex; flex-direction: column; gap: 8px; }
.banner-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
.banner-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: start; min-height: 150px; border-radius: 20px; padding: 14px 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-decoration: none; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.banner .chip { align-self: flex-start; margin-bottom: auto; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.banner .t { font-size: 19px; font-weight: 800; line-height: 1.2; max-width: 85%; }
.banner .x { font-size: 14px; max-width: 90%; }
.banner .cta { margin-top: 6px; align-self: flex-start; font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 10px; }
.banner.promocion { background-color: var(--navy); background-image: var(--navy-grad); color: #fff; }
.banner.promocion .chip, .banner.promocion .cta { background: var(--gold-grad); color: var(--navy-950); }
.banner.oferta { background: var(--gold-grad); color: var(--navy-950); }
.banner.oferta .chip, .banner.oferta .cta { background: var(--navy); color: var(--gold-200); }
.banner.informacion { background: var(--surface); color: var(--navy); border: 1.5px solid var(--line); }
.banner.informacion .chip { background: var(--navy-soft); color: var(--royal); }
.banner.informacion .cta { background: var(--navy); color: #fff; }
.banner.img { color: #fff; }
.banner.img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,14,38,0) 20%, rgba(5,14,38,.85) 100%); }
.banner.img > * { position: relative; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.dots button.on { width: 22px; background: var(--gold); }

/* Formularios */
label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=datetime-local], select, textarea {
  min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 16px; color: var(--text); background: var(--surface); width: 100%;
}
textarea { padding: 12px 14px; min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px rgba(30,63,149,.15); }
input.amount { font-size: 26px; font-weight: 800; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; }
.chips button:hover { border-color: var(--gold); }

.btn { min-height: 52px; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; padding: 0 18px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--navy-700); }
.btn.sun, .btn.gold { background: var(--gold-grad); color: var(--navy-950); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--navy); background: transparent; }
.btn.danger { background: var(--bad); }
.btn.sm { min-height: 40px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* Calculadora de envío */
.calc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.calc .part { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.calc .part + .part { border-top: 1px dashed var(--line); background: #FBFAF6; }
.calc .part label { font-size: 13px; }
.calc input.amount { border: 0; padding: 0; min-height: 44px; box-shadow: none; background: transparent; }
.calc .out { font-size: 26px; font-weight: 800; color: var(--royal); font-variant-numeric: tabular-nums; }
.calc .meta { padding: 10px 16px; background: var(--navy-soft); font-size: 13px; color: var(--navy); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--gold); }

.quote { background: var(--navy-soft); border-radius: 12px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quote b { font-size: 22px; color: var(--royal); font-variant-numeric: tabular-nums; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; min-height: 60px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line-soft); background: var(--surface); color: var(--text); cursor: pointer; width: 100%; }
.choice.on { border-color: var(--gold); background: var(--gold-100); }
.check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; }
.choice.on .check { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }

/* Empresas */
.empresas { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.empresa { border: 1.5px solid var(--line-soft); background: var(--surface); border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-align: center; font-size: 13px; font-weight: 700; color: var(--navy); min-height: 112px; }
.empresa.on { border-color: var(--gold); background: var(--gold-100); box-shadow: 0 0 0 3px rgba(212,164,55,.2); }
.logo-emp { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--navy-soft); color: var(--navy); font-weight: 800; font-size: 17px; letter-spacing: .02em; flex: 0 0 auto; }
.logo-emp img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: #E8E3D7; padding: 4px; border-radius: 14px; }
.tabs button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--navy); box-shadow: var(--shadow); }

/* Listas */
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; }
.item .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; flex: 0 0 auto; }
.item .main { flex: 1; min-width: 0; }
.item .t { font-weight: 700; font-size: 14px; }
.item .d { font-size: 12px; color: var(--faint); }
.item .a { font-weight: 700; font-size: 14px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--navy-soft); color: var(--royal); }
.pill.gold { background: var(--gold-100); color: var(--gold-700); }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.info { background: var(--navy-soft); color: var(--navy); }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--navy-950); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; max-width: calc(100% - 32px); z-index: 50; border: 1px solid rgba(212,164,55,.5); }

/* Resumen del mes */
.mes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mes > * { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px 12px; }
.mes > * b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mes > * span { font-size: 12px; color: var(--muted); }
.bar { height: 8px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 4px; }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 14px; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); margin-top: 6px; box-shadow: 0 0 0 3px var(--gold-100); }

nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 20; box-shadow: 0 -4px 20px rgba(11,29,74,.06); }
nav.bottom .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
nav.bottom a { min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--faint); text-decoration: none; position: relative; }
nav.bottom a.on { color: var(--navy); font-weight: 800; }
nav.bottom a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
nav.bottom a.on svg { color: var(--gold-700); }

.empty { text-align: center; color: var(--muted); padding: 24px 12px; font-size: 14px; }

/* Pantalla de entrada */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 4px; }
.welcome img { width: 148px; height: 148px; filter: drop-shadow(0 10px 24px rgba(5,14,38,.25)); }
.welcome h1 { font-size: 24px; }
body.guest { background: linear-gradient(180deg, #E9E4D6 0, var(--bg) 260px); }

/* ---------------- Panel de operación ---------------- */
body.admin { background: var(--bg); }
body.admin .topbar .in { max-width: none; padding: 8px 20px; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 57px); }
.side { background: var(--navy-900); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 57px; height: calc(100vh - 57px); }
.side button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: #C8D2EC; font-weight: 700; cursor: pointer; text-align: left; font-size: 15px; }
.side button:hover { background: rgba(255,255,255,.06); color: #fff; }
.side button.on { background: var(--gold-grad); color: var(--navy-950); }
.side button .n { margin-left: auto; background: var(--gold); color: var(--navy-950); border-radius: 999px; font-size: 12px; padding: 0 7px; }
.side button.on .n { background: var(--navy); color: var(--gold-200); }
body.admin main { max-width: 1240px; width: 100%; margin: 0; padding: 22px 24px 40px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 8px; }
  .side button { flex: 0 0 auto; }
  body.admin main { padding: 16px; }
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); background: #FAF8F3; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.stat .n { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--muted); }
.stat.dark { background: var(--navy-grad); color: #fff; border: 0; }
.stat.dark .n { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.dark .l { color: #C8D2EC; }
.stat.alerta { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 960px) { .grid2 { grid-template-columns: 1fr; } }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.actions input { min-height: 40px; max-width: 170px; font-size: 14px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.preview-rate { background: var(--navy-grad); color: #fff; border-radius: 16px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.preview-rate b { display: block; font-size: 20px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.preview-rate span { font-size: 12px; color: #C8D2EC; }
.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; background: #E8E3D7; padding: 4px; border-radius: 12px; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--navy); box-shadow: var(--shadow); }
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bn-card { display: flex; flex-direction: column; gap: 10px; }
.bn-card .banner { flex: none; min-height: 140px; }

/* Recibo */
.recibo { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.rc-head { background: var(--navy-950); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 4px solid var(--gold); }
.rc-head img { width: 56px; height: 56px; border-radius: 50%; }
.rc-head b { display: block; font-size: 19px; } .rc-head b span { color: var(--gold); }
.rc-head div > span { font-size: 12px; color: #C8D2EC; letter-spacing: .06em; text-transform: uppercase; }
.rc-estado { margin: 16px 18px 0; align-self: flex-start; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--line-soft); color: var(--muted); }
.rc-estado.ok { background: var(--ok-soft); color: var(--ok); } .rc-estado.warn { background: var(--warn-soft); color: var(--warn); }
.rc-estado.bad { background: var(--bad-soft); color: var(--bad); } .rc-estado.info { background: var(--navy-soft); color: var(--royal); }
.rc-titulo { font-size: 20px; margin: 8px 18px 0; }
.rc-monto { margin: 10px 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--gold-100); border: 1px solid var(--gold-200); display: flex; flex-direction: column; }
.rc-monto span { font-size: 13px; color: var(--muted); } .rc-monto b { font-size: 28px; font-variant-numeric: tabular-nums; }
.rc-partes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 18px 0; }
.rc-parte { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.rc-parte b { color: var(--text); font-size: 15px; }
.rc-k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); }
.rc-lineas { margin: 12px 18px 0; display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.rc-pie { padding: 12px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.rc-demo { text-align: center; font-weight: 800; letter-spacing: .08em; color: var(--bad); font-size: 12px; border: 1.5px dashed var(--bad); border-radius: 8px; padding: 4px; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; }
  .topbar, nav.bottom, .demo-band, .no-print, .toast { display: none !important; }
  main { padding: 0 !important; max-width: 520px; }
  .recibo { box-shadow: none; border: 1px solid #ccc; }
  .rc-head, .rc-monto, .rc-estado { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.rc-lineas .kv span:last-child { white-space: nowrap; }
