.index-game-a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-family: sans-serif;
}
.index-game-a:hover {
    color: grey;
}
.index-cant-juegos{
    font-size: 25px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white;
    text-align: center;

}
span{
    color: red;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
/* Contenedor principal */

.index-games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
}

.index-game-item {
    flex: 0 1 200px;
    text-align: center;
    position: relative;
}





/* Imagen del juego */
.index-game-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}



/* Efecto de zoom en todo el contenedor */
.index-game-item:hover img,
.index-game-item:hover .game-name {
    transform: scale(1.05); /* Ambos elementos se amplían juntos */
}



.index-latest-games-container{
    position: relative;
    width: 100%;
    overflow: auto;
}

.index-latest-games {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
    white-space: nowrap;
    overflow-x: scroll;
    scrollbar-width: none; /* Oculta la barra en Firefox */
}


.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10; /* Asegura que las flechas estén por encima */
}


.nav-arrow.left {
    left: 10px;
}

.nav-arrow.right {
    right: 10px;
}

.index-all-games {
    color: white; /* Rojo más vibrante */
    font-size: 20px;
    font-weight: 900;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.index-categoria-games {
    color: #CCCCCC; /* Rojo más vibrante */
    font-size: 26px;
    font-weight: 1000;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    text-align: center;
    margin-top: -8px;
}



.index-latest-games .index-carousel-game {
    flex: 0 0 200px;
    scroll-snap-align: start;
    position: relative;
    display: inline-block;
    text-align: center;
    overflow: hidden;
}


.index-game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%; /* Ajusta según cuánto quieras que suba el degradado */
    background: linear-gradient(to top, rgb(0, 0, 0), rgba(255, 255, 255, 0));
    pointer-events: none; /* No bloquea clics */
    z-index: 1;
}


.index-carousel-game img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.index-game-name {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    color: white;
    padding: 5px 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    white-space: normal;
    z-index: 2; /* Asegura que esté encima del overlay */
}

.index-carousel-game:hover img,
.index-carousel-game:hover .index-game-name {
    transform: scale(1.05);
}



.index-ad-container {
    width: 100%;
    max-width: 728px;
    margin: 10px auto;
    text-align: center;
}



/* Boton de Organizar */
.index-clasificador {
  margin: 1.5rem 0;
  text-align: right;
  font-family: 'Segoe UI', sans-serif;
}

.index-clasificador label {
  color: #eee;
  font-weight: 600;
  margin-right: 0.5rem;
  font-size: 0.95rem;
}

.index-clasificador select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #1c1c1c;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.index-clasificador select:focus {
  outline: none;
  border-color: #00bfff;
}

.index-shadow-box-games {
    background-color: #222; /* Color de fondo suave */
    border-radius: 10px;       /* Bordes redondeados */
    padding: 20px;             /* Espacio interno */
    margin: 20px auto;         /* Espacio externo y centrado */
    margin-inline: 6px;        /* Solo 10px de margen a los lados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra ligera */
}

@media (max-width: 768px) {
  .index-latest-games .index-carousel-game {
    flex: 0 0 120px;
  }

  .nav-arrow {
    padding: 5px;
    font-size: 16px;
  }

  .index-game-item {
    flex: 0 0 30%;
  }

  .index-game-item img {
    height: auto;
    border-radius: 6px;
  }

  .index-game-item .index-game-name {
    font-size: 10px;
    padding: 2px 4px;
    bottom: 4px;
  }

  .index-carousel-game {
    flex: 0 0 120px;
  }

  .index-latest-games .index-carousel-game img {
    width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .index-latest-games .index-carousel-game .index-game-name {
    font-size: 12px;
    padding: 3px 5px;
  }

  .index-latest-games-container {
    overflow-x: auto;
  }

  .index-ad-container iframe {
    width: 100% !important;
    height: auto !important;
  }
}



/* Telefonos */

/* ---- REGLA GENERAL PARA EVITAR DESBORDES ---- */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* Elimina scroll lateral */
  margin: 0;
  padding: 0;
}

/* Asegura que los contenedores no se salgan en móvil */
.index-shadow-box-games,
.index-games-container,
.index-latest-games-container,
.index-latest-games {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ajuste de las tarjetas en móvil */
@media (max-width: 768px) {
  .index-games-container {
    gap: 6px;
    padding: 0 5px;
  }

  .index-game-item {
    flex: 0 1 45%;   /* 2 juegos por fila */
    max-width: 48%;
  }

  .index-game-item img {
    width: 100%;
    height: auto;
  }

  /* Carrusel más compacto */
  .index-latest-games .index-carousel-game {
    flex: 0 0 100px; /* Más pequeño en pantallas chicas */
  }

  .index-latest-games .index-carousel-game img {
    border-radius: 6px;
  }

  .index-game-name {
    font-size: 12px;
  }

  .nav-arrow {
    font-size: 14px;
    padding: 4px;
  }
}






