@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* ====================================================
   VARIABLES
==================================================== */
:root {
  --bg:          #070a12;
  --bg-2:        #0d1020;
  --bg-card:     rgba(255,255,255,.055);
  --bg-card-h:   rgba(255,255,255,.095);
  --border:      rgba(255,255,255,.10);
  --border-h:    rgba(255,255,255,.26);
  --text:        #eaecf2;
  --text-muted:  rgba(234,236,242,.52);
  --text-dim:    rgba(234,236,242,.28);
  --purple:      #b794ff;
  --purple-mid:  #8b5cf6;
  --purple-dark: #6d28d9;
  --pink:        #f04fd0;
  --coral:       #fb7185;
  --coral-dark:  #e11d48;
  --teal:        #2dd4bf;
  --teal-dark:   #0d9488;
  --green:       #34d399;
  --yellow:      #fbbf24;
  --lime:        #b8f238;
  --lime-dark:   #84cc16;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --ease:       cubic-bezier(.4,0,.2,1);
  --ease-out:   cubic-bezier(0,.55,.25,1);   /* entradas suaves */
  --ease-spring: cubic-bezier(.16,1,.3,1);   /* micro-interacciones */
}

/* ====================================================
   BASE
==================================================== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
select option { background: #10131f; color: #fff; }
body {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(91,33,182,.14), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(159,18,57,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  animation: pageIn 340ms var(--ease-out);
}

/* Tipografía: titulares compactos, números tabulares en montos */
h1, h2, h3, .section-title, .hero h1 { letter-spacing: -.02em; }
.section-sub, .hero p, .step-desc, .product-desc, .faq-a { letter-spacing: .01em; }
.product-price, .balance-amount, .renew-val, .nav-saldo, .account-price,
.history-amount, .stat-num, .duration-name, .duration-price {
  font-variant-numeric: tabular-nums;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Crossfade nativo al navegar entre páginas (Chrome/Edge) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: pageOut 160ms var(--ease) both; }
::view-transition-new(root) { animation: pageIn 240ms var(--ease-out) both; }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }

::selection { background: rgba(139,92,246,.4); color: #fff; }

/* Scrollbar sutil acorde al tema */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14); border-radius: 8px;
  border: 2px solid var(--bg); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.24); border: 2px solid var(--bg); background-clip: padding-box; }

/* Foco visible cómodo (teclado) sin anillos agresivos al hacer clic */
:focus-visible { outline: 2px solid rgba(139,92,246,.65); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* Respeto a usuarios con movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ====================================================
   SPLASH DE ENTRADA
==================================================== */
/* Mientras el splash aún no se inyecta, la página no se pinta
   (el script en <head> pone esta clase antes del primer frame) */
html.splash-boot body { visibility: hidden; }

#splash {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(620px 420px at 50% 42%, rgba(34,211,238,.07), transparent 62%),
    radial-gradient(500px 350px at 48% 55%, rgba(139,92,246,.06), transparent 60%),
    #05060b;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  transition: opacity .55s var(--ease-out), visibility .55s;
}
#splash.splash-out { opacity: 0; visibility: hidden; pointer-events: none; }
body.splash-lock { overflow: hidden; }

.splash-ring {
  width: 124px; height: 124px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-bottom: 6px;
  animation: splashPop .6s var(--ease-spring) both;
}
/* Arco de luz que gira alrededor del logo */
.splash-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, #22d3ee 72%, #8b5cf6 88%, transparent 95%);
  animation: ringSpin 1.3s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
