/* ================== VARIABLES Y FUNDAMENTOS ================== */
:root {
  /* Colores principales (tema morado) */
  --bg: #0e0616; /* fondo profundo morado */
  --bg-2: #150a24; /* degradado inferior */
  --bg-card: #1b0d2e; /* tarjetas oscuras moradas */
  --text: #eeeaf8; /* texto principal claro */
  --text-muted: #b8a9d6; /* texto secundario lila */

  /* Acentos morados y detalles */
  --red-primary: #7a3cff; /* usamos esta variable como acento principal morado */
  --red-dark: #5b21b6; /* morado profundo */
  --red-light: #a78bfa; /* lila claro */
  --gold: #ffce6a; /* dorado suave para badges */
  --gold-light: #ffe38a;
  --gold-dark: #b77f1f;

  /* Efectos y sombras (adaptados a morado) */
  --glow-red: 0 0 30px rgba(122, 60, 255, 0.4);
  --glow-gold: 0 0 30px rgba(255, 206, 106, 0.25);
  --shadow-card: 0 10px 40px rgba(19, 10, 36, 0.65);
  --shadow-elevated: 0 20px 60px rgba(19, 10, 36, 0.8);

  /* Espaciado */
  --radius: 16px;
  --radius-lg: 24px;
  --topbar-h: 60px;

  /* Paleta adicional */
  --purple-1: #7a3cff;
  --purple-2: #a855f7;
  --violet: #6d28d9;
  --pink: #ff2bd6;
}

/* ================== RESET Y BASE ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  /* display: block; */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* ================== TOPBAR ================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 10, 36, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(122, 60, 255, 0.35);
  box-shadow: 0 8px 24px rgba(19, 10, 36, 0.55);
}

.topbar-inner {
  max-width: 100%;
  /* margin: 0 auto; */
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

.brand .logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-1), var(--violet));
  box-shadow: var(--glow-red);
}

/* Imagen del logo de marca */
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 10px;
}

/* Compact header */
.topbar--compact .brand-logo {
  height: 32px;
}

/* Footer brand logo más grande */
.footer-brand .brand-logo {
  height: 48px;
}

@media (max-width: 768px) {
  .brand-logo {
    height: 64px;
  }
  .footer-brand .brand-logo {
    height: 40px;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-compact {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-compact.btn-primary {
  background: linear-gradient(180deg, var(--purple-1), var(--violet));
  color: #fff;
  box-shadow: 0 10px 24px rgba(122, 60, 255, 0.35);
  border-color: rgba(168, 85, 247, 0.6);
}

.btn-compact.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(122, 60, 255, 0.45);
}

.btn-compact.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(168, 85, 247, 0.45);
}

.btn-compact.btn-outline:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.85);
}

.btn-compact.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 900;
  box-shadow: var(--glow-gold);
}

.btn-compact.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

/* Botón de acceso (login) estilo morado */
.btn-login {
  background: linear-gradient(180deg, var(--purple-1), var(--violet));
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.7);
  box-shadow: 0 12px 28px rgba(122, 60, 255, 0.4);
  font-weight: 900;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(122, 60, 255, 0.5);
}

.balance-pill {
  padding: 8px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold);
  border-radius: 20px;
  font-weight: 900;
  color: var(--gold);
  box-shadow: var(--glow-gold);
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.profile-pill:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--red-primary);
}

.profile-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* ================== HERO MAIN ================== */
/* Decoración de fondo para hero (orbits y brillos) */
.hero-carousel-wrapper .hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-decor::before,
.hero-bg-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-bg-decor::before {
  width: 700px;
  height: 700px;
  left: -10%;
  top: -10%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 229, 168, 0.18),
    transparent 60%
  );
}
.hero-bg-decor::after {
  width: 500px;
  height: 500px;
  right: -10%;
  top: 20%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(245, 214, 123, 0.15),
    transparent 60%
  );
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10px, -10px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
.hero-bg-decor::before {
  animation: drift 12s ease-in-out infinite;
}
.hero-bg-decor::after {
  animation: drift 18s ease-in-out infinite;
}

