/*
 * Checkout de links de pago.
 *
 * Sin fuentes ni hojas externas a propósito: la CSP de la distribución es
 * `default-src 'self'` y cualquier recurso de terceros quedaría bloqueado. La
 * única excepción son las imágenes (logo del comercio por https, QR en data:).
 * Los iconos son SVG en línea o máscaras `data:` — ningún archivo que pedir.
 *
 * `--brand` la pisa app.js con el color del comercio cuando el link trae uno, y
 * de ahí sale todo lo demás por `color-mix`: fondos, halos, bordes y estados.
 * Cada declaración con `color-mix` va precedida de una equivalente en rgba, que
 * es la que se queda el navegador que no lo entienda.
 */

:root {
  --brand: #4f46e5;
  --brand-ink: #ffffff;

  --bg: #f6f7fb;
  --bg-2: #eceefa;
  --card: #ffffff;
  --ink: #101322;
  --ink-2: #3b4056;
  --muted: #6b7280;
  --line: #e6e8ef;
  --line-strong: #d6d9e4;
  --field: #f7f8fc;

  --ok: #0f9d58;
  --err: #d93025;
  --warn: #b45309;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(16, 19, 34, .04), 0 12px 32px -8px rgba(16, 19, 34, .10), 0 32px 64px -24px rgba(16, 19, 34, .12);
  --ring: 0 0 0 3px rgba(79, 70, 229, .28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --bg-2: #12141d;
    --card: #151823;
    --ink: #eef1f8;
    --ink-2: #c3c8d8;
    --muted: #8f96a8;
    --line: #262a37;
    --line-strong: #333849;
    --field: #1b1f2b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-2), var(--bg) 60%);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* ── Halos de color ──────────────────────────────────────────
   Decorativos y sin coste de red: dos manchas del color del comercio, muy
   difuminadas, que dan profundidad al fondo plano. */

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: .30;
  background: rgba(79, 70, 229, .5);
  background: color-mix(in srgb, var(--brand) 45%, transparent);
}
.ambient span:first-child { top: -22vmax; left: -14vmax; }
.ambient span:last-child  { bottom: -26vmax; right: -16vmax; opacity: .20; }

@media (prefers-color-scheme: dark) {
  .ambient span { opacity: .22; }
  .ambient span:last-child { opacity: .14; }
}

/* ── Tarjeta ── */

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Filo de luz superior: separa la tarjeta del fondo sin subir el contraste del borde. */
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  opacity: .8;
}
@media (prefers-color-scheme: dark) {
  .card::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); }
}

/* Cinta del color del comercio: la única marca fuerte de la página. */
.card::after {
  content: "";
  position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--brand);
  background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 45%, #ffffff));
}

