/* ─────────────────────────────────────────────────────────────────────────────
   public/css/style.css
   KiraStore — negro + rojo + blanco, glassmorphism + glows + animaciones micro
   Phase 1: Design System & Layout Foundation
───────────────────────────────────────────────────────────────────────────── */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@700;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────────────────── */
:root {
  /* Paleta principal — negro / rojo (KiraStore) / blanco */
  --bg-deep:        #050505;
  --bg-mid:         #0a0a0a;
  --bg-surface:     #101010;
  --bg-card:        rgba(10, 10, 10, 0.82);
  --bg-card-hover:  rgba(16, 16, 16, 0.92);
  --accent-cyan:    #dd0d17;
  --accent-cyan-dim:#a80d16;
  --accent-blue:    #8c0000;
  --accent-purple:  #3d0407;
  --accent-gold:    #ff3b3b;
  --accent-gold-2:  #ffffff;
  --text-primary:   #ffffff;
  --text-secondary: #c9c9c9;
  --text-muted:     #8a8a8a;
  --border-glass:   rgba(221, 13, 23, 0.18);
  --border-glass-h: rgba(221, 13, 23, 0.55);
  --border-subtle:  rgba(255, 255, 255, 0.08);
  --success:        #00e676;
  --error:          #ff4757;
  --warning:        #ffa502;

  /* Rarity colors */
  --rarity-common:    #b0b0b0;
  --rarity-uncommon:  #3bc45a;
  --rarity-rare:      #4facfe;
  --rarity-epic:      #a855f7;
  --rarity-legendary: #ffa500;
  --rarity-mythic:    #ffd700;
  --rarity-marvel:    #e52929;
  --rarity-series:    #2aece2;
  --rarity-icon:      #00d5c8;
  --rarity-lava:      #ff6a00;
  --rarity-bundle:    #ffd700;

  /* Radii & Shadows */
  --radius-card: 20px;
  --radius-btn:  12px;
  --radius-input:12px;
  --radius-nav:  0;
  --glow-cyan:   0 0 24px rgba(221, 13, 23, 0.3), 0 0 60px rgba(221, 13, 23, 0.10);
  --glow-gold:   0 0 20px rgba(255, 59, 59, 0.35), 0 0 60px rgba(255, 255, 255, 0.12);
  --glow-purple: 0 0 20px rgba(61, 4, 7, 0.35), 0 0 60px rgba(61, 4, 7, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;

  /* Timing */
  --transition:       0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:  0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring:0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Navbar */
  --nav-height: 70px;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--text-primary); }

img { display: block; max-width: 100%; }

/* ── Canvas de partículas (fondo) ─────────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Grid de fondo ────────────────────────────────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(221, 13, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 13, 23, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ── Orbes de luz en el fondo ─────────────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(61, 4, 7, 0.15) 0%, transparent 70%);
  top: -150px; left: -150px;
  animation-delay: 0s;
}
.bg-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(221, 13, 23, 0.10) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -5s;
}
.bg-orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(140, 0, 0, 0.12) 0%, transparent 70%);
  top: 45%; left: 55%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(25px, -25px) scale(1.08); }
}

/* ── Layout principal ─────────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Centered layout (login, register, etc.) ──────────────────────────────── */
.main-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 80px);
  padding: 40px 24px;
  gap: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

/* Nav Links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  list-style: none;
}

.navbar__links li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.navbar__links li a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.navbar__links li a.active {
  color: var(--accent-cyan);
  background: rgba(221, 13, 23, 0.08);
}

.navbar__links li a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  border-radius: 2px;
}

/* Nav Right: coins, cart, lang, user */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Coins badge */
.nav-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 59, 59,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-gold);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-coins:hover {
  border-color: rgba(255, 59, 59, 0.5);
  box-shadow: var(--glow-gold);
}
.nav-coins__icon { font-size: 1rem; }
.nav-coins__amount { letter-spacing: 0.04em; }
.nav-coins__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

