/* NexaKeys — panel de clientes. Misma base que admin/css/admin.css */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* Tokens: claro */
:root {
  color-scheme: light;
  --bg:        #f3f1ec;
  --surface:   #fbfaf7;
  --surface-2: #eeebe4;
  --surface-3: #e5e1d8;
  --line:      #dfdace;
  --line-2:    #cbc5b6;
  --ink:       #1b1a16;
  --ink-2:     #565248;
  --ink-3:     #858073;

  --accent:      #4f7a12;   /* texto y marcas */
  --accent-ink:  #1b2a05;   /* texto sobre --accent-fill */
  --accent-fill: #c8ec6a;   /* botón primario, resaltado */
  --accent-soft: #e6f3c4;

  --crit: #c2412f;  --crit-soft: #f6dfd9;
  --high: #c06a12;  --high-soft: #f6e5cf;
  --warn: #9a7a00;  --warn-soft: #f1ead0;
  --ok:   #2c7a46;  --ok-soft:   #dcefe1;
  --info: #3a6fb5;  --info-soft: #dde7f4;

  --bar:       #4f7a12;
  --bar-muted: #cfd6bf;
  --spark:     #565248;

  --shadow: 0 1px 0 rgba(27,26,22,.04), 0 8px 24px -12px rgba(27,26,22,.18);
  --overlay: rgba(27,26,22,.36);

  --sidebar-w: 232px;
  --topbar-h:  56px;
  --r:   6px;
  --r-lg: 10px;

  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* Tokens: oscuro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:        #11110f;
    --surface:   #191916;
    --surface-2: #21201c;
    --surface-3: #2a2924;
    --line:      #2c2b26;
    --line-2:    #3b3a33;
    --ink:       #edece6;
    --ink-2:     #b0aea3;
    --ink-3:     #7d7b71;
    --accent:      #b9e05a;
    --accent-ink:  #172204;
    --accent-fill: #b9e05a;
    --accent-soft: #283415;
    --crit: #ee6b5a;  --crit-soft: #3a1c17;
    --high: #f0a050;  --high-soft: #3a2914;
    --warn: #dcc054;  --warn-soft: #34301a;
    --ok:   #62c283;  --ok-soft:   #16301f;
    --info: #78a8ea;  --info-soft: #182840;
    --bar:       #b9e05a;
    --bar-muted: #3a4126;
    --spark:     #b0aea3;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    --overlay: rgba(0,0,0,.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #11110f;
  --surface:   #191916;
  --surface-2: #21201c;
  --surface-3: #2a2924;
  --line:      #2c2b26;
  --line-2:    #3b3a33;
  --ink:       #edece6;
  --ink-2:     #b0aea3;
  --ink-3:     #7d7b71;
  --accent:      #b9e05a;
  --accent-ink:  #172204;
  --accent-fill: #b9e05a;
  --accent-soft: #283415;
  --crit: #ee6b5a;  --crit-soft: #3a1c17;
  --high: #f0a050;  --high-soft: #3a2914;
  --warn: #dcc054;  --warn-soft: #34301a;
  --ok:   #62c283;  --ok-soft:   #16301f;
  --info: #78a8ea;  --info-soft: #182840;
  --bar:       #b9e05a;
  --bar-muted: #3a4126;
  --spark:     #b0aea3;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --overlay: rgba(0,0,0,.55);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.ink-2 { color: var(--ink-2); }
.hidden { display: none !important; }
::selection { background: var(--accent-fill); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid var(--bg); }

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* Login */
.login {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg);
}
.login-side {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.login-ledger { font-family: var(--mono); font-size: 12px; color: var(--ink-3); line-height: 2; }
.login-ledger div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-2); max-width: 360px; }
.login-ledger b { color: var(--ink); font-weight: 500; }
/* Flex + margin:auto: centra sin cortar formularios más altos que la pantalla */
.login-main { display: flex; flex-direction: column; padding: 24px 16px; overflow-y: auto; }
.login-card { width: 100%; max-width: 360px; margin: auto; }
.login-card h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 18px 0 4px; }
.login-card p { color: var(--ink-2); margin-bottom: 24px; }
.login-ok { margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-size: 13px; }
.login-links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.login-card .link, .check-row .link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 500; text-decoration: underline; cursor: pointer; }
.login-card .link:disabled { color: var(--ink-3); text-decoration: none; cursor: default; }
.login-card .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.login-card .hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.login-card .check-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; cursor: pointer; }
.login-card .check-row input { margin-top: 3px; flex: none; }
.code-input { font-family: var(--mono); font-size: 24px; letter-spacing: .4em; text-align: center; }
/* Trampa para robots: fuera de vista, no display:none */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.login-error { margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--crit-soft); color: var(--crit); font-size: 13px; }