.pane {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
  animation: rise .32s cubic-bezier(.2, .7, .3, 1) both;
}
.hidden { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Tipografía de apoyo ── */

.eyebrow {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.muted { color: var(--muted); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.ref { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.title { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.01em; }

/* ── Comercio ── */

.merchant { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; }
.merchant.compact { width: 100%; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.merchant-text { min-width: 0; }
.merchant p { margin: 0; }

.logo {
  border-radius: 12px; object-fit: contain; background: #fff; flex: none;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(16, 19, 34, .08);
}

.merchant-name {
  margin: 2px 0 0; font-size: 19px; font-weight: 650; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Monto ── */

.amount-box {
  width: 100%; padding: 18px 18px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(79, 70, 229, .04);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent);
  text-align: left;
}

.amount {
  margin: 6px 0 0; font-size: 38px; line-height: 1.1; font-weight: 700;
  letter-spacing: -.025em; font-variant-numeric: tabular-nums;
}
.amount.small { font-size: 22px; margin: 2px 0 0; }

.amount-input {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--field);
  transition: border-color .18s, box-shadow .18s;
}
.amount-input:focus-within {
  border-color: var(--brand);
  box-shadow: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent);
}
.amount-input .currency { font-size: 26px; font-weight: 700; color: var(--muted); }
#amount-field {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent; color: inherit;
  font: 700 30px/1.2 inherit; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.description {
  width: 100%; margin: 0; padding: 12px 14px;
  border-radius: 12px; background: var(--field);
  text-align: left; font-size: 14px; color: var(--ink-2);
}

/* ── Métodos ── */

.label { width: 100%; margin: 2px 0 -4px; text-align: left; font-weight: 650; font-size: 14px; }
.methods { display: grid; gap: 10px; width: 100%; }

.method {
  position: relative;
  display: flex; align-items: center; gap: 13px;
  width: 100%; padding: 14px 44px 14px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: inherit;
  font: inherit; font-weight: 650; text-align: left;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .12s, background-color .18s;
}
.method:hover:not(:disabled) {
  border-color: var(--brand);
  background: rgba(79, 70, 229, .04);
  background: color-mix(in srgb, var(--brand) 5%, var(--card));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(16, 19, 34, .18);
}
.method:active:not(:disabled) { transform: translateY(0) scale(.995); }
.method:focus-visible {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent);
}
.method:disabled { opacity: .55; cursor: progress; transform: none; }
.method .sub { display: block; font-weight: 450; font-size: 13px; color: var(--muted); }

/* Chevron: la señal de "esto te lleva a algo", sin ocupar una columna propia. */
.method::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .18s, border-color .18s;
}
.method:hover:not(:disabled)::after { border-color: var(--brand); transform: rotate(-45deg) translate(2px, 2px); }

/*
 * Icono del método. El glifo entra como máscara desde `--glyph`, así hereda el
 * color de la marca en vez de venir pintado dentro del SVG.
 */
.method .dot {
  flex: none; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(79, 70, 229, .1);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  position: relative;
}
.method .dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--brand);
  -webkit-mask: var(--glyph) no-repeat center / 20px 20px;
  mask: var(--glyph) no-repeat center / 20px 20px;
}

/* Teléfono (push de Nequi) */
.method[data-method="NEQUI_PUSH"] .dot {
  --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='6' y='2' width='12' height='20' rx='2.5'/><path d='M11 18.5h2'/></svg>");
}
/* Código QR (Nequi y Bre-B) */
.method[data-method="NEQUI_QR"] .dot,
.method[data-method="BREB_QR"] .dot {
  --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><path d='M14 14h3v3h-3zM20 14v3M14 20h3M20 20v.01'/></svg>");
}
/* Llave (Bre-B) */
.method[data-method="BREB_KEY"] .dot {
  --glyph: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='12' r='4'/><path d='M12 12h9M17 12v4M20 12v3'/></svg>");
}

/* ── Número de Nequi ── */

.phone-form { display: grid; gap: 10px; width: 100%; }
.phone-form .label { margin: 0; }

.phone-field {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--field);
  transition: border-color .18s, box-shadow .18s;
}
.phone-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent);
}
/* El indicativo es fijo: Nequi es solo Colombia y pedirlo sería una forma de
   equivocarse. Va como adorno del campo, no como algo que se pueda escribir. */
.phone-field .cc {
  padding-right: 10px; border-right: 1px solid var(--line-strong);
  font-weight: 650; color: var(--muted); flex: none;
}
#phone-field {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent; color: inherit;
  font: 650 20px/1.3 inherit; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
#phone-field::placeholder { color: var(--muted); font-weight: 450; letter-spacing: normal; }

.btn-primary {
  width: 100%; padding: 15px; border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand); color: var(--brand-ink);
  font: 650 16px inherit; cursor: pointer;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 75%, transparent);
  transition: transform .12s, filter .18s;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }

.link-btn {
  border: 0; background: transparent; padding: 4px;
  color: var(--muted); font: 600 13.5px inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand); }
.link-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent); border-radius: 6px; }

/* ── Pago en curso ── */

