/* ============================================================
   SacaBola — Landing · estilos vanilla + animaciones
   (Tailwind se compila con `npm run build`; aquí va todo lo personalizado)
   TEMA CLARO ÚNICO: fondo blanco, texto azul marino, azul de acción y los
   cinco pastel de la paleta como acentos. Ver docs/SISTEMA-DISENO.md.
   ============================================================ */

:root {
  --surface-0:   #ffffff;
  --surface-50:  #f8fafc;
  --surface-100: #f1f5f9;
  --surface-200: #e1e8ef;
  --surface-300: #ccd5e1;
  --ink-900:     #0d1d30;
  --ink-700:     #233b52;
  --ink-500:     #425a70;
  --ink-400:     #5c7284;
  --ink-300:     #8fa0ae;
  --primary-300: #70d6ff;
  --primary-500: #0779c0;
  --primary-600: #055c9e;
  --success:     #11794c;
  --danger:      #ca211c;
  --money:       #ffd670;
  color-scheme: light;
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink-900);
  background-color: var(--surface-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Ambiente: luces frías (celeste, rosa, amarillo) ---------- */
.app-bg {
  position: relative;
  background:
    radial-gradient(1100px 620px at 10% -12%, rgba(112, 214, 255, 0.30), transparent 62%),
    radial-gradient(900px 520px at 100% 4%,  rgba(255, 112, 166, 0.16), transparent 58%),
    radial-gradient(900px 620px at 52% 118%, rgba(255, 214, 112, 0.16), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 45%, #eef4fa 100%);
}
/* Retícula de puntos (sustituye a las rayas blancas del tema oscuro) */
.app-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(112, 214, 255, 0.45) 1px, transparent 1px),
    radial-gradient(rgba(255, 112, 166, 0.32) 1px, transparent 1px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  opacity: 0.55;
}
/* El grano de película se elimina: sobre blanco leía como suciedad.
   La clase `grain` se mantiene en el marcado, ya inerte. */

/* el contenido va por encima del ambiente */
header, main, footer { position: relative; z-index: 2; }

/* ---------- Superficies ---------- */
.glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  border: 1px solid var(--surface-200);
  box-shadow: 0 1px 2px rgba(13, 29, 48, 0.04), 0 8px 24px -8px rgba(13, 29, 48, 0.10);
}
.glass-strong {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--surface-200);
  box-shadow: 0 24px 60px -20px rgba(13, 29, 48, 0.22), 0 2px 6px rgba(13, 29, 48, 0.06);
}