/* Marca */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: block; flex: none; }
.brand-mark.lg { width: 44px; height: 44px; border-radius: 11px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small { font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: .16em; color: var(--ink-3); margin-top: 2px; }

/* Layout */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 16px 12px;
}
.sidebar .brand { padding: 4px 8px 20px; }
.nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; }
.nav .eyebrow { padding: 16px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--r);
  color: var(--ink-2); font-weight: 500; text-align: left; width: 100%;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--surface-3); color: var(--ink); }
.nav-item.active svg { color: var(--accent); }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.sidebar-foot .who { flex: 1; min-width: 0; }
.sidebar-foot .who div:first-child { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
kbd {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px;
  background: var(--surface-2);
}
.topbar-spacer { flex: 1; }

.content { padding: 24px; max-width: 1400px; width: 100%; }
.page { display: none; }
.page.active { display: block; animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.page-head p { color: var(--ink-2); margin-top: 2px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Controles */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: var(--r);
  font-weight: 500; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface);
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent-fill) 88%, var(--ink)); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-icon { width: 34px; padding: 0; }
.btn-sm.btn-icon { width: 28px; }
.btn-block { width: 100%; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 2px; }
.seg button { height: 28px; padding: 0 10px; border-radius: 4px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.input, select.input, textarea.input {
  height: 36px; padding: 0 11px; width: 100%;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  outline: none;
}
textarea.input { height: auto; padding: 8px 11px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.num { text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 30px; padding: 0 11px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 13px;
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Superficies */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 0; }
.card-head h2 { font-size: 14px; font-weight: 600; }
.card-head .sub { color: var(--ink-3); font-size: 12.5px; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 16px; }

/* Alertas */
.alert { display: grid; grid-template-columns: 4px 1fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.alert:first-child { border-top: 0; }
.alert h3 { font-size: 13.5px; font-weight: 600; margin: 2px 0; }
.alert p { color: var(--ink-2); font-size: 12.5px; }
.alert .who { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.alert .who button { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.alert .who button:hover { border-color: var(--line-2); background: var(--surface-3); }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3);
  padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface);
}
th.r, td.r { text-align: right; }
td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td.num, td .num { font-size: 13px; }
td.num, td.r, td .num { white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; border-radius: 6px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
}
.avatar.lg { width: 44px; height: 44px; font-size: 15px; border-radius: 8px; }
.toolbar { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.toolbar select.input, .toolbar input[type="date"] { width: auto; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
.pager .btns { display: flex; gap: 6px; }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }
.empty svg { width: 24px; height: 24px; margin-bottom: 8px; }
.empty strong { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 2px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 4px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.crit { background: var(--crit-soft); color: var(--crit); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.mono { font-family: var(--mono); font-size: 11.5px; }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }

/* Drawer (ficha de cliente) */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.facts > div { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.facts > div:last-child { border-right: 0; }
.facts .v { font-family: var(--mono); font-size: 17px; font-weight: 500; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.list-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mis créditos: movimientos + costos; en pantallas angostas se apilan */
.credit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; }
@media (max-width: 900px) { .credit-grid { grid-template-columns: minmax(0, 1fr); } }

/* Costo por servicio: un desplegable por tema */
.price-list { overflow: hidden; }
.price-group + .price-group { border-top: 1px solid var(--line); }
.price-group > summary { cursor: pointer; list-style: none; background: var(--surface-2); user-select: none; }
.price-group > summary::-webkit-details-marker { display: none; }
.price-group > summary::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px; flex: none;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
.price-group[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.price-group > summary:hover { background: var(--surface-3); }
.price-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Modal */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: var(--overlay); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; overflow-y: auto; }
.modal-bg.open { display: flex; }
#terms-bg { z-index: 120; }  /* sobre la pantalla de ingreso (z-index 100) */
.modal { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); animation: rise .18s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 15px; font-weight: 600; }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* Toast */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: 13px; animation: rise .2s ease-out; max-width: calc(100vw - 32px); }
.toast.err svg { color: var(--crit); }
.toast.ok svg { color: var(--accent-fill); }

/* Skeleton */
.sk { display: block; height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }

/* Responsive */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex; }
  .login { grid-template-columns: 1fr; }
  .login-side { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; gap: 8px; }
  .content { padding: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .page-head h1 { font-size: 19px; }
  .hide-sm { display: none; }
  .list-row { flex-wrap: wrap; row-gap: 4px; }
  th, td { padding: 9px 12px; }
}

/* Saldo en la barra superior */
.balance {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.balance b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 14px; }
.balance.low b { color: var(--crit); }

/* Buscador: layout propio (los componentes están en shared/consulta.css) */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.finder-main { min-width: 0; }

/* Columna lateral */
.side { display: flex; flex-direction: column; gap: 16px; }
.side .big { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin-top: 6px; }
.recent { display: flex; flex-direction: column; }
.recent button { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); text-align: left; width: 100%; }
.recent button:first-child { border-top: 0; }
.recent button:hover { background: var(--surface-2); }
.recent .mono { font-size: 13px; }
.recent .grow { flex: 1; min-width: 0; }
.recent .sub { font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .finder { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .side { grid-template-columns: 1fr; }
  .balance span { display: none; }
}

/* Términos de uso */
.terms-modal { max-width: 620px; }
.terms-text { max-height: 46vh; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 13.5px; }
.terms-text h3 { font-size: 13.5px; font-weight: 600; margin: 14px 0 4px; }
.terms-text h3:first-child { margin-top: 0; }
.terms-text p { color: var(--ink-2); margin-bottom: 6px; }
.terms-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; cursor: pointer; }
.terms-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }

