/* Green Core Theme — variables, base, layout */
:root {
  --topbar-h: 80px;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --accent-1: #16a34a; /* primary */
  --accent-2: #22c55e; /* secondary */
  --accent-3: #59ff78; /* neon */
  --bg-1: #12151b;
  --bg-2: #0f1318;
  --bg-3: #0d1116;
  --text-0: #ffffff;
  --text-1: #cbd5e1;
  --text-2: #94a3b8;
  --border-1: rgba(255, 255, 255, 0.12);
  --border-2: rgba(255, 255, 255, 0.08);
  --glass-1: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.03);
  --glow-1: rgba(34, 197, 94, 0.35);
  --glow-2: rgba(34, 197, 94, 0.2);
}

html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text-0);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  /* Fondo global uniforme (negro mate) */
  background: rgb(27, 28, 37);
}

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

.section-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
}
.section-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title-main {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  margin: 0;
}
.section-subtitle {
  margin: 0;
  color: var(--text-2);
  font-weight: 500;
}
.btn-see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-1);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  text-decoration: none;
  font-weight: 700;
}
.btn-see-all:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Top chips bar */
.top-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin: 0 0 8px;
}
.chip {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid var(--border-1);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}
.chip.active {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45);
}

/* Bucket Grid (providers) */
.bucket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 12px 0 18px;
}
.bucket-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.bucket-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  -webkit-box-align: center;
  align-items: center;
  background-image: url(/assets/sport-CucA09tW.png);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  aspect-ratio: 622 / 365;
}

.bucket-card .bucket-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bucket-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      400px 160px at 12% 0%,
      rgba(34, 197, 94, 0.25),
      transparent 50%
    ),
    radial-gradient(
      400px 160px at 88% 100%,
      rgba(34, 197, 94, 0.22),
      transparent 55%
    );
}
.bucket-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  position: relative;
  z-index: 2;
}
.bucket-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bucket-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(34, 197, 94, 0.35));
}
.bucket-title {
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 22px;
}
.bucket-sub {
  color: var(--text-2);
  font-weight: 600;
  font-size: 14px;
}
.bucket-sub {
  color: var(--text-2);
  font-weight: 600;
}
.bucket-cta {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  cursor: pointer;
}

/* Promo Grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 12px 0 26px;
}
.promo-card {
  position: relative;
  min-height: 180px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--border-1);
}
.promo-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45));
}
.promo-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.promo-title {
  font-weight: 800;
}

/* Topbar/ Footer overrides con negro mate uniforme */
.topbar {
  background: rgb(27, 28, 37);
  border-bottom-color: rgba(34, 197, 94, 0.35);
}
.topbar .nav-item {
  border-color: rgba(34, 197, 94, 0.4);
}
.topbar .nav-item.active {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.25),
    rgba(34, 197, 94, 0.15)
  );
}