/*
 * El QR es el elemento más funcional de la página: lo va a leer la cámara de un
 * teléfono, muchas veces con poca luz y a pulso. Todo lo de aquí respeta tres reglas:
 *
 *   1. Nada se superpone al código. Los adornos viven en el margen del soporte.
 *   2. El fondo es blanco SIEMPRE, también en modo oscuro. Un QR invertido no lo
 *      leen muchos lectores, y el contraste alto es lo que salva el escaneo.
 *   3. Queda un margen claro alrededor (la "zona tranquila" del estándar): sin él,
 *      el borde de la tarjeta se confunde con el propio código.
 */

.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.qr-plate {
  position: relative;
  padding: 18px; margin: 0;
  background: #fff;
  border-radius: 20px; border: 1px solid var(--line);
  cursor: zoom-in;
  box-shadow:
    0 10px 30px -14px rgba(16, 19, 34, .45),
    0 0 0 6px rgba(79, 70, 229, .06);
  box-shadow:
    0 10px 30px -14px rgba(16, 19, 34, .45),
    0 0 0 6px color-mix(in srgb, var(--brand) 8%, transparent);
  transition: transform .18s, box-shadow .18s;
}
.qr-plate:hover { transform: translateY(-2px); }
.qr-plate:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent);
}

#qr-image {
  display: block; width: 230px; height: 230px;
  /* `crisp-edges` conserva los módulos nítidos tanto si el proveedor manda PNG
     como SVG; con interpolación suave los bordes se emborronan y el lector falla. */
  image-rendering: crisp-edges;
}

/* Esquinas de encuadre: leen como "esto se escanea", y van sobre el margen blanco. */
.qr-corner {
  position: absolute; width: 20px; height: 20px;
  border: 2.5px solid var(--brand); border-radius: 4px;
  animation: corners 2.6s ease-in-out infinite;
}
.qr-corner.tl { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.qr-corner.tr { top: 7px; right: 7px; border-left: 0; border-bottom: 0; animation-delay: .12s; }
.qr-corner.bl { bottom: 7px; left: 7px; border-right: 0; border-top: 0; animation-delay: .36s; }
.qr-corner.br { bottom: 7px; right: 7px; border-left: 0; border-top: 0; animation-delay: .24s; }

@keyframes corners { 0%, 70%, 100% { opacity: 1; } 85% { opacity: .35; } }

/* Lupa: dice que el código se puede ampliar sin gastar una línea de texto. */
.qr-expand {
  position: absolute; right: -10px; bottom: -10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 6px 16px -6px rgba(16, 19, 34, .5);
}
.qr-expand::after {
  content: ""; position: absolute; inset: 0;
  background: var(--brand-ink);
  -webkit-mask: var(--g) no-repeat center / 17px 17px;
  mask: var(--g) no-repeat center / 17px 17px;
  --g: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='6.5'/><path d='M16 16l4.5 4.5M11 8.5v5M8.5 11h5'/></svg>");
}

.qr-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.qr-tip { font-size: 12.5px; color: var(--muted); }

.ghost {
  border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 7px 15px;
  background: transparent; color: var(--ink-2); font: 650 13px inherit; cursor: pointer;
  transition: border-color .18s, color .18s;
}
.ghost:hover { border-color: var(--brand); color: var(--brand); }
.ghost:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent); }
.ghost.done { border-color: var(--ok); color: var(--ok); }

/* ── QR a pantalla completa ── */

.zoom {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 10, 16, .82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .2s ease-out both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.zoom-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px; border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: rise .26s cubic-bezier(.2, .7, .3, 1) both;
}
#qr-zoom-image {
  display: block;
  width: min(78vw, 78vh, 420px); height: min(78vw, 78vh, 420px);
  image-rendering: crisp-edges;
}
.zoom-amount {
  margin: 0; font-size: 20px; font-weight: 700; color: #101322;
  font-variant-numeric: tabular-nums;
}

.key-box { width: 100%; text-align: left; }
.key-row {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 12px 12px 12px 14px;
  border: 1.5px dashed var(--line-strong); border-radius: 12px;
  background: var(--field);
}
.key-row code {
  flex: 1; min-width: 0;
  font: 700 18px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .01em; word-break: break-all;
}

