/* ================== VARIABLES Y FUNDAMENTOS ================== */
:root {
  /* Colores principales */
  --bg: #0a0404;
  --bg-2: #0f0505;
  --bg-card: #1a0808;
  --text: #f5e6d3;
  --text-muted: #b89968;

  /* Rojo y dorado - tema principal */
  --red-primary: #dc2626;
  --red-dark: #991b1b;
  --red-light: #ef4444;
  --gold: #d4af37;
  --gold-light: #ffd700;
  --gold-dark: #b8860b;

  /* Efectos y sombras */
  --glow-red: 0 0 30px rgba(220, 38, 38, 0.3);
  --glow-gold: 0 0 30px rgba(212, 175, 55, 0.3);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.8);

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

/* ================== 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: -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(10, 4, 4, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.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(--red-primary), var(--red-dark));
  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: 12px;
}

.btn-compact {
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.btn-compact.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.5);
}

.btn-compact.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.btn-compact.btn-outline:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--red-primary);
}

.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);
}

.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 ================== */
.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(220, 38, 38, 0.4);
}

.btn-hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(220, 38, 38, 0.6);
}

.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-modern {
  padding: 80px 20px;
}

.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;
  }
}

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

@media (max-width: 900px) {
  .only-mobile {
    display: inline-flex;
  }
  .only-desktop {
    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;
  }
}

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