/* Cart button */
.nav-cart {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-cart:hover {
  background: rgba(221, 13, 23, 0.1);
  border-color: var(--border-glass);
  color: var(--accent-cyan);
}
.nav-cart__icon { font-size: 1.1rem; }
.nav-cart__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent-cyan);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.nav-cart__badge.visible {
  display: flex;
  animation: popIn 0.3s var(--transition-spring) both;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Dropdown genérico (idioma, moneda, usuario) ──────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger[aria-expanded="true"] {
  background: rgba(221, 13, 23, 0.15);
  color: var(--accent-cyan);
}
.nav-dropdown__trigger .caret { font-size: 0.6rem; opacity: 0.7; }
.nav-dropdown__flag {
  width: 1.2em;
  height: 1.2em;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.nav-user__dropdown,
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  display: none;
  animation: dropdownIn 0.2s ease both;
  z-index: 200;
}
.nav-user__dropdown.open,
.nav-dropdown__menu.open {
  display: block;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-user__dropdown a,
.nav-user__dropdown button,
.nav-dropdown__menu a,
.nav-dropdown__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.nav-user__dropdown a:hover,
.nav-user__dropdown button:hover,
.nav-dropdown__menu a:hover,
.nav-dropdown__menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.nav-dropdown__item.active {
  color: var(--accent-cyan);
  background: rgba(221, 13, 23, 0.08);
}
.nav-user__dropdown .logout-btn {
  color: var(--error);
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
  padding-top: 12px;
}
.nav-user__dropdown .logout-btn:hover {
  background: rgba(255, 71, 87, 0.1);
  color: var(--error);
}

/* User avatar / dropdown */
.nav-user {
  position: relative;
}

.nav-user__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border: 2px solid rgba(221, 13, 23,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  box-shadow: var(--glow-cyan);
  padding: 0;
  overflow: hidden;
}
.nav-user__btn:hover {
  transform: scale(1.08);
  border-color: var(--accent-cyan);
}
.nav-user__avatar-letter {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-transform: uppercase;
}
.nav-user__avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Login link button */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  /* Mismo lenguaje visual que el CTA "Empezar Ahora" de la tarjeta */
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 60%, var(--accent-purple) 100%);
  color: #fff !important;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-login-btn::before {
  content: '↪';
  font-size: 1rem;
  line-height: 1;
}
.nav-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(221, 13, 23, .35), 0 0 42px rgba(221, 13, 23, .12);
  color: #fff !important;
}

/* Hamburger mobile */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 48px 2rem 24px;
  margin-top: auto;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 40px;
}

.footer__brand .navbar__logo {
  margin-bottom: 14px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer__social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.footer__social-link:hover {
  background: rgba(221, 13, 23, 0.1);
  border-color: var(--border-glass);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.footer__col-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.87rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer__legal-text {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.7;
}
.footer__legal-text a {
  color: var(--text-muted);
  text-decoration: underline;
  opacity: 1;
  transition: color var(--transition);
}
.footer__legal-text a:hover { color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════════════════════════════════ */
.site-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-2) 40%, #fff 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  filter: drop-shadow(0 0 24px rgba(255, 59, 59, 0.2));
}

.site-subtitle {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(221, 13, 23, 0.08);
  border: 1px solid rgba(221, 13, 23, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLASS CARD
══════════════════════════════════════════════════════════════════════════════ */
.card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  box-shadow: var(--shadow-card), var(--glow-cyan);
  animation: fadeUp 0.7s ease both;
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221, 13, 23, 0.5), transparent);
}

.card:focus-within {
  border-color: var(--border-glass-h);
  box-shadow: var(--shadow-card), 0 0 40px rgba(221, 13, 23,0.3), 0 0 80px rgba(221, 13, 23,0.10);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-family: 'Rajdhani', sans-serif;
}

.input-wrapper { position: relative; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-input);
  padding: 13px 14px 13px 44px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(221, 13, 23, 0.04);
  box-shadow: 0 0 0 3px rgba(221, 13, 23, 0.12);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--accent-cyan);
}

/* Also support legacy #nickname-input */
#nickname-input { width: 100%; }
#nickname-input { @extend .form-input; }

.input-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  transition: color var(--transition);
}
.input-counter.near-limit { color: var(--warning); }

.field-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 1em;
  display: none;
}
.field-error.visible { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 60%, var(--accent-purple) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(221, 13, 23, 0.3), 0 0 40px rgba(221, 13, 23, 0.08);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.5s ease-in-out infinite;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(221, 13, 23,0.45), 0 0 60px rgba(221, 13, 23,0.15);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass);
  color: var(--text-primary);
}

