:root {
  --bg: #2A2A2A;
  --surface: #333538;
  --surface-2: #3D4044;
  --surface-3: #4A4E53;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #F2F2F2;
  --muted: #B9BCC0;
  --gold: #FFC107;
  --gold-text: #FFC107;
  --gold-soft: rgba(255, 193, 7, 0.15);
  --blue: #6FD39A;
  --blue-soft: rgba(111, 211, 154, 0.1);
  --ok: #6FD39A;
  --ok-soft: rgba(111, 211, 154, 0.12);
  --bad: #FF8A7A;
  --bad-soft: rgba(230, 0, 92, 0.14);
  --radius: 18px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
a { color: var(--gold-text); }
code { font-family: var(--mono); font-size: 0.92em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.stack-sm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.narrow { max-width: 560px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 200px; min-width: 0; }

/* Controles */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font: 600 14px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover { background: rgba(255, 255, 255, 0.06); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #222325; font-weight: 600; }
.btn-primary:hover { background: #FFC107; }
.btn-danger { border-color: rgba(248, 113, 113, 0.5); color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-sm { min-height: 34px; padding: 5px 11px; font-size: 13px; }
.btn-big { min-height: 56px; font-size: 16px; }
.btn-block { width: 100%; }
/* Botón claro para subir archivos: blanco y legible; al pasar el ratón queda solo el borde blanco */
.btn-light { background: #fff; border-color: #fff; color: #222325; font-weight: 700; }
.btn-light svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-light:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #1C1D1F; color: var(--text); font: 400 16px/1.35 var(--font);
}
textarea { resize: vertical; min-height: 92px; }
input[type='color'] { padding: 3px; height: 42px; cursor: pointer; }
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; min-height: 0; flex: none; accent-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.segmented { display: inline-flex; justify-self: start; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 3px; }
.segmented label { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:checked) { background: var(--gold); color: #222325; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card > h2 + p { margin-top: 4px; }
.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 13px; background: var(--blue-soft); border: 1px solid rgba(96, 165, 250, 0.3); }
.notice.warn { background: var(--gold-soft); border-color: rgba(255, 208, 0, 0.35); }
.notice.bad { background: var(--bad-soft); border-color: rgba(248, 113, 113, 0.35); }
.notice.ok { background: var(--ok-soft); border-color: rgba(74, 222, 128, 0.35); }
.form-error { color: var(--bad); font-size: 13px; font-weight: 500; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.badge.gold { background: var(--gold-soft); color: var(--gold-text); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

.brand { display: inline-flex; align-items: center; font-size: 18px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.brand i { margin-right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #222325; font-style: normal; font-weight: 700; font-size: 15px; }
.brand span { color: var(--gold-text); }

/* Acceso */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; }
.auth-box { width: 100%; max-width: 420px; display: grid; gap: 22px; }
.auth-box > .brand { justify-self: center; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); }

/* Panel */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: 22px 14px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.side .brand { padding: 0 8px; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav a[aria-current='page'] { background: var(--gold-soft); color: var(--gold-text); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.side-foot strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: 30px clamp(16px, 3.4vw, 40px) 60px; min-width: 0; max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 22px; }
.page-head p { margin-top: 4px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.stat { padding: 16px 18px; }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

.chart { margin-top: 14px; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 128px; border-bottom: 1px solid var(--line-strong); }
.chart-bars div { flex: 1 1 0; min-width: 0; background: var(--gold); border-radius: 3px 3px 0 0; }
.chart-bars div.zero { background: transparent; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }

.checklist { display: grid; gap: 10px; counter-reset: step; }
.checklist a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.checklist a:hover { border-color: var(--gold); }
.checklist a::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-weight: 700; font-size: 13px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.split > .sticky { position: sticky; top: 20px; }

/* Caja */
.scan-video { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #000; display: block; }
.till-balance { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.45; }
.dot.on { background: var(--dot, var(--gold)); border-color: var(--dot, var(--gold)); opacity: 1; }

/* Tarjeta de wallet (vista previa y página del cliente) */
.pass { display: grid; gap: 16px; padding: 18px; border-radius: 18px; background: var(--pass-bg); color: var(--pass-fg); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.08); }
.pass-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pass-logo img { display: block; width: 76px; height: 76px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 8px 20px rgba(0, 0, 0, .35); }
.pass-balance { justify-self: end; }
.pass-note { padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 700; text-align: center; line-height: 1.3; }
.pass-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.pass-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; flex: none; }
.pass-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pass-accent); }
.pass-balance { text-align: right; flex: none; }
.pass-balance b { display: block; font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pass .dots { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 34px)); justify-content: center; gap: 8px; --dot: var(--pass-accent); }
.pass .dots .dot { width: auto; aspect-ratio: 1; height: auto; }
.pass-strip { margin-inline: -18px; padding: 16px 18px; background-size: cover; background-position: center; }
.pass-points { text-align: center; font-size: 46px; font-weight: 800; padding: 6px 0; font-variant-numeric: tabular-nums; }
.pass-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pass-fields div { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; }
.pass-fields .pass-label { font-size: 10px; font-weight: 700; }
.pass-qr { justify-self: center; display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: #fff; color: #111; text-align: center; font: 500 11px var(--mono); }
.pass-qr img { width: 172px; height: 172px; display: block; }

/* Página pública */
.public { min-height: 100dvh; padding: 26px 16px 46px; display: grid; justify-items: center; align-content: start; }
.public-box { width: 100%; max-width: 410px; display: grid; gap: 18px; }
.powered { text-align: center; font-size: 12px; color: var(--muted); }
.wallet-buttons { display: grid; gap: 10px; }

/* Cartel imprimible */
.poster { display: grid; justify-items: center; gap: 16px; padding: 32px 24px; border-radius: 16px; background: #fff; color: #10131a; text-align: center; }
.poster h2 { font-size: 26px; font-weight: 800; overflow-wrap: anywhere; }
.poster p { font-size: 16px; }
.poster img.qr { width: min(260px, 100%); aspect-ratio: 1; }
.poster ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; font-weight: 600; }

dialog { width: min(440px, calc(100vw - 32px)); padding: 22px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); }
dialog::backdrop { background: rgba(3, 6, 14, 0.72); }

#toasts { position: fixed; z-index: 50; right: 16px; bottom: 16px; left: 16px; display: grid; justify-items: end; gap: 8px; pointer-events: none; }
.toast { max-width: 440px; padding: 11px 15px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.toast.bad { border-color: rgba(248, 113, 113, 0.6); }
.toast.ok { border-color: rgba(74, 222, 128, 0.6); }

@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } .split > .sticky { position: static; } }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-bottom: 66px; }
  .side { position: fixed; z-index: 20; top: auto; bottom: 0; left: 0; right: 0; height: auto; padding: 0; border-right: 0; border-top: 1px solid var(--line); flex-direction: row; overflow: visible; }
  .side > .brand, .side-foot { display: none; }
  .nav { display: flex; width: 100%; overflow-x: auto; gap: 0; scrollbar-width: none; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); }
  .nav a { flex: 0 0 auto; flex-direction: column; gap: 2px; min-width: 70px; padding: 6px 4px; font-size: 11px; text-align: center; }
  .main { padding-top: 22px; }
  h1 { font-size: 23px; }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* La lista de clientes pasa de tabla a tarjetas apiladas. */
  table.rows thead { display: none; }
  table.rows, table.rows tbody, table.rows tr, table.rows td { display: block; width: 100%; }
  table.rows tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.rows tr:last-child { border-bottom: 0; }
  table.rows td { padding: 3px 0; border: 0; text-align: left; white-space: normal; }
  table.rows td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: 13px; }
  table.rows .row { margin-top: 8px; }
}