/* Impresión: solo los resultados */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .page-head, .finder, .results-head .actions, .result-top .btn, .toasts { display: none !important; }
  .app { display: block; }
  .content { padding: 0; max-width: none; }
  .results { margin-top: 0; }
  .result { break-inside: avoid; border-color: #bbb; }
}

/* Recarga con Binance Pay */
.bn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.bn-head h2 { font-size: 15px; font-weight: 600; }
.bn-head .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.bn-paquetes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bn-paquete { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: left; cursor: pointer; }
.bn-paquete:hover { border-color: var(--ink); background: var(--surface-2); }
.bn-paquete b { font-size: 22px; font-weight: 600; }
.bn-paquete span { font-size: 12px; color: var(--ink-3); }
.bn-paquete em { font-style: normal; margin-top: 6px; font-size: 13px; color: var(--accent); font-weight: 600; }
.bn-pago { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.bn-qr { margin: 0; text-align: center; }
.bn-qr img { width: 100%; max-width: 220px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.bn-qr figcaption { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; }
.bn-pasos { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; }
.bn-pasos li { padding-left: 4px; }
.bn-pasos .muted { font-size: 12px; }
.bn-validar { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bn-validar .input { flex: 1; min-width: 180px; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 640px) { .bn-pago { grid-template-columns: 1fr; } .bn-qr img { max-width: 200px; } }