.btn-ghost {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
}
.btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-danger {
  background: rgba(255, 71, 87, 0.12);
  border: 1.5px solid rgba(255, 71, 87, 0.35);
  color: var(--error);
}
.btn-danger:hover {
  background: rgba(255, 71, 87, 0.2);
  box-shadow: 0 0 20px rgba(255, 71, 87, 0.2);
}

@keyframes shimmer {
  0%   { left: -75%; }
  100% { left: 150%; }
}

/* Spinner */
.btn-text    { transition: opacity 0.2s; }
.btn-spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
.btn.loading .btn-text    { display: none; }
.btn.loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Legacy selector */
#submit-btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 60%, var(--accent-purple) 100%);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 20px rgba(221, 13, 23, 0.35), 0 0 40px rgba(221, 13, 23, 0.1);
}
#submit-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s ease-in-out infinite;
}
#submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(221, 13, 23, 0.5), 0 0 60px rgba(221, 13, 23, 0.2);
}
#submit-btn:active:not(:disabled) { transform: translateY(0); }
#submit-btn:disabled { opacity: 0.65; cursor: not-allowed; box-shadow: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════════════════════════ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHIPS
══════════════════════════════════════════════════════════════════════════════ */
.info-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.chip svg { width: 12px; height: 12px; stroke: var(--accent-cyan); }

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(24px);
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  min-width: 280px;
  max-width: 360px;
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
}
.toast.exit { animation: toastOut 0.3s ease both; }
.toast::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
  background: var(--toast-color, var(--accent-cyan));
  animation: toastTimer 4s linear forwards;
}
@keyframes toastTimer {
  from { width: 100%; }
  to   { width: 0%; }
}

.toast.success { --toast-color: var(--success); border-color: rgba(0, 230, 118, 0.25); }
.toast.error   { --toast-color: var(--error);   border-color: rgba(255, 71, 87, 0.25); }
.toast.info    { --toast-color: var(--accent-cyan); }
.toast.warning { --toast-color: var(--warning); border-color: rgba(255, 165, 2, 0.25); }

.toast-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.toast-msg { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }
.toast-close {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1rem; line-height: 1;
  padding: 0; flex-shrink: 0;
  transition: color var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUCCESS STATE
══════════════════════════════════════════════════════════════════════════════ */
.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 10px 0;
}
.success-state.visible {
  display: flex;
  animation: fadeUp 0.5s ease both;
}
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, transparent 70%);
  border: 2px solid rgba(0, 230, 118, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.2);
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}
.success-nick { font-size: 0.9rem; color: var(--text-muted); }
.success-nick strong { color: var(--accent-gold); }