/* Header look & feel como la referencia */
.topbar .nav-menu {
  display: none;
}
.brand,
.brand a {
  color: #fff;
  text-shadow: 0 0 24px rgba(34, 197, 94, 0.28);
}
.btn-compact.btn-green {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border: 1px solid rgba(34, 197, 94, 0.6);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
.btn-compact.btn-green:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Botón "Entrar" con estilo especificado */
.btn-compact.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans";
  font-size: 0.875rem;
  line-height: 1.75;
  text-transform: uppercase;
  min-width: 64px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px,
    rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
  font-weight: bold;
  letter-spacing: 0.2px;
  color: rgb(0, 0, 0);
  outline: 0;
  margin: 0;
  text-decoration: none;
  border: 0;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 15px;
  padding: 8px 20px;
  background: linear-gradient(
    360deg,
    rgb(231, 228, 63) -7.78%,
    rgb(141, 225, 82) 100%
  );
}
.topbar-inner {
  display: flex;
  flex-direction: row;
  height: var(--topbar-h);
  align-items: center;
  justify-content: space-between;
  padding-left: 15px;
  padding-right: 15px;
  background-color: rgb(27, 28, 37);
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.btn-compact.btn-enter:hover {
  filter: brightness(1.05);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 6px 10px -2px,
    rgba(0, 0, 0, 0.18) 0px 4px 6px 0px, rgba(0, 0, 0, 0.14) 0px 2px 8px 0px;
}

.footer {
  background: rgb(27, 28, 37);
  border-top: 1px solid rgba(34, 197, 94, 0.25);
}
.footer a:hover {
  color: #86efac;
}

/* Left rail (sidebar de accesos rápidos) */
.left-rail {
  position: fixed;
  left: 0;
  top: var(--topbar-h, 60px);
  width: 88px;
  bottom: 0;
  padding-top: 6px;
  /* Fondo lateral igual al header (negro mate) */
  background: rgb(27, 28, 37);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.left-rail .rail-item {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid var(--border-1);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.left-rail .rail-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.left-rail .rail-item.is-active {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28),
    0 12px 28px rgba(34, 197, 94, 0.32);
}
.left-rail .rail-item .icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.left-rail .rail-item .icon--idle {
  filter: grayscale(1) brightness(0.85);
  opacity: 0.7;
}
.left-rail .rail-item .icon--active {
  display: none;
}
.left-rail .rail-item.is-active .icon--active {
  display: block;
}
.left-rail .rail-item.is-active .icon--idle {
  display: none;
}
.left-rail .rail-spacer {
  flex: 1;
}
.left-rail .rail-clock {
  color: var(--text-2);
  font-size: 9px;
  text-align: center;
  padding: 8px 4px;
  line-height: 1.2;
  font-weight: 500;
}

/* Desplazar contenido para no tapar el rail */
body.with-left-rail {
  padding-left: 0;
}
.page-content {
  padding-left: 100px;
  padding-top: var(--topbar-h);
  background: rgb(27, 28, 37);
}

/* Hero overrides en verde */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      800px 300px at 12% 8%,
      rgba(34, 197, 94, 0.1),
      transparent 60%
    ),
    radial-gradient(
      800px 300px at 88% 92%,
      rgba(22, 163, 74, 0.1),
      transparent 60%
    );
  pointer-events: none;
}
.hero-nav-btn {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(0, 0, 0, 0.45);
}
.hero-nav-btn:hover {
  background: rgba(34, 197, 94, 0.85);
  border-color: var(--accent-1);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.55);
}
.hero-dot.active {
  background: var(--accent-2);
  border-color: #fff;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.55);
  transform: scale(1.2);
}

/* Util — borde interno sutil */
.ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1px var(--border-2);
}

/* Mobile layout for Promo Grid */
@media (max-width: 768px) {
  .promo-grid {
    display: flex;
    gap: 12px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }
  .promo-card {
    min-width: 280px;
    border-radius: 16px;
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.04)
    );
  }
  .promo-card .promo-content {
    padding: 10px 12px;
  }
}

/* ===== Responsive fixes (mobile) ===== */
@media (max-width: 900px) {
  /* Ocultar rail lateral en móvil y eliminar padding izquierdo */
  .left-rail { display: none !important; }
  .page-content { padding-left: 0 !important; padding-bottom: 80px !important; }
  body.with-left-rail { padding-left: 0 !important; }
}

/* Rows layout for game cards */
.cards-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
}
.cards-row > * {
  scroll-snap-align: start;
}
@media (max-width: 900px) {
  .cards-row {
    gap: 14px;
    padding: 6px 8px;
  }
  .section-title-main {
    font-size: 20px;
  }
  .section-subtitle {
    font-size: 12px;
  }
}
@media (max-width: 620px) {
  .cards-row {
    gap: 12px;
    padding: 6px 8px;
  }
  .section-title-main {
    font-size: 18px;
  }
  .section-subtitle {
    font-size: 11px;
  }
}

/* Scrollbar en verde */
*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--bg-1);
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
  border-radius: 999px;
}