/* Chips de categorías bajo el hero */
.categories-chips {
  padding: 16px 20px;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 229, 168, 0.2);
  border-bottom: 1px solid rgba(0, 229, 168, 0.2);
}
.categories-chips .chips-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.categories-chips .chip {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 168, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
}
.categories-chips .chip:hover {
  border-color: var(--red-primary);
  background: rgba(0, 229, 168, 0.12);
}
.categories-chips .chip.is-active {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: #fff;
  box-shadow: var(--glow-red);
  border-color: transparent;
}
@media (max-width: 768px) {
  .categories-chips {
    padding: 12px 8px;
  }
}
.hero-main {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content-overlay {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 25px;
  margin-bottom: 20px;
  box-shadow: var(--glow-gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title-main {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: white;
  margin: 0 0 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
  max-width: 900px;
}

.hero-subtitle-main {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  max-width: 700px;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: white;
  box-shadow: 0 10px 40px rgba(122, 60, 255, 0.45);
}

.btn-hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(122, 60, 255, 0.7);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-4px);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(220, 38, 38, 0.5);
  border-radius: 50%;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
  background: rgba(220, 38, 38, 0.8);
  border-color: var(--red-primary);
  box-shadow: var(--glow-red);
}

.hero-prev {
  left: 20px;
}
.hero-next {
  right: 20px;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--gold);
  border-color: white;
  box-shadow: var(--glow-gold);
  transform: scale(1.2);
}

/* ================== STATS BANNER ================== */
.stats-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-2) 100%);
  padding: 40px 20px;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: var(--red-primary);
  box-shadow: var(--glow-red);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================== QUICK ACCESS ================== */
.quick-access {
  padding: 60px 20px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.quick-card {
  position: relative;
  padding: 40px 30px;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.1) 0%,
    rgba(26, 8, 8, 0.8) 100%
  );
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.quick-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.quick-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quick-card:hover::before {
  opacity: 1;
}

.quick-card:hover {
  transform: translateY(-12px);
  border-color: var(--red-primary);
  box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
}

.quick-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
  transition: transform 0.3s ease;
}

.quick-card:hover .quick-icon {
  transform: scale(1.1) rotate(5deg);
}

.quick-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 10px;
}

.quick-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ================== GAMES SHOWCASE ================== */
/*  */

.games-showcase-alt {
  background: var(--bg-card);
}

.section-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header-modern.center {
  justify-content: center;
  text-align: center;
}

.section-title-group {
  flex: 1;
}

.section-title-main {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
  text-shadow: var(--glow-gold);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.btn-see-all {
  padding: 12px 24px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 25px;
  color: var(--text);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-see-all:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--red-primary);
  transform: translateX(5px);
}

.games-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.games-grid-6 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.game-card-modern {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.game-card-modern.visible {
  opacity: 1;
  transform: translateY(0);
}

.game-card-modern:hover {
  transform: translateY(-10px);
  border-color: var(--red-primary);
  box-shadow: var(--shadow-elevated);
}

.game-thumbnail {
  position: relative;
  /* aspect-ratio: 16/9; */
  overflow: hidden;
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card-modern:hover .game-thumbnail img {
  transform: scale(1.1);
}

.game-overlay-modern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card-modern:hover .game-overlay-modern {
  opacity: 1;
}

.btn-play-modern,
.btn-demo-modern {
  padding: 12px 28px;
  font-weight: 900;
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
}

.btn-play-modern {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: white;
  box-shadow: var(--glow-red);
}

.btn-play-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
}

.btn-demo-modern {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-demo-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.game-badge-new {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  color: white;
  border-color: var(--red-primary);
  box-shadow: var(--glow-red);
}

.game-details {
  padding: 16px;
}

.game-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================== PROMO SECTION ================== */
.promo-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-2) 100%);
}

.promo-card-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.15) 0%,
    rgba(26, 8, 8, 0.9) 100%
  );
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.promo-card-large::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

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

.promo-content-left {
  position: relative;
  z-index: 2;
}

.promo-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gold);
  color: #000;
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 25px;
  margin-bottom: 20px;
  box-shadow: var(--glow-gold);
}

.promo-content-left h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
}

.promo-content-left p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

.promo-features {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.promo-features li {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}

.promo-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
  font-size: 1.3rem;
}

.btn-promo-cta {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.btn-promo-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.6);
}

.promo-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  box-shadow: 0 0 100px rgba(220, 38, 38, 0.6);
  animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 100px rgba(220, 38, 38, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 150px rgba(220, 38, 38, 0.8);
    transform: scale(1.05);
  }
}

.promo-text-large {
  position: absolute;
  font-size: 5rem;
  font-weight: 900;
  color: var(--gold);
  text-shadow: var(--glow-gold);
}

/* ================== PROVIDERS SECTION ================== */

.providers-grid-modern {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--red-primary) rgba(255, 255, 255, 0.1);
}

.providers-grid-modern::-webkit-scrollbar {
  height: 8px;
}

.providers-grid-modern::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.providers-grid-modern::-webkit-scrollbar-thumb {
  background: var(--red-primary);
  border-radius: 4px;
}

.providers-grid-modern::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

