/* Softdigital Pay · páginas de pago
   Mismos tokens de marca que el panel: cobalto para la acción, tinta para la
   franja superior y menta como señal de confirmación. Sin estilos en línea (CSP). */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --text: #0f1a36;
  --muted: #5e6888;
  --border: #e2e6f0;
  --accent: #2b45e0;
  --accent-text: #ffffff;
  --accent-hover: #1f36c2;
  --ring: rgb(43 69 224 / .28);
  --ink: #0c1633;
  --mint: #19d3a0;
  --ok: #0b7a55;   --ok-bg: #e4f6ee;
  --warn: #9a5b00; --warn-bg: #fdf2de;
  --bad: #c2312a;  --bad-bg: #fde9e7;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 26 54 / .05), 0 12px 32px rgb(15 26 54 / .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1f; --surface: #10172b; --surface-2: #141c33; --text: #e7ebf7; --muted: #98a2c4; --border: #232d4d;
    --accent: #4a62f2; --accent-text: #ffffff; --accent-hover: #5b74ff; --ring: rgb(142 160 255 / .35); --ink: #070b18;
    --ok: #5dd6a4; --ok-bg: #0f2a22; --warn: #f1b85a; --warn-bg: #2e2410; --bad: #ff8a80; --bad-bg: #34161a;
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 12px 32px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Franja de marca detrás de la tarjeta. */
.band { position: absolute; inset: 0 0 auto; height: 230px; background: radial-gradient(120% 140% at 85% -20%, #2b45e0 0%, transparent 55%), linear-gradient(160deg, #0c1633 0%, #14204a 100%); z-index: 0; }
.band::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: rgb(255 255 255 / .08); }
.wrap { position: relative; z-index: 1; max-width: 30rem; margin: 0 auto; padding: 1.4rem 1rem 2.5rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; color: #fff; }
.merchant { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; min-width: 0; }
.initial { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); font-weight: 700; }
.secure { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: #cfd6f2; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.secure svg { color: var(--mint); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem; box-shadow: var(--shadow); }
.card-head { margin-bottom: .25rem; }
.eyebrow { margin: 0 0 .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: 1.32rem; line-height: 1.3; margin: 0 0 .35rem; letter-spacing: -.015em; }
.desc, .lead { color: var(--muted); margin: 0 0 1rem; }
.amount { font-size: 2.6rem; font-weight: 750; letter-spacing: -.035em; margin: .35rem 0 1.1rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.currency { font-size: 1rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.facts { margin: 0 0 1.35rem; padding: .25rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
form { margin: 0; }
button, .secondary {
  display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; min-height: 52px;
  border-radius: 12px; font: inherit; font-weight: 650; text-align: center; cursor: pointer;
  text-decoration: none; padding: .85rem 1rem;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.primary { background: var(--accent); color: var(--accent-text); border: 0; box-shadow: 0 1px 2px rgb(27 43 168 / .3), 0 6px 16px rgb(43 69 224 / .25), inset 0 1px 0 rgb(255 255 255 / .12); }
.primary:hover { background: var(--accent-hover); }
.primary:active { transform: translateY(1px); }
.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); margin-top: .75rem; }
.secondary:hover { border-color: var(--muted); background: var(--surface-2); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.hint { color: var(--muted); font-size: .86rem; margin: .9rem 0 0; }
.hint.center { text-align: center; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; }
.state { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; }
.state-ok { color: var(--ok); background: var(--ok-bg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-bg) 50%, transparent); }
.state-wait { color: var(--warn); background: var(--warn-bg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--warn-bg) 50%, transparent); }
.state-bad { color: var(--bad); background: var(--bad-bg); box-shadow: 0 0 0 8px color-mix(in srgb, var(--bad-bg) 50%, transparent); }
.status { font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); }
.status-wait { color: var(--warn); }
.status-bad { color: var(--bad); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { color: var(--muted); font-size: .8rem; margin-top: 1.5rem; text-align: center; }
/* El logo del banco es azul oscuro: va sobre blanco también en modo oscuro. */
.bank-logo { display: block; width: 120px; height: auto; margin: 0 auto .7rem; padding: .35rem .6rem; background: #fff; border-radius: 8px; box-sizing: content-box; border: 1px solid var(--border); }
.foot p { margin: 0 auto; max-width: 26rem; }
.foot .by { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .78rem; }
.foot .by strong { color: var(--text); font-weight: 650; }
@media (max-width: 420px) { .card { padding: 1.3rem 1.1rem; } .amount { font-size: 2.2rem; } .facts { padding: .2rem .8rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