.tabbar { display: none; }
.sheet { margin-top: auto; margin-bottom: 0; width: min(520px, 100vw); border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.sheet-list { display: grid; gap: 4px; }
.sheet-list a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.sheet-list a:active { background: rgba(255, 255, 255, 0.06); }
.sheet-list svg { width: 20px; height: 20px; color: var(--muted); }

@media (max-width: 760px) {
  .side { display: none; }
  .shell { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); background: rgba(34, 35, 37, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 8px 2px 4px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tab svg { width: 24px; height: 24px; transition: transform .2s; }
  .tab:active svg { transform: scale(.88); }
  .tab[aria-current='page'] { color: var(--gold-text); }
  .tab-scan { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-height: 52px; padding-bottom: 4px; color: var(--gold-text); font-size: 11px; font-weight: 800; text-decoration: none; -webkit-tap-highlight-color: transparent; }
  .scan-fab { display: grid; place-items: center; width: 68px; height: 68px; margin-top: -34px; border-radius: 50%; background: var(--gold); color: #222325; border: 5px solid var(--bg); box-shadow: 0 8px 22px rgba(255, 193, 7, 0.38); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
  .scan-fab svg { width: 30px; height: 30px; }
  .tab-scan:active .scan-fab { transform: scale(.92); }
  .tab-scan[aria-current='page'] .scan-fab { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25), 0 8px 22px rgba(255, 193, 7, 0.38); }
  #toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  body.printing .shell > .side, body.printing .page-head, body.printing .no-print, body.printing #toasts { display: none !important; }
  body.printing .shell { display: block; padding: 0; }
  body.printing .main { padding: 0; max-width: none; }
  body.printing .card { border: 0; padding: 0; background: #fff; }
  body.printing .poster { padding: 0; border-radius: 0; }
  body.printing .poster img.qr { width: 90mm; }
  body.printing .poster h2 { font-size: 34pt; }
  body.printing .poster p { font-size: 17pt; }
  body.printing .poster ol { font-size: 14pt; }
}

.notice.stack-sm { display: grid; }
form.row .form-error { flex-basis: 100%; }

/* Fondos de tarjeta */
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.design-opt { position: relative; display: grid; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 500; }
.design-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.design-opt span.thumb { display: block; aspect-ratio: 2.4; border-radius: 12px; background-size: cover; background-position: center; outline: 2px solid transparent; outline-offset: 2px; transition: transform .2s, outline-color .15s; }
.design-opt:hover span.thumb { transform: translateY(-2px); }
.design-opt input:checked + span.thumb { outline-color: var(--gold-text); }
.design-opt input:focus-visible + span.thumb { outline-color: var(--text); }
.logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }

/* Verificación del registro y fondo completo */
.captcha { padding: 14px; border-radius: 14px; background: var(--surface-2); }
.captcha-img { width: 240px; max-width: 100%; height: auto; border-radius: 12px; display: block; }
.field-title { font-weight: 700; font-size: var(--small); }
.linkish { justify-self: start; padding: 4px 0; border: 0; background: none; color: var(--gold-text); text-decoration: underline; cursor: pointer; font: inherit; }
.pass-poster { display: block; width: 100%; height: auto; border-radius: 16px; }

/* Selector de local */
.side-foot select { min-height: 36px; padding: 5px 10px; font-size: 13px; }

/* Mensajes de una sola vez, como una clave recién creada */
.secret { display: block; padding: 12px; border-radius: 10px; background: #1A1B1D; font: 500 13px var(--mono); overflow-wrap: anywhere; user-select: all; }
.toggle-row { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.upsell { display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: var(--radius); background: var(--gold-soft); }

/* Documentos: legales y API */
.prose { width: min(100% - 32px, 760px); margin: 0 auto; padding: 36px 0 80px; display: grid; gap: 16px; }
.prose > .brand { margin-bottom: 18px; }
.prose h1 { font-size: 38px; }
.prose h2 { margin-top: 18px; font-size: 22px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose pre { margin: 0; padding: 14px; border-radius: 12px; background: #1A1B1D; overflow-x: auto; font-size: 13px; }
.prose td code, .prose p code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); }

/* ---------- Intranet ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; }
.admin-tabs a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.admin-tabs a[aria-current='page'] { background: var(--gold-soft); color: var(--gold-text); }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #222325; font-size: 12px; font-weight: 800; }
.stat-n { display: block; margin: 4px 0; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bar-track { height: 8px; margin-top: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.manual { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.manual-toc { position: sticky; top: 16px; display: grid; gap: 2px; }
.manual-toc a { padding: 8px 12px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.manual-toc a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.manual-sec { scroll-margin-top: 16px; }
.manual-sec p { line-height: 1.55; }
.manual-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.5; }
.manual-faq { margin: 0; display: grid; gap: 4px; }
.manual-faq dt { margin-top: 10px; font-weight: 800; }
.manual-faq dd { margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .manual { grid-template-columns: minmax(0, 1fr); } .manual-toc { position: static; } }
@media (max-width: 760px) { .admin-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .admin-tabs a { flex: none; } }
@media print { .no-print { display: none !important; } body { background: #fff; color: #111; } .card { box-shadow: none; border: 1px solid #ccc; background: #fff; color: #111; break-inside: avoid; } .manual { display: block; } .manual-faq dd, .muted { color: #444; } }

/* Pasarela de pago */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; text-decoration: none; color: inherit; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-body { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line-strong); background: var(--surface-2); transition: border-color .15s, background-color .15s, transform .2s; }
.choice:hover .choice-body { border-color: rgba(255, 193, 7, .5); transform: translateY(-2px); }
.choice input:checked + .choice-body { border-color: var(--gold); background: var(--gold-soft); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice-price { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.choice-contact .choice-body { border-style: dashed; }
.pay-details { white-space: pre-wrap; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }

/* Volver al inicio, arriba a la izquierda de las páginas de cuenta */
.back-home { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.back-home svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.back-home:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.back-home:hover svg { transform: translateX(-3px); }