.provider-card-modern {
  min-width: 200px;
  flex-shrink: 0;
  padding: 30px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  cursor: pointer;
}

.provider-card-modern.visible {
  opacity: 1;
  transform: translateY(0);
}

.provider-card-modern:hover {
  transform: translateY(-12px);
  border-color: var(--red-primary);
  box-shadow: var(--shadow-elevated);
}

.provider-logo {
  margin-bottom: 25px;
}

.provider-icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border-radius: 20px;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  box-shadow: var(--glow-red);
  transition: transform 0.3s ease;
}

.provider-card-modern:hover .provider-icon-bg {
  transform: rotate(5deg) scale(1.1);
}

.provider-card-modern h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 12px;
}

.provider-card-modern p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================== FOOTER ================== */
.footer-modern {
  background: var(--bg);
  border-top: 2px solid rgba(220, 38, 38, 0.3);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: var(--glow-gold);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand .logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  box-shadow: var(--glow-red);
}

.footer-col p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-rating {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-rating .stars {
  font-size: 1.2rem;
  color: var(--gold);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-payment {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-payment span {
  font-weight: 700;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .games-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .promo-text-large {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-carousel-wrapper {
    height: 400px;
  }

  .hero-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .hero-prev {
    left: 10px;
  }
  .hero-next {
    right: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .games-grid-modern {
    grid-template-columns: 1fr;
  }

  .btn-compact {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 1366px) {
  .nav-item {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .nav-menu {
    gap: 6px;
  }
  .nav-actions {
    gap: 8px;
  }
  .btn-compact {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .brand-logo {
    height: 36px;
  }
}

/* ================== MOBILE MENU ================== */
.only-mobile {
  display: none;
}

@media (max-width: 900px) {
  .only-mobile {
    display: inline-flex;
  }
  .only-desktop {
    display: none !important;
  }
  
  /* Ocultar pastillas de navegación en móvil */
  .nav-menu {
    display: none !important;
  }

  .nav-actions {
    position: fixed;
    top: var(--topbar-h);
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--topbar-h));
    background: rgba(10, 4, 4, 0.98);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(220, 38, 38, 0.3);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 12px;
    transition: left 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .nav-actions.active {
    left: 0;
  }

  .nav-actions a,
  .nav-actions .balance-pill,
  .nav-actions .profile-pill {
    width: 100%;
    justify-content: center;
  }

  /* Grupo de enlaces de navegación dentro del menú desplegable */
  .nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 12px;
  }
  .nav-mobile-links .btn-compact {
    width: 100%;
    justify-content: center;
  }
}

/* ================== ANIMATIONS ================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Bottom Nav (Mobile) ===== */
.mv-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  background: rgba(10, 4, 4, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(220, 38, 38, 0.3);
  z-index: 100;
  padding: 6px 10px;
}
.mv-bottom a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
}
.mv-bottom a span {
  font-size: 12px;
  opacity: 0.9;
}
.mv-bottom a.is-active {
  color: var(--gold);
}
@media (max-width: 900px) {
  .mv-bottom {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  body {
    padding-bottom: 70px;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ================== UTILIDADES ================== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ================== SCROLL BAR PERSONALIZADA ================== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--red-light), var(--red-primary));
}

/* ================== EFECTOS DE BRILLO ================== */
.glow-red {
  box-shadow: var(--glow-red);
}

.glow-gold {
  box-shadow: var(--glow-gold);
}

/* ================== HELPERS ================== */
.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text-red {
  background: linear-gradient(135deg, var(--red-primary), var(--red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================== LOADING STATES ================== */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(220, 38, 38, 0.1) 25%,
    rgba(220, 38, 38, 0.2) 50%,
    rgba(220, 38, 38, 0.1) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(220, 38, 38, 0.2);
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ================== ACCESIBILIDAD ================== */
.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;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ================== OPTIMIZACIONES DE RENDIMIENTO ================== */
.game-thumbnail img,
.hero-slide {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
card-large {
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px;
}

.promo-circle {
  width: 250px;
  height: 250px;
}

.promo-text-large {
  font-size: 4rem;
}

@media (max-width: 768px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav-actions {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-carousel-wrapper {
    height: 500px;
  }

  .hero-title-main {
    font-size: 2rem;
  }

  .hero-subtitle-main {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .section-header-modern {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-card-large {
    padding: 30px 20px;
  }

  .promo-circle {
    width: 200px;
    height: 200px;
  }
}

/* ================== DESKTOP ALIGNMENT FOR HERO ================== */
@media (min-width: 900px) {
  .hero-content-overlay {
    align-items: flex-start;
    text-align: left;
    padding-left: 60px;
  }
  .hero-cta-group {
    justify-content: flex-start;
  }
}

/* ================== PURPLE THEME — COMPONENTS & ANIMATIONS ================== */
/* Navegación y chips estilo ganamos.io */
.nav-menu {
  display: flex;
  gap: 10px;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  /* padding: 8px 14px; */
  border-radius: 999px;
  /* font-weight: 700; */
  font-size: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(122, 60, 255, 0.4);
  color: #fff;
  box-shadow: 0 10px 20px rgba(19, 10, 36, 0.4);
}
.nav-item.active,
.nav-item:hover {
  background: linear-gradient(
    180deg,
    rgba(122, 60, 255, 0.25),
    rgba(122, 60, 255, 0.15)
  );
  border-color: rgba(168, 85, 247, 0.9);
}

/* Pequeña insignia morada para etiquetas como "NEW" en la navegación */
.nav-badge {
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, var(--purple-1), var(--violet));
  box-shadow: 0 6px 14px rgba(122, 60, 255, 0.35);
  line-height: 1;
  display: inline-block;
}

/* Chips principales debajo del hero */
.categories-chips {
  position: relative;
  margin-top: -10px;
  padding: 10px 20px 24px;
  background: linear-gradient(
    180deg,
    rgba(122, 60, 255, 0.06),
    rgba(122, 60, 255, 0)
  );
}
.categories-chips .chips-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}
.chip:hover,
.chip.is-active {
  background: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.25),
    rgba(122, 60, 255, 0.15)
  );
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 0 12px 30px rgba(122, 60, 255, 0.35);
}

/* Dots del hero y flechas */
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(122, 60, 255, 0.4);
}
.hero-dot.active {
  background: linear-gradient(180deg, var(--purple-1), var(--violet));
  box-shadow: 0 6px 16px rgba(122, 60, 255, 0.6);
}
.hero-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.5);
}
.hero-nav-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(168, 85, 247, 0.25),
    rgba(122, 60, 255, 0.15)
  );
}

/* Cards de juegos — estilo morado */
.game-card-optimized,
.game-card {
  background: linear-gradient(
    145deg,
    rgba(122, 60, 255, 0.1),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 40px rgba(19, 10, 36, 0.55);
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(122, 60, 255, 0.45);
  border-color: rgba(168, 85, 247, 0.7);
}
.game-card .play-btn,
.btn-outline,
.btn-compact {
  border-color: rgba(168, 85, 247, 0.6);
}
.btn-outline:hover,
.btn-compact:hover {
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 0 10px 24px rgba(122, 60, 255, 0.35);
}

/* Banners destacados */
.promo-card-large {
  background: linear-gradient(
    180deg,
    rgba(122, 60, 255, 0.12),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 12px 40px rgba(19, 10, 36, 0.5);
}
.promo-card-large:hover {
  box-shadow: 0 16px 60px rgba(122, 60, 255, 0.45);
}

/* Proveedores — carrusel */
.providers-carousel .item {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.providers-carousel .item:hover {
  border-color: rgba(168, 85, 247, 0.7);
}

/* Animaciones */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(122, 60, 255, 0);
  }
  50% {
    box-shadow: 0 0 24px rgba(122, 60, 255, 0.8);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes gradientShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(20deg) saturate(1.15);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Micro-interacciones */
.btn-hero-primary {
  animation: glowPulse 2.8s infinite;
}
.promo-card-large {
  animation: float 6s ease-in-out infinite;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      800px 300px at 10% 10%,
      rgba(255, 43, 214, 0.08),
      transparent 60%
    ),
    radial-gradient(
      800px 300px at 90% 90%,
      rgba(122, 60, 255, 0.08),
      transparent 60%
    );
  pointer-events: none;
}

/* Bordes neon utilitarios */
.neon-border {
  position: relative;
}
.neon-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--purple-1), var(--pink));
  /* -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); */
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Topbar estilo morado */
.topbar {
  background: rgba(21, 10, 36, 0.85);
  border-bottom-color: rgba(122, 60, 255, 0.35);
}
.topbar .nav-item {
  border-color: rgba(122, 60, 255, 0.4);
}
.topbar .nav-item.active {
  background: linear-gradient(
    180deg,
    rgba(122, 60, 255, 0.25),
    rgba(122, 60, 255, 0.15)
  );
}

/* Footer morado */
.footer {
  background: rgba(14, 6, 22, 0.95);
  border-top: 1px solid rgba(122, 60, 255, 0.25);
}
.footer a:hover {
  color: var(--red-light);
}

/* Scrollbar en morado */
*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-1), var(--violet));
  border-radius: 999px;
}