/* Halo suave detrás */
.splash-ring::after {
  content: ""; position: absolute; inset: -22px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(34,211,238,.16), transparent 70%);
  animation: haloPulse 2s ease-in-out infinite;
}
.splash-logo {
  width: 98px; height: 98px; border-radius: 50%;
  background: #0b0f1a; border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--mono); font-weight: 700; font-size: 1.5rem; color: #fff;
  letter-spacing: .05em;
}
.splash-logo .dot {
  width: 9px; height: 9px; background: var(--coral); border-radius: 50%;
  box-shadow: 0 0 14px rgba(251,113,133,.9);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.splash-title {
  font-family: var(--mono); font-weight: 700; font-size: 1.45rem;
  letter-spacing: .32em; text-transform: uppercase; text-indent: .32em;
  color: #7ff3ff;
  text-shadow: 0 0 8px rgba(34,211,238,.9), 0 0 30px rgba(34,211,238,.45);
  animation: splashPop .6s var(--ease-spring) .12s both, neonPulse 2.4s ease-in-out .9s infinite;
}
.splash-tag {
  font-family: var(--mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .38em; text-indent: .38em; color: rgba(255,255,255,.55);
  animation: splashPop .6s var(--ease-spring) .28s both;
}
.splash-bar {
  width: 230px; height: 5px; border-radius: 6px; overflow: hidden;
  background: rgba(255,255,255,.1); margin-top: 16px;
  animation: splashPop .45s var(--ease-out) .4s both;
}
.splash-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee, #b8f238);
  animation: barFill 1.1s var(--ease-out) .45s forwards;
}
.splash-status {
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .32em; text-indent: .32em; color: rgba(255,255,255,.42);
  margin-top: 2px;
  animation: blinkStatus 1s steps(2, start) infinite;
}

@keyframes ringSpin   { to { transform: rotate(360deg); } }
@keyframes haloPulse  { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes splashPop  { from { opacity: 0; transform: scale(.72) translateY(8px); }
                        to   { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes neonPulse  { 0%,100% { opacity: 1; } 50% { opacity: .8; } }
@keyframes barFill    { to { width: 100%; } }
@keyframes blinkStatus{ 50% { opacity: .18; } }

/* ====================================================
   GLOW ORB BACKGROUND
==================================================== */
.glow-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.42;
  will-change: transform;
}
.orb-1 { width: 700px; height: 700px; background: #7c3aed; top: -250px; right: -180px; animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 500px; height: 500px; background: #db2777; top: 120px; left: -200px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 400px; height: 400px; background: #15803d; bottom: 100px; right: 8%; opacity: 0.32; animation: drift 26s ease-in-out infinite alternate; }
.orb-4 { width: 320px; height: 320px; background: #ea580c; bottom: 50px; right: 28%; opacity: 0.3; animation: drift 20s ease-in-out infinite alternate-reverse; }
.orb-5 { width: 380px; height: 380px; background: #2563eb; bottom: -80px; left: 8%; opacity: 0.32; animation: drift 24s ease-in-out infinite alternate; }
.orb-6 { width: 340px; height: 340px; background: #0e7490; top: 45%; right: -100px; opacity: 0.34; animation: drift 21s ease-in-out infinite alternate-reverse; }
.orb-7 { width: 300px; height: 300px; background: #ca8a04; top: 30%; left: 30%; opacity: 0.22; animation: drift 27s ease-in-out infinite alternate; }
.orb-8 { width: 280px; height: 280px; background: #be185d; bottom: 30%; left: -80px; opacity: 0.3; animation: drift 19s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.06); }
}

/* Everything sits above the orbs */
header, main, section, footer, .overlay { position: relative; z-index: 1; }

/* ====================================================
   HEADER
==================================================== */
.site-header {
  background: rgba(7,9,15,.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
}
.wrap-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px; height: 60px; gap: 16px;
}
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  color: #fff; display: flex; align-items: center; gap: 8px; letter-spacing: .03em;
}
.brand .dot {
  width: 8px; height: 8px; background: var(--coral);
  border-radius: 50%; box-shadow: 0 0 12px rgba(251,113,133,.9);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 10px rgba(251,113,133,.8); }
  50%      { box-shadow: 0 0 20px rgba(251,113,133,1), 0 0 40px rgba(251,113,133,.4); }
}
.nav-center {
  display: flex; gap: 4px; align-items: center; justify-content: center;
}
.nav-right {
  display: flex; gap: 10px; align-items: center; justify-content: flex-end;
}
/* Separación clara entre los enlaces del centro y el bloque de usuario */
.nav-right > :first-child { margin-left: 40px; }
.nav-center a, .nav-right a {
  color: rgba(255,255,255,.6); font-size: .875rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--r);
  transition: color .22s var(--ease-out), background .22s var(--ease-out);
}
.nav-center a:hover, .nav-right a:hover { color: #fff; background: rgba(255,255,255,.08); }
/* Legacy .nav-links used on some pages */
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.6); font-size: .875rem; font-weight: 500;
  padding: 7px 13px; border-radius: var(--r);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-nav-login {
  border: 1.5px solid rgba(255,255,255,.28) !important;
  color: rgba(255,255,255,.85) !important; font-weight: 600 !important;
}
.btn-nav-login:hover { border-color: #fff !important; color: #fff !important; }
/* "Mi panel": píldora cian brillante — se distingue de los enlaces planos del centro */
.btn-nav-user {
  display: inline-flex !important; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #22d3ee, #0d9488) !important;
  color: #04222b !important; font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 9px 20px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  box-shadow: 0 0 16px rgba(34,211,238,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .2s var(--ease-spring), box-shadow .25s var(--ease-out) !important;
}
.btn-nav-user::before { content: "🖥"; font-size: .9em; }
.btn-nav-user:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(34,211,238,.55), inset 0 1px 0 rgba(255,255,255,.35);
  background: linear-gradient(135deg, #22d3ee, #0d9488) !important;
}

/* Chips de usuario en el header */
.nav-saldo {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  color: var(--green); background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.3); border-radius: 999px;
  padding: 6px 12px; white-space: nowrap;
}
.nav-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 14px 4px 4px;
  cursor: default; user-select: none;
}
.nav-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
  color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-user-txt { display: flex; flex-direction: column; line-height: 1.15; }
.nav-user-name {
  font-size: .8rem; font-weight: 700; color: #fff;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-role { font-size: .62rem; color: var(--purple); font-weight: 600; }
@media (max-width: 720px) {
  .nav-user-txt { display: none; }
  .nav-user-chip { padding: 4px; }
  .nav-saldo { font-size: .72rem; padding: 5px 9px; }
}

/* ====================================================
   HERO
==================================================== */
.hero { padding: 80px 0 64px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(139,92,246,.45);
  background: rgba(139,92,246,.1);
  color: var(--purple); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900;
  line-height: 1.1; color: #fff; max-width: 680px; margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #a78bfa 0%, #e879f9 45%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-muted); max-width: 480px;
  font-size: 1.05rem; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-item { }
.stat-num {
  font-size: 1.8rem; font-weight: 900; color: #fff; line-height: 1;
  font-family: var(--mono);
}
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* ====================================================
   BUTTONS
==================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font); font-weight: 700; border: none;
  border-radius: var(--r); padding: 11px 20px;
  cursor: pointer; font-size: .9rem;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-spring),
              box-shadow .25s var(--ease-out), background .22s var(--ease-out),
              border-color .22s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn:disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.btn-purple {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
  color: #fff; box-shadow: 0 0 20px rgba(139,92,246,.35);
}
.btn-purple:hover { opacity: .9; box-shadow: 0 0 30px rgba(139,92,246,.55); transform: translateY(-1px); }
.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; box-shadow: 0 0 16px rgba(45,212,191,.3);
}
.btn-teal:hover { opacity: .9; box-shadow: 0 0 26px rgba(45,212,191,.45); transform: translateY(-1px); }
.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: #fff; box-shadow: 0 0 16px rgba(251,113,133,.3);
}
.btn-coral:hover { opacity: .9; transform: translateY(-1px); }
.btn-lime {
  background: linear-gradient(135deg, var(--lime), var(--lime-dark));
  color: #14210a; font-weight: 800;
  box-shadow: 0 0 22px rgba(184,242,56,.35);
}
.btn-lime:hover { opacity: .92; box-shadow: 0 0 34px rgba(184,242,56,.55); transform: translateY(-1px); }
.btn-pink {
  background: linear-gradient(135deg, #f04fd0, #c026d3);
  color: #fff; font-weight: 800;
  box-shadow: 0 0 24px rgba(240,79,208,.45);
}
.btn-pink:hover { opacity: .92; box-shadow: 0 0 38px rgba(240,79,208,.65); transform: translateY(-1px); }
.btn-cyan {
  background: linear-gradient(135deg, #22d3ee, #0284c7);
  color: #06202b; font-weight: 800;
  box-shadow: 0 0 24px rgba(34,211,238,.45);
}
.btn-cyan:hover { opacity: .92; box-shadow: 0 0 38px rgba(34,211,238,.65); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border-h);
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.btn-ghost {
  background: rgba(255,255,255,.06); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-primary { /* alias for purple */
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-dark));
  color: #fff; box-shadow: 0 0 20px rgba(139,92,246,.35);
}
.btn-primary:hover { opacity: .9; box-shadow: 0 0 30px rgba(139,92,246,.55); transform: translateY(-1px); }

/* ====================================================
   SECTION TITLES
==================================================== */
.section { padding: 60px 0; }
.section-pill {
  display: inline-block; border: 1px solid rgba(139,92,246,.45);
  background: rgba(139,92,246,.1); color: var(--purple);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900;
  color: #fff; margin-bottom: 10px; line-height: 1.15;
}
.section-sub { color: var(--text-muted); font-size: .98rem; max-width: 560px; margin-bottom: 40px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto 40px; }

/* ====================================================
   CATALOG GRID / PRODUCT CARDS
==================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out),
              transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
  cursor: default;
}
.product-card:hover {
  border-color: rgba(139,92,246,.35);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(139,92,246,.12);
}
.product-icon-wrap {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: var(--icon-bg, rgba(255,255,255,.1));
  flex-shrink: 0;
}
.product-name { font-weight: 800; font-size: 1.05rem; color: #fff; }
.product-desc { color: var(--text-muted); font-size: .82rem; line-height: 1.5; flex: 1; }
.product-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.product-price { font-family: var(--mono); font-weight: 700; color: #fff; font-size: 1.15rem; }
.product-duration { font-size: .72rem; color: var(--text-muted); margin-left: 4px; }
.stock-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; border: 1px solid transparent;
}
.stock-badge.in { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.3); color: var(--green); }
.stock-badge.out { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.25); color: var(--coral); }
.stock-badge .dot-s {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  display: inline-block;
}

/* ====================================================
   SCROLL REVEAL (CSS puro — Chrome/Edge; ignorado en otros)
==================================================== */
@supports (animation-timeline: view()) {
  .product-card, .step-card, .faq-item, .support-card, .panel-promo, .history-row {
    animation: scrollReveal linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  @keyframes scrollReveal {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ====================================================
   COMBOS
==================================================== */
.combo-heading {
  font-size: 1.05rem; font-weight: 800; color: #fff;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.combo-card {
  border-color: rgba(139,92,246,.3);
  background: linear-gradient(160deg, rgba(139,92,246,.08), var(--bg-card) 55%);
}
.combo-card:hover { border-color: rgba(139,92,246,.55); }
.combo-comps { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.combo-comp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; padding: 5px 10px;
  border-radius: 8px; width: fit-content;
}

/* ====================================================
   HOW IT WORKS
==================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 16px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 20px; text-align: center;
  transition: border-color .3s var(--ease-out), transform .3s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.step-card:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.step-icon { font-size: 1.8rem; margin-bottom: 12px; }
.step-num { font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: var(--purple); text-transform: uppercase; margin-bottom: 6px; }
.step-title { font-weight: 800; font-size: .96rem; color: #fff; margin-bottom: 6px; }
.step-desc { font-size: .82rem; color: var(--text-muted); }

/* ====================================================
   MI PANEL PROMO (homepage)
==================================================== */
.panel-promo {
  background: linear-gradient(135deg, rgba(109,40,217,.15), rgba(13,14,32,.8));
  border: 1px solid rgba(139,92,246,.25);
  border-radius: var(--r-xl); padding: 48px 40px;
  text-align: center; max-width: 640px; margin: 0 auto;
  backdrop-filter: blur(10px);
}
.panel-promo .lock-icon { font-size: 2.4rem; margin-bottom: 16px; opacity: .7; }
.panel-promo h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.panel-promo p { color: var(--text-muted); font-size: .95rem; margin-bottom: 26px; max-width: 420px; margin-left: auto; margin-right: auto; }
.panel-promo .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ====================================================
   FAQ
==================================================== */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 3px; }
.faq-item { border-radius: var(--r); overflow: hidden; }
.faq-q {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  color: rgba(255,255,255,.88); padding: 16px 20px; text-align: left;
  font-family: var(--font); font-size: .93rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background .15s var(--ease), border-color .15s;
  border-radius: var(--r);
}
.faq-q:hover { background: rgba(255,255,255,.08); border-color: var(--border-h); }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; font-weight: 400;
  flex-shrink: 0; transition: transform .25s var(--ease), background .2s;
}
.faq-item.open .faq-q { border-radius: var(--r) var(--r) 0 0; border-color: rgba(139,92,246,.4); background: rgba(109,40,217,.12); }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--purple-mid); }
.faq-a {
  background: rgba(255,255,255,.03); border: 1px solid var(--border); border-top: none;
  color: var(--text-muted); font-size: .9rem; line-height: 1.7;
  max-height: 0; overflow: hidden; border-radius: 0 0 var(--r) var(--r);
  transition: max-height .3s var(--ease), padding .3s var(--ease);
  padding: 0 20px;
}
.faq-a a { color: var(--teal); font-weight: 600; }
.faq-item.open .faq-a { max-height: 300px; padding: 16px 20px 20px; }

/* ====================================================
   MODAL / CHECKOUT
==================================================== */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; z-index: 300;
  backdrop-filter: blur(6px);
}
.overlay.open { display: flex; animation: overlayIn .25s var(--ease-out); }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #0f1322; border: 1px solid var(--border-h);
  border-radius: var(--r-xl); max-width: 500px; width: 100%;
  padding: 32px; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
  animation: slideUp .32s var(--ease-spring);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px; font-size: .95rem;
  cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.modal h2 { font-family: var(--mono); font-size: 1.15rem; margin-bottom: 4px; color: #fff; }
.modal .modal-sub { color: var(--text-muted); font-size: .85rem; margin-bottom: 22px; }

/* ====================================================
   FORMS
==================================================== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; color: rgba(255,255,255,.55); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r); color: #fff; font-family: var(--font); font-size: .92rem;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  outline: none;
}
.field input::placeholder { color: rgba(255,255,255,.28); }
.field input:hover:not(:focus), .field select:hover:not(:focus), .field textarea:hover:not(:focus) {
  border-color: rgba(255,255,255,.22);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--purple-mid);
  background: rgba(139,92,246,.06);
  box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
.field input[type="file"] { padding: 10px; cursor: pointer; }

.pay-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.pay-toggle button {
  flex: 1; padding: 10px; border-radius: var(--r);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.04); font-weight: 700; cursor: pointer;
  font-size: .86rem; color: var(--text-muted); font-family: var(--font);
  transition: all .15s var(--ease);
}
.pay-toggle button.active.yape { border-color: var(--purple); color: var(--purple); background: rgba(167,139,250,.1); }
.pay-toggle button.active.plin { border-color: var(--teal); color: var(--teal); background: rgba(45,212,191,.08); }
.pay-toggle button.active.saldo { border-color: var(--coral); color: var(--coral); background: rgba(251,113,133,.08); }

.saldo-box {
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 14px; margin-bottom: 14px;
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .88rem;
}
.saldo-box .monto { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: #fff; }
.saldo-box.ok .monto { color: var(--green); }
.saldo-box.bajo .monto { color: var(--coral); }

.pay-box {
  border: 1.5px dashed rgba(255,255,255,.15); border-radius: var(--r);
  padding: 14px; margin-bottom: 14px;
  background: rgba(255,255,255,.03); font-size: .88rem; color: var(--text-muted);
  line-height: 1.65;
}
.pay-box .num { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: #fff; }
.pay-box strong { color: var(--text); }

.error-box {
  background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.3);
  color: #fda4af; padding: 10px 14px; border-radius: var(--r);
  font-size: .85rem; margin-bottom: 14px;
}
.success-box {
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3);
  color: var(--green); padding: 10px 14px; border-radius: var(--r);
  font-size: .85rem; margin-bottom: 14px;
}
.hint { font-size: .77rem; color: var(--text-dim); margin-top: -8px; margin-bottom: 14px; }

/* ====================================================
   PURCHASE SUCCESS (simplified, no code)
==================================================== */
.purchase-success {
  text-align: center; padding: 8px 0 16px;
}
.purchase-success .ps-icon { font-size: 3rem; margin-bottom: 12px; }
.purchase-success h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.purchase-success p { color: var(--text-muted); font-size: .9rem; margin-bottom: 22px; }
.purchase-creds {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px; margin-bottom: 18px; text-align: left;
}
.cred-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .86rem;
}
.cred-row:last-child { border-bottom: none; }
.cred-label { color: var(--text-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cred-val { font-family: var(--mono); color: #fff; font-size: .88rem; }
.copy-btn {
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 9px; font-size: .7rem; cursor: pointer;
  color: var(--text-muted); transition: background .12s, color .12s; font-family: var(--font);
}
.copy-btn:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ====================================================
   RECEIPTS (consulta.html / legacy)
==================================================== */
.stub {
  background: rgba(255,255,255,.05); border-radius: var(--r-lg);
  padding: 26px 22px; border-top: 3px dashed rgba(255,255,255,.2);
  border: 1px solid var(--border); border-top: 3px dashed rgba(167,139,250,.5);
}
.stub-top { text-align: center; font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }
.stub-code { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: #fff; text-align: center; letter-spacing: .06em; margin: 4px 0; }
.stub-status { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.stub-status.pendiente { color: var(--yellow); }
.stub-status.confirmado { color: var(--green); }
.stub-status.rechazado { color: var(--coral); }
.stub hr { border: none; border-top: 1px dashed rgba(255,255,255,.1); margin: 16px 0; }
.stub-row { display: flex; justify-content: space-between; font-size: .88rem; padding: 4px 0; color: var(--text-muted); }
.stub-row span:last-child { font-weight: 600; color: var(--text); }
.creds-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .82rem; }
.creds-table th, .creds-table td { border: 1px solid rgba(255,255,255,.08); padding: 8px 9px; text-align: left; }
.creds-table th { background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); font-family: var(--mono); font-weight: 600; font-size: .7rem; text-transform: uppercase; }
.creds-table td { font-family: var(--mono); color: var(--text); }

/* ====================================================
   AUTH PAGE (login/register)
==================================================== */
.auth-page {
  min-height: calc(100vh - 60px); display: flex;
  align-items: flex-start; justify-content: center;
  padding: 56px 16px; background: transparent;
}
.auth-card {
  background: rgba(15,19,34,.92); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl); padding: 38px 34px; width: 100%; max-width: 430px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(139,92,246,.15);
  backdrop-filter: blur(20px); animation: slideUp .25s var(--ease);
}
.auth-card .brand-block { text-align: center; margin-bottom: 28px; }
.auth-card .brand-logo {
  font-family: var(--mono); font-weight: 700; font-size: 1.1rem;
  color: #fff; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.auth-card .brand-logo .dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 10px rgba(251,113,133,.8); }
.auth-card .brand-block p { color: var(--text-muted); font-size: .86rem; }

.auth-tabs {
  display: flex; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; background: transparent; border: none; padding: 10px;
  font-family: var(--font); font-size: .88rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.auth-tab.active { background: var(--purple-dark); color: #fff; }
.auth-form { display: none; animation: fadeIn .2s var(--ease); }
.auth-form.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   DASHBOARD / PERFIL
==================================================== */
.dash-header {
  background: linear-gradient(135deg, rgba(109,40,217,.15) 0%, rgba(7,9,15,0) 100%);
  border-bottom: 1px solid var(--border); padding: 36px 0 28px;
}
.dash-header .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dash-greeting h1 { font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.dash-greeting p { color: var(--text-muted); font-size: .88rem; }
.balance-widget {
  background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.3);
  border-radius: var(--r-lg); padding: 18px 26px; min-width: 200px; text-align: center;
  box-shadow: 0 0 30px rgba(139,92,246,.15);
}
.balance-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(167,139,250,.7); margin-bottom: 4px;
}
.balance-amount { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.balance-sub { margin-top: 6px; }
.balance-sub a { font-size: .76rem; color: var(--teal); font-weight: 600; transition: opacity .15s; }
.balance-sub a:hover { opacity: .75; }

.dash-tabs-bar {
  background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border);
}
.dash-tabs-inner {
  display: flex; overflow-x: auto; padding: 0;
}
.dash-tab {
  background: none; border: none; padding: 15px 20px;
  font-family: var(--font); font-size: .88rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.dash-tab.active { color: var(--purple); border-bottom-color: var(--purple-mid); }
.dash-tab:hover:not(.active) { color: var(--text); }

/* Panel animation system — uses only opacity + transform (GPU-composited) */
.dash-panels-wrap { position: relative; }
.dash-panel { display: none; padding: 28px 0; }
.dash-panel.active { display: block; }
.dash-panel.panel-enter { animation: panelEnter 260ms cubic-bezier(0,.6,.3,1) both; }
.dash-panel.panel-exit {
  display: block !important; position: absolute;
  top: 0; left: 0; right: 0; pointer-events: none;
  animation: panelExit 180ms cubic-bezier(.4,0,1,1) both;
}
@keyframes panelEnter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes panelExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* Stagger reveal — add class="dash-item" + style="--i:N" to each card/row */
.dash-item {
  animation: itemReveal 280ms cubic-bezier(0,.6,.3,1) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes itemReveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Skeleton loaders */
.skel-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  animation: skelFade 300ms cubic-bezier(0,.6,.3,1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.skel-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  animation: skelFade 300ms cubic-bezier(0,.6,.3,1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes skelFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.skel-avatar { width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; }
.skel-lines { flex: 1; }
.skel-line, .skel-avatar {
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

/* Layout: cuentas agrupadas + panel lateral */
.cuentas-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 24px; align-items: start;
}
@media (max-width: 900px) { .cuentas-layout { grid-template-columns: 1fr; } }

.platform-group { margin-bottom: 26px; }
.platform-group:last-child { margin-bottom: 0; }
.platform-group-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.plat-badge {
  display: inline-block; font-size: .78rem; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; letter-spacing: .02em;
  white-space: nowrap;
}
.platform-group-count { font-size: .76rem; color: var(--text-muted); }

.cuentas-side { position: sticky; top: 76px; }
.side-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 14px;
}
.side-title {
  font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
  padding: 0 4px;
}
.side-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font); padding: 10px 8px; border-radius: var(--r);
  transition: background .18s var(--ease-out);
}
.side-item:hover { background: rgba(255,255,255,.06); }
.side-item-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.side-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.side-item-name {
  font-size: .84rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-item-date { font-size: .72rem; color: var(--text-muted); }

/* Pestaña Por vencer */
.vencer-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 10px;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
  flex-wrap: wrap;
}
.vencer-row:hover { border-color: var(--border-h); background: var(--bg-card-h); }
.vencer-info { flex: 1; min-width: 140px; }
.vencer-name { font-weight: 800; color: #fff; font-size: .98rem; }
.vencer-date { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* Platform account cards */
.account-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.account-card:hover { border-color: var(--border-h); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.account-card.card-expired { opacity: .75; border-color: rgba(255,107,107,.2); }
.account-card.card-expired:hover { border-color: rgba(255,107,107,.4); opacity: 1; }
.account-card-header {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  cursor: pointer; user-select: none;
}
.account-platform-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: var(--icon-bg, rgba(255,255,255,.1));
}
.account-info { flex: 1; min-width: 0; }
.account-platform { font-weight: 800; font-size: 1.05rem; color: #fff; }
.account-dates { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.account-expira {
  display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap;
}
.expira-label { font-size: .8rem; font-weight: 600; color: #fff; }
.expira-chip {
  font-size: .72rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: rgba(16,185,129,.18); color: var(--green);
  border: 1px solid rgba(16,185,129,.3); letter-spacing: .02em;
}
.expira-chip.warn { background: rgba(234,179,8,.15); color: var(--yellow); border-color: rgba(234,179,8,.3); }
.expira-chip.expired { background: rgba(255,107,107,.15); color: var(--coral); border-color: rgba(255,107,107,.3); }
.account-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.account-price { font-family: var(--mono); font-weight: 700; color: #fff; font-size: .95rem; }
.expand-btn {
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--text-muted);
  transition: transform .22s var(--ease), background .15s;
  flex-shrink: 0;
}
.account-card.open .expand-btn { transform: rotate(180deg); background: rgba(139,92,246,.2); color: var(--purple); }

.account-creds {
  border-top: 1px solid var(--border); padding: 18px 20px;
  display: none;
  animation: fadeIn .2s var(--ease);
}
.account-card.open .account-creds { display: block; }
.cred-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
@media (max-width: 480px) { .cred-grid { grid-template-columns: 1fr; } }
.cred-item {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px;
}
.cred-item-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 4px; }
.cred-item-val {
  font-family: var(--mono); font-size: .88rem; color: #fff;
  word-break: break-all; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Recharge / historial rows */
.history-row {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
  transition: border-color .15s;
}
.history-row:hover { border-color: var(--border-h); }
.history-title { font-weight: 700; color: #fff; font-size: .95rem; }
.history-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.history-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.history-amount { font-family: var(--mono); font-weight: 700; color: #fff; }

.status-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 20px;
}
.status-badge.confirmado { background: rgba(52,211,153,.12); color: var(--green); border: 1px solid rgba(52,211,153,.25); }
.status-badge.pendiente  { background: rgba(251,191,36,.1);  color: var(--yellow); border: 1px solid rgba(251,191,36,.25); }
.status-badge.rechazado  { background: rgba(251,113,133,.1); color: var(--coral);  border: 1px solid rgba(251,113,133,.25); }

.empty-state { text-align: center; padding: 56px 0; }
.empty-state .ei { font-size: 2.8rem; margin-bottom: 14px; opacity: .5; }
.empty-state p { color: var(--text-muted); font-size: .9rem; margin-bottom: 18px; }

/* ====================================================
   LOOKUP PAGE (consulta.html)
==================================================== */
.lookup-card { max-width: 480px; margin: 0 auto; }
.lookup-redirect {
  text-align: center; padding: 48px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); max-width: 440px; margin: 0 auto;
}

/* ====================================================
   FOOTER
==================================================== */
.site-footer {
  background: rgba(7,9,15,.95); border-top: 1px solid var(--border);
  padding: 36px 0 24px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: flex-start; gap: 20px; margin-bottom: 24px;
}
.footer-brand { font-family: var(--mono); font-weight: 700; color: rgba(255,255,255,.65); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.footer-dot { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }
.footer-tagline { font-size: .78rem; color: var(--text-dim); margin-top: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.footer-links a { color: var(--text-muted); font-size: .82rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.06); padding-top: 18px; text-align: center; font-size: .76rem; color: var(--text-dim); }

/* ====================================================
   RECARGAS PAGE
==================================================== */
.page-section { padding: 48px 0; }
.page-card {
  background: rgba(15,19,34,.8); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px; backdrop-filter: blur(16px);
  max-width: 540px; margin: 0 auto;
}
.page-card-title { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.page-card-sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 26px; }
/* ====================================================
   MODAL RENOVAR (estilo tarjeta oscura + acentos lima)
==================================================== */
.renew-modal { max-width: 440px; background: #0b1018; }
.renew-modal h2 { font-size: 1.25rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.renew-modal .modal-sub { color: var(--text-muted); font-size: .84rem; margin-bottom: 18px; }

.renew-box {
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px 16px;
  margin-bottom: 18px;
}
.renew-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 0;
  font-size: .88rem; color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.renew-row:last-child { border-bottom: none; }
.renew-val { font-family: var(--mono); font-weight: 700; color: #fff; white-space: nowrap; }
.renew-val.lime { color: var(--teal); }

.renew-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}

.duration-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 18px;
}
.duration-opt {
  background: rgba(255,255,255,.045);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 10px; text-align: center; cursor: pointer;
  font-family: var(--font); color: var(--text);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out),
              box-shadow .2s var(--ease-out), transform .2s var(--ease-spring);
}
.duration-opt:hover { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.duration-opt.selected {
  border-color: var(--purple-mid);
  background: rgba(139,92,246,.1);
  box-shadow: 0 0 16px rgba(139,92,246,.28);
}
.duration-name { font-family: var(--mono); font-weight: 800; font-size: .98rem; color: #fff; }
.duration-opt.selected .duration-name { color: var(--purple); }
.duration-price { font-family: var(--mono); font-size: .78rem; color: var(--text-muted); }

.renew-summary { margin-bottom: 0; }

/* ====================================================
   FLUJO DE COMPRA (pasos + progreso)
==================================================== */
.buy-progress {
  display: flex; gap: 8px; margin: 14px 0 22px;
}
.buy-progress .seg {
  flex: 1; height: 5px; border-radius: 6px;
  background: rgba(255,255,255,.12);
  transition: background .3s var(--ease-out);
}
.buy-progress .seg.active {
  background: linear-gradient(90deg, var(--purple-mid), var(--teal));
}
.buy-progress .seg.done { background: var(--purple-mid); }

/* Selector de cantidad en el resumen */
.qty-stepper {
  display: inline-flex; align-items: center; gap: 10px;
}
.qty-stepper button {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid var(--border);
  color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  transition: background .15s, border-color .15s, transform .15s var(--ease-spring);
}
.qty-stepper button:hover { background: rgba(139,92,246,.25); border-color: rgba(139,92,246,.5); }
.qty-stepper button:active { transform: scale(.9); }
.qty-stepper button:disabled { opacity: .3; cursor: not-allowed; }
.qty-stepper .qty-val {
  font-family: var(--mono); font-weight: 800; color: #fff;
  min-width: 24px; text-align: center; font-size: .95rem;
}

.buy-summary .renew-row span:first-child { color: var(--text); font-weight: 600; }
.buy-summary .renew-row.total span:first-child { font-weight: 800; color: #fff; font-size: .95rem; }

/* ====================================================
   SOPORTE / WHATSAPP
==================================================== */
.support-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(37,211,102,.1) 0%, rgba(7,9,15,0) 100%);
  border: 1px solid rgba(37,211,102,.25); border-radius: var(--r-xl);
  padding: 28px 32px;
}
.support-icon { font-size: 2.4rem; flex-shrink: 0; }
.support-body { flex: 1; min-width: 200px; }
.support-title { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.support-sub { color: var(--text-muted); font-size: .88rem; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: var(--r); text-decoration: none;
  font-size: .9rem; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.5); }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 900;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; text-decoration: none;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 8px 30px rgba(37,211,102,.65); }

/* ====================================================
   RECARGAS — flujo de 2 pasos
==================================================== */
.amount-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.amount-opt {
  background: rgba(255,255,255,.045);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 13px 8px; text-align: center; cursor: pointer;
  font-family: var(--mono); font-weight: 800; font-size: .95rem; color: #fff;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out),
              box-shadow .2s var(--ease-out), transform .2s var(--ease-spring);
}
.amount-opt:hover { border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.amount-opt.selected {
  border-color: var(--purple-mid);
  background: rgba(139,92,246,.12);
  box-shadow: 0 0 14px rgba(139,92,246,.3);
  color: var(--purple);
}

/* Caja estilo terminal con los datos de pago */
.pay-terminal {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px; margin-bottom: 18px;
  font-family: var(--mono); font-size: .84rem; line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-line;
}
.pay-terminal .pt-green  { color: var(--green); font-weight: 700; }
.pay-terminal .pt-white  { color: #fff; font-weight: 700; }
.pay-terminal .pt-warn   { color: var(--coral); font-weight: 700; }
.pay-terminal .pt-amount { color: var(--yellow); font-weight: 800; }

/* Número para copiar y pegar debajo del método */
.pay-number-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(45,212,191,.07);
  border: 1px solid rgba(45,212,191,.3);
  border-radius: var(--r);
  padding: 12px 16px; margin: 12px 0 18px;
}
.pay-number-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em;
  color: var(--teal); flex-shrink: 0;
}
.pay-number-value {
  font-family: var(--mono); font-weight: 800; font-size: 1.05rem;
  color: #fff; flex: 1; letter-spacing: .04em;
}

.recargas-back-btn {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .9rem; text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.recargas-back-btn:hover { background: rgba(255,107,107,.18); color: var(--coral); border-color: rgba(255,107,107,.4); }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ====================================================
   SPINNER / UTILS
==================================================== */
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); border-top-color: #fff;
  display: inline-block; animation: spin .6s linear infinite;
  vertical-align: -3px; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 640px) {
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 2rem; }
  .hero-ctas { flex-direction: column; }
  .modal, .auth-card { padding: 24px 18px; }
  .dash-header .wrap { flex-direction: column; }
  .balance-widget { min-width: unset; width: 100%; }
  .dash-tabs-inner { padding: 0; }
  .panel-promo { padding: 32px 20px; }
  .footer-inner { flex-direction: column; }
  .account-card-header { flex-wrap: wrap; }
  .cred-grid { grid-template-columns: 1fr; }
}
