/* ====== Página de inicio (usa styles.css para header/footer) ====== */

.home { width: 100%; }

/* Utilidad: centra el contenido a 1240px con fondo a todo el ancho */
/* (se logra con padding-inline dinámico en cada franja) */

/* ===== Franja superior: Progressive Play + Jackpots + Hero ===== */
.topband {
  background: var(--body);   /* mismo fondo que la sección de registro */
  padding: 14px 0 20px;
}
.topband__inner {
  max-width: 1560px;
  margin: 0 auto;
  padding: 6px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.pp-title {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.3px;
}
.pp-title span { color: var(--verde); }

.jackpots__row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
}
.jp-card {
  background: #0c1b41;           /* color exacto, sin borde */
  border-radius: 18px;
  padding: 16px 18px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Poppins', 'Montserrat', sans-serif;   /* tipografía de la original */
  position: relative;
  overflow: hidden;
}
/* Flecha de fondo: silueta sólida color #0F204F, más a la derecha y cortada en el borde */
.jp-card::after {
  content: "";
  position: absolute;
  right: -16px; bottom: -34px;
  width: 108px; height: 108px;
  background-color: #0f204f;
  -webkit-mask: url('assets/arrow.png') no-repeat center / contain;
  mask: url('assets/arrow.png') no-repeat center / contain;
}
.jp-label { font-weight: 700; font-size: 15px; letter-spacing: .6px; position: relative; z-index: 1; }
.jp-amount { display: block; font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; margin: 2px 0; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.jp-sub { font-size: 12.5px; font-weight: 600; position: relative; z-index: 1; }
/* Cada jackpot: su color de acento para TODO el texto (etiqueta, cifra y "Gana hasta…").
   Se asigna por CLASE (no por posición) para que el color viaje con la tarjeta
   cuando el carrusel la mueve de lugar. */
.jp-card--mega  { color: #96ff03; }
.jp-card--super { color: #2fe938; }
.jp-card--extra { color: #d6ff09; }

/* ===== Carrusel coverflow (banners oficiales) — a todo el ancho ===== */
.hero { position: relative; max-width: none; margin: 12px 0 0; padding: 0; }
.hero__viewport { overflow: hidden; padding: 8px 0; }
.hero__track { display: flex; gap: 18px; }
.hero__slide {
  flex: 0 0 33%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transform: scale(.85);
  transform-origin: center;          /* los laterales encogen hacia el centro */
  filter: brightness(.5);
  transition: transform .55s cubic-bezier(.4, 0, .2, 1), filter .55s;
}
.hero__slide.is-active {
  transform: scale(1);
  filter: brightness(1);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .5);
}
.hero__slide.is-prev { transform-origin: right center; }
.hero__slide.is-next { transform-origin: left center; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Hover: oscurece la imagen y muestra el botón "VER MÁS" */
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(3, 10, 28, .58);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.hero__more {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .3px;
  padding: 11px 26px; border-radius: 4px;
  border: 2px solid #5fb3e1;
  background: rgba(255, 255, 255, .1);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.hero__slide:hover::after,
.hero__slide:hover .hero__more { opacity: 1; }

/* ===== Botón verde "¡Juega Ya!" (igual al original) ===== */
.btn-play {
  display: inline-block;
  background: #28a745;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none; cursor: pointer;
  padding: 11px 24px;
  min-width: 210px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  transition: filter .15s, transform .15s ease;
}
.btn-play:hover { filter: brightness(1.08); transform: scale(1.04); }

/* ===== Franja CTA ===== */
.ctaband {
  background: #001849;
  text-align: center;
  padding: 22px 20px;
}
.ctaband p {
  color: #fff; font-size: 22px; font-weight: 700;
  white-space: nowrap; margin: 0 auto 16px; line-height: 1.35;
}
@media (max-width: 1400px) {
  .ctaband p { white-space: normal; max-width: 1040px; }
}

/* ===== Pasos 1·2·3 ===== */
.steps {
  background: #021f59;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 56px;   /* distribuido a todo el ancho de la pantalla */
}
.step {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 6px 40px;
}
.step + .step { border-left: 1px solid rgba(255, 255, 255, .07); }
.step__txt h3 { color: #fff; font-size: 18px; font-weight: 600; }
.step__txt p { color: #3fb1e8; font-size: 14px; font-weight: 600; margin-top: 5px; line-height: 1.3; }
.step__chevron {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 50%;
  background: #05122c; color: #fff;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700; text-decoration: none;
  transition: transform .15s, background .15s;
}
.step__chevron:hover { background: #020b1d; transform: scale(1.08); }

/* ===== Productos (fondo claro): Sports / Casino / Póker ===== */
.products {
  background: #c7d5e5;
  padding: 44px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;   /* bloques centrados en la página */
  gap: 28px;
}
.product {
  display: flex;
  align-items: center;
  justify-content: center;  /* imagen y texto juntos, centrados */
  gap: 48px;
  width: 100%;
  max-width: 1120px;
}
.product__img { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.product__img img { max-height: 420px; width: auto; }
.product__info { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 440px; }
.product__brand { height: 96px; width: auto; }
.product__info p { color: #0a2149; font-size: 15px; font-weight: 600; line-height: 1.5; }

/* La sección clara de productos conecta directo con el footer (sin franja oscura) — solo en el inicio */
.footer { margin-top: 0; }

/* ===== Responsive ===== */
@media (max-width: 1040px) {
  .topband__inner { flex-direction: column; align-items: flex-start; }
  .jackpots__row { width: 100%; max-width: none; }
  .hero__slide { flex-basis: 70%; }
  .hero__arrow--prev { left: 20px; } .hero__arrow--next { right: 20px; }
}
@media (max-width: 820px) {
  .jackpots__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .step + .step { border-left: none; border-top: 1px solid rgba(255, 255, 255, .07); }
  .product, .product--rev { flex-direction: column; text-align: center; gap: 22px; }
  .product--rev { flex-direction: column-reverse; }
  .product__info { align-items: center; }
  .hero__slide { flex-basis: 86%; }
}

/* ===== CELULAR (móvil) — ajustes del INICIO ===== */
/* Todo lo que está aquí dentro SOLO se aplica cuando la pantalla
   mide 720px de ancho o menos (celulares). En pantallas grandes
   el navegador lo ignora. */
@media (max-width: 720px) {
  /* Franja superior: menos espacio y que "Progressive Play" no sea gigante */
  .topband { padding: 12px 0 16px; }
  .topband__inner { padding: 6px 16px 0; gap: 18px; }
  .pp-title { font-size: 22px; }
  .pp-title br { display: none; }   /* "Progressive Play" en una sola línea */

  /* Jackpots en fila que se desliza con el dedo (MEGA, SUPER, EXTRA) */
  .jackpots__row {
    display: flex;
    gap: 14px;
    overflow-x: auto;              /* permite deslizar de lado */
    scroll-snap-type: x mandatory; /* cada tarjeta se "engancha" al deslizar */
    padding-bottom: 6px;
    scrollbar-width: none;         /* oculta la barra de scroll (Firefox) */
  }
  .jackpots__row::-webkit-scrollbar { display: none; }  /* oculta la barra (Chrome) */
  .jackpots__row .jp-card {
    flex: 0 0 76%;                 /* cada tarjeta casi todo el ancho; la siguiente asoma */
    scroll-snap-align: start;
  }
  .jp-amount { font-size: 24px; }

  /* Carrusel: el banner del centro ocupa casi todo el ancho del celular */
  .hero__slide { flex-basis: 88%; }

  /* Franja "¡Juega Ya!": el botón pasa a ocupar el ancho disponible */
  .ctaband { padding: 18px 16px; }
  .ctaband p { font-size: 17px; }
  .btn-play { min-width: 0; width: 100%; max-width: 320px; }

  /* Pasos 1·2·3 uno debajo del otro */
  .steps { grid-template-columns: 1fr; padding: 16px; }
  .step { padding: 12px 6px; }
  .step + .step { border-left: none; border-top: 1px solid rgba(255, 255, 255, .07); }

  /* Productos: imagen arriba y texto abajo, todo centrado */
  .products { padding: 30px 16px 40px; gap: 24px; }
  .product, .product--rev { flex-direction: column; text-align: center; gap: 18px; }
  .product--rev { flex-direction: column-reverse; }
  .product__info { align-items: center; max-width: 100%; }
  .product__img img { max-height: 280px; max-width: 100%; }
  .product__brand { height: 70px; }
}