.copy {
  flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 14px;
  background: var(--card); color: inherit; font: 650 14px inherit; cursor: pointer;
  transition: border-color .18s, color .18s, background-color .18s;
}
.copy:hover { border-color: var(--brand); color: var(--brand); }
.copy:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 26%, transparent); }
.copy.done { border-color: var(--ok); color: var(--ok); }

.instructions { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 34ch; }

.waiting {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 11px 14px;
  border-radius: 999px; background: var(--field);
  font-size: 13.5px; color: var(--muted);
}

/* Punto que late: dice "seguimos escuchando" sin la ansiedad de un spinner. */
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--brand); animation: ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { opacity: .55; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.8); } }

/* ── Resultado ── */

.mark { width: 66px; height: 66px; }
.mark svg { width: 100%; height: 100%; display: block; }
.mark-ring, .mark-glyph { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.mark-ring { stroke: currentColor; opacity: .18; }
.mark-glyph { stroke: currentColor; }
.mark.ok { color: var(--ok); }
.mark.warn { color: var(--warn); }

/* El trazo se dibuja: da el instante de "listo" que un icono estático no da. */
.mark.ok .mark-ring  { stroke-dasharray: 152; animation: draw .55s ease-out both; }
.mark.ok .mark-glyph { stroke-dasharray: 40;  animation: draw .35s .35s ease-out both; }
@keyframes draw { from { stroke-dashoffset: var(--len, 160); } to { stroke-dashoffset: 0; } }
.mark.ok .mark-ring  { --len: 152; }
.mark.ok .mark-glyph { --len: 40; }

.btn-link {
  display: block; width: 100%; margin-top: 4px; padding: 15px;
  border-radius: var(--radius-sm);
  background: var(--brand); color: var(--brand-ink);
  font-weight: 650; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .8);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 75%, transparent);
  transition: transform .12s, filter .18s;
}
.btn-link:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-link:active { transform: translateY(0); }
.btn-link:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 40%, transparent); }

/* ── Avisos ── */

.error, .notice {
  width: 100%; margin: 0; padding: 11px 13px; border-radius: 12px;
  font-size: 14px; text-align: left;
}
.error {
  background: rgba(217, 48, 37, .09); color: var(--err);
  border: 1px solid rgba(217, 48, 37, .22);
}
.notice {
  background: rgba(79, 70, 229, .08); color: var(--ink-2);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}

/* ── Cuenta atrás ── */

.expiry {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin: 0;
  font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.expiry:empty { display: none; }
.expiry::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: var(--clock) no-repeat center / contain;
  mask: var(--clock) no-repeat center / contain;
  --clock: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}
/* Los últimos dos minutos se avisan con color, no con un mensaje más. */
.expiry.urgent { color: var(--err); font-weight: 650; }

/* ── Pie ── */

.footer {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--muted);
}
.secure { display: inline-flex; align-items: center; gap: 6px; }
.lock { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.badge {
  padding: 4px 10px; border-radius: 999px;
  background: #fde68a; color: #78350f;
  font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}

/* ── Esqueleto de carga ── */

.skeleton-head { display: flex; align-items: center; gap: 13px; width: 100%; }
.sk-lines { flex: 1; display: grid; gap: 8px; }
.sk {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--field) 25%, var(--line) 37%, var(--field) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk-avatar { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.sk-line { height: 11px; }
.sk-amount { width: 100%; height: 92px; border-radius: var(--radius-sm); }
.sk-row { width: 100%; height: 66px; border-radius: var(--radius-sm); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ── Pantallas estrechas ── */

@media (max-width: 400px) {
  .card { padding: 22px 18px; border-radius: 18px; }
  .amount { font-size: 33px; }
  #qr-image { width: 190px; height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .pane, .sk, .pulse::after, .mark.ok .mark-ring, .mark.ok .mark-glyph,
  .qr-corner, .zoom, .zoom-card { animation: none; }
  .method, .btn-link, .copy, .ghost, .amount-input, .qr-plate { transition: none; }
  .method:hover:not(:disabled), .btn-link:hover, .qr-plate:hover { transform: none; }
}