/* ---------- Texto degradado de marca (conserva el nombre, ahora azul) ---------- */
.text-gold-grad {
  background: linear-gradient(135deg, #0a8fd6 0%, #0779c0 42%, #05447a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Solo para cifras de dinero (premio, saldo, importe ganado). */
.text-money-grad {
  background: linear-gradient(135deg, #a25c07 0%, #c78f05 45%, #956c04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* El subrayado a mano en amarillo de las maquetas. */
.subrayado-amarillo {
  background-image: linear-gradient(#ffd670, #ffd670);
  background-repeat: no-repeat;
  background-size: 100% 0.34em;
  background-position: 0 88%;
  padding: 0 0.08em;
}

/* ---------- Logo de las páginas legales (bola dorada dibujada en CSS) ---------- */
.logo-ball {
  position: relative;
  background: radial-gradient(circle at 35% 30%, #fff6dd 0%, #ffd670 42%, #f6be31 68%, #c78f05 100%);
  box-shadow:
    inset -4px -6px 11px rgba(114, 82, 3, 0.35),
    inset  3px  4px 9px rgba(255, 255, 255, 0.75),
    0 8px 18px -8px rgba(13, 29, 48, 0.28);
}
.logo-ball::after {
  content: '';
  position: absolute;
  left: 6px; top: 4px;
  height: 7px; width: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(1px);
}

/* ---------- Header / nav ---------- */
#header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--surface-200);
  box-shadow: 0 1px 2px rgba(13, 29, 48, 0.04), 0 8px 24px -8px rgba(13, 29, 48, 0.10);
}
.navlink {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-500);
  transition: background 0.2s, color 0.2s;
}
.navlink:hover { background: var(--surface-100); color: #05447a; }
.mobile-link {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: background 0.2s, color 0.2s;
}
.mobile-link:hover { background: var(--surface-100); color: #05447a; }

/* ---------- Botón principal (conserva el nombre; ahora es el azul de acción) ---------- */
.btn-gold {
  position: relative;
  display: inline-block;
  background: linear-gradient(to bottom, #0779c0, #05447a);
  border: 1px solid rgba(5, 68, 122, 0.25);
  box-shadow: 0 1px 2px rgba(13, 29, 48, 0.04), 0 8px 24px -8px rgba(13, 29, 48, 0.10);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  overflow: hidden;
}
/* El hover OSCURECE, nunca aclara: el texto es blanco. */
.btn-gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(to bottom, #055c9e, #07335f);
  box-shadow: 0 2px 4px rgba(13, 29, 48, 0.05), 0 18px 40px -12px rgba(13, 29, 48, 0.16);
}
.btn-gold:active { transform: translateY(0) scale(0.98); }

/* brillo de barrido en botones */
.shine-sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
  background-size: 200% 100%;
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.shine-sweep:hover::after { transform: translateX(100%); }

/* ---------- Insignias / detalles ---------- */
.badge-live {
  border-radius: 999px;
  border: 1px solid #ccf5e2;
  background: #e9fbf3;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0b603d;
}
.dot-live {
  position: relative;
  height: 8px; width: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(17, 121, 76, 0.18);
}
.dot-live::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(17, 121, 76, 0.55);
  animation: ping 1.7s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.tick {
  display: grid;
  place-items: center;
  height: 1.4rem; width: 1.4rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #ccf5e2;
  color: #0b603d;
  font-size: 0.8rem;
  font-weight: 800;
}
/* Antetítulo: no es dinero, es acción → azul */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #055c9e;
}
.section-title {
  margin-top: 0.5rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--ink-900);
}

/* ---------- Bolas decorativas del hero (paleta del dueño) ---------- */
.deco-ball {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 3.4rem; width: 3.4rem;
  border-radius: 999px;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--ink-900);
  box-shadow: 0 12px 24px -8px rgba(13, 29, 48, 0.28);
  opacity: 0.85;
}
.deco-ball::after {
  content: '';
  position: absolute;
  left: 22%; top: 18%;
  height: 22%; width: 30%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  filter: blur(1px);
}
.ball-celeste  { background: radial-gradient(circle at 35% 30%, #ffffff, #70d6ff 55%, #058fc7); --ball-glow: rgba(112, 214, 255, 0.45); }
.ball-rosa     { background: radial-gradient(circle at 35% 30%, #ffffff, #ff70a6 55%, #c7054e); --ball-glow: rgba(255, 112, 166, 0.38); }
.ball-naranja  { background: radial-gradient(circle at 35% 30%, #ffffff, #ff9770 55%, #c73a05); --ball-glow: rgba(255, 151, 112, 0.38); }
.ball-amarilla { background: radial-gradient(circle at 35% 30%, #ffffff, #ffd670 55%, #c78f05); --ball-glow: rgba(255, 214, 112, 0.45); }
.ball-lima     { background: radial-gradient(circle at 35% 30%, #ffffff, #e9ff70 55%, #a9c705); --ball-glow: rgba(233, 255, 112, 0.45); }
/* En móvil conservamos solo las bolas superiores, más pequeñas, para no estorbar el formulario */
@media (max-width: 1023px) {
  .deco-ball { height: 2.5rem; width: 2.5rem; font-size: 0.85rem; opacity: 0.45; }
  .ball-lima, .ball-celeste { display: none; }
}

/* ---------- Formulario ---------- */
.field { position: relative; }
.field-ic {
  position: absolute;
  left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.8;
  pointer-events: none;
}
.field input {
  width: 100%;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  padding: 0 1rem 0 2.6rem;
  color: var(--ink-900);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--ink-300); }
.field input:focus { border-color: var(--primary-300); box-shadow: 0 0 0 4px rgba(112, 214, 255, 0.35); }
.social {
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-300);
  background: var(--surface-0);
  color: var(--ink-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.social:hover { border-color: var(--primary-300); color: #05447a; transform: translateY(-1px); }

/* ---------- Marquee ---------- */
.marquee { animation: marquee 28s linear infinite; }
.marquee span { white-space: nowrap; }

/* ---------- Tarjetas: pasos / features / trust ---------- */
.step, .feature, .trust {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  box-shadow: 0 1px 2px rgba(13, 29, 48, 0.04), 0 8px 24px -8px rgba(13, 29, 48, 0.10);
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.step:hover, .feature:hover, .trust:hover {
  transform: translateY(-4px);
  border-color: #b8eaff;
  box-shadow: 0 2px 4px rgba(13, 29, 48, 0.05), 0 18px 40px -12px rgba(13, 29, 48, 0.16);
}
.step-num {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(5, 92, 158, 0.14);
}
/* Cuadradito de icono. Se conserva el emoji (glifo multicolor: ignora `color`),
   por eso el relleno es pastel claro y no un color saturado con icono blanco. */
.step-ic, .feature-ic, .trust-ic {
  display: grid;
  place-items: center;
  height: 3.2rem; width: 3.2rem;
  border-radius: 1rem;
  border: 1px solid #b8eaff;
  background: #f0fbff;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
/* variedad de acento por tarjeta (celeste · rosa · naranja · amarillo) */
.step:nth-child(4n+1) .step-ic  { background: #ebf9ff; border-color: #ade8ff; }
.step:nth-child(4n+2) .step-ic  { background: #ffebf2; border-color: #ffadcc; }
.step:nth-child(4n+3) .step-ic  { background: #fff0eb; border-color: #ffc4ad; }
.step:nth-child(4n+4) .step-ic  { background: #fff9eb; border-color: #ffe8ad; }
.trust:nth-child(3n+1) .trust-ic { background: #ebf9ff; border-color: #ade8ff; }
.trust:nth-child(3n+2) .trust-ic { background: #ffebf2; border-color: #ffadcc; }
.trust:nth-child(3n+3) .trust-ic { background: #fff0eb; border-color: #ffc4ad; }
/* los tres «feature» conservan su significado: dinero · rosa decorativo · éxito */
.feature-ic.glow-gold { background: #fff9eb; border-color: #ffe8ad; }
.feature-ic.glow-mint { background: #e9fbf3; border-color: #ccf5e2; }
.feature-ic.glow-rose { background: #ffebf2; border-color: #ffadcc; }
.step-title, .feature-title, .trust-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-900);
}
.step-text, .feature-text, .trust-text { margin-top: 0.4rem; font-size: 0.92rem; color: var(--ink-500); line-height: 1.5; }

/* ---------- Métodos de pago ---------- */
.pay {
  display: grid;
  place-items: center;
  height: 3.6rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-700);
  transition: transform 0.18s, border-color 0.18s, color 0.18s;
}
.pay:hover { transform: translateY(-2px); border-color: var(--primary-300); color: #05447a; }

/* ---------- FAQ (details) ---------- */
.faq {
  border-radius: 1.5rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.2rem;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--primary-600);
  transition: transform 0.25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 1.2rem 1.2rem; color: var(--ink-500); line-height: 1.55; }
.faq[open] p { animation: riseIn 0.35s ease-out both; }

/* ---------- Footer ---------- */
.footer-h { font-weight: 700; color: var(--ink-900); font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-list a { color: var(--ink-500); font-size: 0.9rem; transition: color 0.2s; }
.footer-list a:hover { color: #05447a; }

/* ============================================================
   Animaciones
   ============================================================ */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes riseIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { 0% { transform: scale(0.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(6deg); opacity: 1; } }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 75%, 100% { transform: scale(2.4); opacity: 0; } }

.float { animation: float 6s ease-in-out infinite; }
.pop-in { animation: popIn 0.6s cubic-bezier(.2, 1.4, .4, 1) both; }
.float2 { animation: float 8.5s ease-in-out infinite; }
.pulse-glow { animation: pulseGlow 2.2s ease-in-out infinite; }
.spin-slow { animation: spinSlow 16s linear infinite; }

/* Reveal al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .3, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Accesibilidad: reduce-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Focus visible ---------- */
:focus-visible { outline: 2px solid var(--primary-500); outline-offset: 2px; border-radius: 10px; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-100); }
::-webkit-scrollbar-thumb { background: var(--surface-300); border-radius: 999px; border: 2px solid var(--surface-100); }
::-webkit-scrollbar-thumb:hover { background: #a9b8c6; }
::selection { background: rgba(112, 214, 255, 0.45); color: var(--ink-900); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ============================================================
   Páginas legales (terminos, privacidad, pagos, aml-kyc, ...)
   ============================================================ */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-500);
  transition: color 0.2s;
}
.legal-back:hover { color: #05447a; }

.legal-hero {
  border-bottom: 1px solid var(--surface-200);
}
.legal-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--ink-900);
}
.legal-meta { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-400); }

.legal-disclaimer {
  display: flex;
  gap: 0.8rem;
  border-radius: 1rem;
  border: 1px solid #dbf4ff;
  background: #f0fbff;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-700);
}
.legal-disclaimer strong { color: #05447a; }

/* TOC */
.legal-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.legal-toc a { color: var(--ink-500); font-size: 0.9rem; transition: color 0.2s; }
.legal-toc a:hover { color: #05447a; }

/* Prosa legal */
.legal-prose { color: var(--ink-700); line-height: 1.7; }
.legal-prose section { scroll-margin-top: 6rem; }
.legal-prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink-900);
  margin: 2.2rem 0 0.7rem;
}
.legal-prose h2 .num { color: var(--primary-600); margin-right: 0.5rem; }
.legal-prose h3 { font-weight: 700; color: #172b40; font-size: 1.05rem; margin: 1.3rem 0 0.4rem; }
.legal-prose p { margin: 0 0 0.9rem; }
.legal-prose ul, .legal-prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.legal-prose li { margin-bottom: 0.4rem; }
.legal-prose a { color: var(--primary-600); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose a:hover { color: #05447a; }
.legal-prose strong { color: var(--ink-900); }
.legal-prose hr { border: none; border-top: 1px solid var(--surface-200); margin: 2rem 0; }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.2rem; font-size: 0.92rem; }
.legal-prose th, .legal-prose td { text-align: left; padding: 0.6rem 0.8rem; border: 1px solid var(--surface-200); }
.legal-prose th { background: var(--surface-100); color: var(--ink-900); font-weight: 700; }

/* ============================================================
   Mejoras: hero, bolitas, secciones claras, logos de pago y recarga
   ============================================================ */

/* ---------- Hero: fondo más rico ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: '';
  position: absolute;
  inset: -8% -6% 0 -6%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(62% 55% at 50% -10%, rgba(112, 214, 255, 0.34), transparent 62%),
    radial-gradient(42% 42% at 86% 8%, rgba(255, 112, 166, 0.22), transparent 60%),
    radial-gradient(48% 48% at 10% 28%, rgba(255, 214, 112, 0.20), transparent 60%);
}
/* aros tipo "mesa de juego" detrás del formulario */
.hero::after {
  content: '';
  position: absolute;
  z-index: -2;
  width: 720px; height: 720px;
  right: -200px; top: -150px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle, transparent 57%, rgba(112, 214, 255, 0.20) 58%, transparent 61%),
    radial-gradient(circle, transparent 69%, rgba(255, 112, 166, 0.14) 70%, transparent 73%);
  animation: spinSlow 40s linear infinite;
}
@media (max-width: 1023px) { .hero::after { display: none; } }

/* ---------- Bolitas flotantes: halo de color ---------- */
.deco-ball {
  box-shadow: 0 12px 24px -8px rgba(13, 29, 48, 0.28),
    0 0 26px -4px var(--ball-glow, rgba(112, 214, 255, 0.45));
  opacity: 0.95;
}
.ball-xl { height: 4.6rem; width: 4.6rem; font-size: 1.4rem; }
.ball-sm { height: 2.5rem; width: 2.5rem; font-size: 0.8rem; }
.float3 { animation: float 7.5s ease-in-out infinite; }
.float4 { animation: float 9.5s ease-in-out infinite; }

/* ---------- Secciones con fondo alterno ---------- */
.band-light {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 55%, #ffffff 100%);
  color: var(--ink-700);
}

/* ---------- Logos de métodos de pago ---------- */
.pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 5rem;
}
/* El plato blanco ya no separa del fondo (la página es blanca): lleva borde. */
.paylogo {
  display: grid;
  place-items: center;
  height: 3.6rem;
  min-width: 5.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--surface-200);
  box-shadow: 0 1px 2px rgba(13, 29, 48, 0.04);
  overflow: hidden;
}
.paylogo img {
  max-height: 2.8rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}
/* insignia de respaldo (si el logo real no carga) */
.paylogo-fallback {
  display: grid;
  place-items: center;
  min-width: 3.4rem;
  height: 1.9rem;
  padding: 0 0.6rem;
  border-radius: 0.4rem;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
}
.paylogo-fallback svg { display: block; }
.pay-name { font-size: 0.72rem; font-weight: 600; color: var(--ink-400); }
/* colores de marca de terceros — NO se tocan (motivo legal, no estético) */
.lg-yape { background: #6c2bd9; color: #fff; }
.lg-plin { background: #0bb7c4; color: #04323a; }
.lg-bcp { background: #ff7a00; color: #0a2a66; }
.lg-ib { background: #00a94f; color: #fff; }
.lg-bbva { background: #072146; color: #5bc2f0; }
.lg-scotia { background: #e30613; color: #fff; }
.lg-pe { background: #111; color: #ffd400; font-size: 0.78rem; }
.lg-visa { background: #fff; color: #1a1f71; font-style: italic; font-size: 1.05rem; }
.lg-mc { background: #fff; }

/* ---------- Recarga de créditos / datos de compra ---------- */
.buy-card {
  border-radius: 1.5rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  box-shadow: 0 1px 2px rgba(13, 29, 48, 0.04), 0 8px 24px -8px rgba(13, 29, 48, 0.10);
  padding: 1.5rem;
}
.buy-h { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.05rem; color: var(--ink-900); margin-bottom: 1rem; }
.buy-label { display: block; margin: 1rem 0 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--ink-500); }

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  padding: 0.8rem 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}
.pack:hover { transform: translateY(-2px); border-color: var(--primary-300); }
.pack.active { border-color: var(--primary-500); box-shadow: 0 0 0 4px rgba(112, 214, 255, 0.35); background: #f0fbff; }
.pack-soles { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.25rem; color: var(--ink-900); }

.method {
  border-radius: 1rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  padding: 0.7rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-700);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.method.active { border-color: var(--primary-500); background: #f0fbff; color: #05447a; box-shadow: 0 0 0 4px rgba(112, 214, 255, 0.35); }

.buy-input {
  width: 100%;
  height: 3rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-200);
  background: var(--surface-0);
  padding: 0 1rem;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.buy-input::placeholder { color: var(--ink-300); }
.buy-input:focus { border-color: var(--primary-300); box-shadow: 0 0 0 4px rgba(112, 214, 255, 0.35); }

/* El resumen es un importe: va en la familia «dinero», no en azul. */
.buy-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  border: 1px dashed #ffe8ad;
  background: #fff9eb;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--ink-900);
}
.buy-summary .total { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.3rem; color: #956c04; }
.buy-note { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--ink-400); }
.transfer-box { border-radius: 1rem; background: var(--surface-100); border: 1px solid var(--surface-200); padding: 0.9rem 1rem; font-size: 0.85rem; color: var(--ink-700); }
.transfer-box strong { color: var(--ink-900); }

/* Variante inversa del botón principal: para cuando el botón va SOBRE una
   superficie azul (CTA final), donde el degradado azul no contrastaría. */
.btn-gold.btn-inverse {
  background: #ffffff;
  border-color: rgba(5, 68, 122, 0.12);
  box-shadow: 0 24px 60px -20px rgba(13, 29, 48, 0.22), 0 2px 6px rgba(13, 29, 48, 0.06);
}
.btn-gold.btn-inverse:hover { background: #f0fbff; }