/* ═══════════════════════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease both;
  display: none;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s var(--transition-spring) both;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), var(--glow-cyan);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}
.modal__close:hover { background: rgba(255,71,87,0.15); color: var(--error); }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH MODAL (popup de login/registro del navbar)
══════════════════════════════════════════════════════════════════════════════ */
.auth-modal {
  width: min(100%, 450px);
  max-width: 450px;
  padding: 30px 32px 28px;
  background: #0b0b0e;
  border-color: rgba(221, 13, 23, .22);
  box-shadow: 0 28px 90px rgba(0,0,0,.78), 0 0 38px rgba(221, 13, 23, .12);
}
.auth-modal__brand {
  margin: 0;
  color: var(--text-primary);
  text-align: center;
  font: 800 1.65rem/1.1 'Inter', sans-serif;
  letter-spacing: -.04em;
}
.auth-modal__subtitle {
  margin: 7px 0 22px;
  color: var(--text-muted);
  text-align: center;
  font-size: .88rem;
}
.auth-modal__panel { display: flex; flex-direction: column; }
.auth-modal__panel > form { order: 1; }
.auth-modal__panel > .divider { order: 2; margin: 15px 0; }
.auth-modal__panel > .auth-modal__google-btn { order: 3; }
.auth-modal .form-group { gap: 7px; margin-bottom: 15px; }
.auth-modal .form-label {
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
}
.auth-modal .input-icon { display: none; }
.auth-modal .form-input {
  padding: 11px 13px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  font-size: .9rem;
}
.auth-modal .form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(221, 13, 23, .12);
}
.auth-modal__tabs {
  margin-bottom: 20px;
  background: rgba(255,255,255,.055);
  border-color: transparent;
  border-radius: 14px;
}
.auth-modal__tab { padding: 10px 8px; color: var(--text-muted); }
.auth-modal__tab.active {
  background: rgba(221, 13, 23, .18);
  color: var(--accent-cyan);
}
.auth-modal .btn-primary {
  min-height: 42px;
  justify-content: center;
  /* Hereda el gradiente/hover de "Empezar Ahora" */
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 60%, var(--accent-purple) 100%);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(221, 13, 23, .25), 0 0 32px rgba(221, 13, 23, .08);
}
.auth-modal .btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 32px rgba(221, 13, 23, .4), 0 0 52px rgba(221, 13, 23, .14);
}
.auth-modal__google-btn {
  min-height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
}
.auth-modal__google-btn:disabled { opacity: .9; }
.auth-modal__google-badge { font-size: .62rem; }
.auth-modal__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.055);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-modal__tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 10px 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.auth-modal__tab.active {
  background: rgba(221, 13, 23, .18);
  color: var(--accent-cyan);
}
.auth-modal__panel[hidden] { display: none; }
.auth-modal__google-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  position: relative;
}
.auth-modal__google-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 2px 8px;
  margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-badge.pending  { background: rgba(255,165,2,0.15); color: var(--warning); border: 1px solid rgba(255,165,2,0.3); }
.status-badge.sent     { background: rgba(221, 13, 23,0.1); color: var(--accent-cyan); border: 1px solid rgba(221, 13, 23,0.25); }
.status-badge.accepted { background: rgba(0,230,118,0.12); color: var(--success); border: 1px solid rgba(0,230,118,0.3); }
.status-badge.failed   { background: rgba(255,71,87,0.12); color: var(--error); border: 1px solid rgba(255,71,87,0.25); }
.status-badge.completed{ background: rgba(0,230,118,0.12); color: var(--success); border: 1px solid rgba(0,230,118,0.3); }

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════════════════════════ */
.section-header {
  margin-bottom: 2rem;
}
.section-eyebrow {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}
.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Stagger animation helper */
.animate-stagger > * { animation: fadeUp 0.6s ease both; }
.animate-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.10s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.20s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.animate-stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gold    { color: var(--accent-gold); }
.text-cyan    { color: var(--accent-cyan); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }

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

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand { grid-column: 1 / -1; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__eyebrow, .hero__ctas, .hero__stats-row { justify-content: center; }
  .hero__sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero__card { max-width: 480px; margin: 0 auto; }

  .how-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }

  .navbar__logo-img { height: 36px; }

  .navbar__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 1.5rem 20px;
    gap: 4px;
    z-index: 999;
  }
  .navbar__links.mobile-open { display: flex; }
  .navbar__links li a { width: 100%; padding: 12px 14px; font-size: 1rem; }
  .navbar__links li a.active::after { display: none; }
  .navbar__hamburger { display: flex; }

  .navbar__right {
    gap: 0.4rem;
  }
  .nav-coins__amount::after { content: ''; }
  .nav-dropdown__trigger { padding: 6px 8px; font-size: 0.7rem; }
  .card { padding: 28px 20px; }
  .site-title { font-size: 2rem; }
  .container, .container-wide { padding: 0 1.25rem; }

  .hero { padding: 110px 1.25rem 50px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }

  .how-steps { grid-template-columns: 1fr; }

  .recharge-teaser { flex-direction: column; text-align: center; padding: 30px 24px; }
  .recharge-teaser__desc { max-width: 100%; }
  .recharge-teaser__btn { width: 100%; }
}

@media (max-width: 520px) {
  #toast-container { top: calc(var(--nav-height) + 8px); right: 12px; left: 12px; }
  .toast { min-width: unset; max-width: 100%; }

  .nav-dropdown__trigger .caret { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero__stats-row { gap: 1.25rem; }
  .hero__card { padding: 20px; }
  .hero__card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
