.game-info {
  max-height: 100%; /* o auto */
  overflow-y: auto;  /* si querés scroll cuando exceda */
  padding: 20px;
}

body.light .game-info {
  --text-color: #111;
}

body.dark .game-info {
  --text-color: #eee;
}

.steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding-left: 0;
  margin: 20px 0;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  position: relative;
}

.steps-list .step-number {
  counter-increment: step-counter;
  content: counter(step-counter);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 28px;
  min-height: 28px;
  background-color: red;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
z-index: 10000;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

/* Contenido del modal */
.modal-content {
  display: flex;
  width: 80%;
  max-width: 900px;
  height: 70vh;
  background-color: #222;
  color: #eee;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

body.light .modal-content {
  background-color: #ddd;
  color: #111;
}

/* Botón cerrar */
#enterModalClose {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

body.light #enterModalClose {
  color: #111;
}

#enterModalClose:hover {
  color: red;
}

/* Secciones izquierda y derecha */
.modal-left, .modal-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-left {
  background-image: url('media/modal/fondo.jpg'); /* tu imagen de fondo */
  background-size: cover;
  background-position: center;
  position: relative;
}

.chispa {
  position: absolute;
  bottom: 0;
  margin-left: -50px;
  width: 220px;
  height: 220px;
overflow:hidden;
  animation: subirChispa 2s linear infinite;
}

.chispa1 { left: 10%; animation-delay: 0s; }
.chispa2 { left: 40%; animation-delay: 0.5s; }
.chispa3 { left: 70%; animation-delay: 1s; }

@keyframes subirChispa {
  0% {
    bottom: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 150px; /* altura final */
    opacity: 0;
  }
}

/* HUMO */
.humo {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 480px;
  transform: translateX(-50%);
  opacity: 0;
  animation: subirHumo 6s linear infinite;
}

@keyframes subirHumo {
  0% {
    bottom: 0;
    opacity: 0;
    transform: translateX(-50%) scale(1);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    bottom: 200px; /* altura final */
    opacity: 0;
    transform: translateX(-50%) scale(1.2);
  }
}

.download-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 20px; /* bajarlo un poco */
  z-index: 1;
}

.download-btn {
  display: inline-block;
  width: 220px;   /* ajustá según tu imagen */
  height: 70px;
  background: url("media/modal/descargar.jpg") no-repeat center/contain;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.download-btn:hover {
  transform: scale(1.05); /* agrandamiento suave */
}

.modal-right {
  flex-direction: column;
  text-align: left;
  overflow-y: auto;
}

/* Scrollbar para todo el navegador (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track-bg, #ddd); /* track según modo */
}

::-webkit-scrollbar-thumb {
  background-color: #FF0000; /* rojo */
  border-radius: 10px;
  border: 2px solid var(--scrollbar-track-bg, #ddd);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #FF0000 var(--scrollbar-track-bg, #ddd);
}

#benefits-section {
    padding: 60px 40px;
    background: var(--news-shop-bg, #fff);
    color: var(--news-shop-color, #111);
    text-align: center;
  }

  #benefits-section h2 {
    font-size: 2rem;
    margin-bottom: 150px;
  }

  .benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 750px;
    margin: 0 auto;
    margin-top: 40px;
  }

  .benefit-box {
    background: #1a1a1a;
    color: white;
    padding: 30px 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s;
  }

  body.light .benefit-box {
    background: #eee;
    color: #111;
  }

  .benefit-box:hover {
    transform: translateY(-5px);
    background: red;
    color: white;
  }

  .benefit-box img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .benefit-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .benefit-box p {
    font-size: 0.95rem;
  }

body.light .benefit-box:hover {
  background: red; /* o el rojo que quieras */
  color: white;
}

/* Variables para scrollbar track según modo */
body.light {
  --scrollbar-track-bg: #ddd;
}

body.dark {
  --scrollbar-track-bg: #222;
}

/* Scrollbar para la sección de noticias */
.news {
  /* Firefox */
  padding-right: 16px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: red var(--scrollbar-track-bg);
}

/* Scrollbar para Chrome, Edge y Safari */
.news::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.news::-webkit-scrollbar-track {
  background: var(--scrollbar-track-bg);
}

.news::-webkit-scrollbar-thumb {
  background-color: red;
  border-radius: 10px;
  border: 2px solid var(--scrollbar-track-bg);
}


body.light #gallery-section {
  background-color: #ddd;
  color: #111; /* para el texto, por ejemplo el título */
}

body.dark #gallery-section {
  background-color: #222; /* fondo oscuro */
  color: #eee; /* texto claro */
}

body.light #gallery-section h4 {
  color: #222;
}

body.dark #gallery-section h4 {
  color: #eee; /* o cualquier color cálido para que resalte */
}

#gallery-section h4 {
  text-align: center;
}

#gallery-section {
  background-color: #ddd;
  padding: 40px 20px 40px 20px; /* más padding abajo para separación */
  width: 100%;
  box-sizing: border-box;
}

#gallery-section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: red;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 240px); /* 4 columnas de 240px fijas */
  gap: 25px;
  max-width: calc(4 * 240px + 3 * 15px); /* 4 imágenes + 3 gaps */
  width: 100%;
  margin: 40px auto; /* margen para separar y centrar */
  padding: 0 20px; /* un poco de espacio lateral */
  justify-content: center; /* centra las columnas dentro del contenedor si sobra espacio */
}

.gallery-item {
  width: 240px;
  height: 180px;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  /* quitá transform: scale(1.1); de acá */
}

.gallery-item:hover {
  transform: scale(1.5);
}


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* importante para que la imagen respete el borde redondeado */
  display: block;
  transition: transform 0.4s ease;
}

/* Opcional: hover para agrandar suavemente */
.gallery-item:hover img {
  z-index: 10; /* que quede arriba */
}

#privacy-policy {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background-color: var(--policy-bg, #fff);
  color: var(--policy-color, #111);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  font-family: 'Rubik', sans-serif;
  line-height: 1.6;
  user-select: text;
}

#privacy-policy h1 {
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
}

#privacy-policy h2 {
  font-weight: 600;
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 12px;
}

#privacy-policy p,
#privacy-policy ul {
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 16px;
}

#privacy-policy ul {
  padding-left: 20px;
  list-style-type: disc;
}

#privacy-policy a {
  color: red;
  text-decoration: underline;
}

body.light {
  --policy-bg: #ddd;
  --policy-color: #111;
}

body.dark {
  --policy-bg: #222;
  --policy-color: #eee;
}


#control-box {
  display: flex;
  align-items: center;
  padding: 0px 8px;
  background: #ddd; /* fondo oscuro fijo */
  border-radius: 30px; /* forma ovalada */
  backdrop-filter: blur(5px);
}

/* Para dark mode */
body.dark #control-box {
  background: #121212;
}

#volumeSlider {
  width: 50px;       /* Largo */
  height: 17px;       /* Grosor de la barra */
  cursor: pointer;
  accent-color: red; /* si querés un color personalizado en navegadores modernos */
}

#playBtn {
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
width: 30px; /* fijá un ancho que funcione para los emojis */
margin-top: -5px;
  text-align: center;
  transition: transform 0.2s ease;
}
#playBtn:hover {
  transform: scale(1.1);
}

#playBtn:focus {
  outline: none;
}

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html,
    body {
      font-family: "Rubik", sans-serif;
      transition: background-color 0.3s, color 0.3s;
    }
    body.light {
      background-color: #f9f9f9;
      color: #111;
    }
    body.dark {
      background-color: #121212;
      color: #eee;
    }
    a {
      color: inherit;
      text-decoration: none;
      transition: color 0.3s;
      cursor: pointer;
    }
    a:hover {
      color: red;
    }

    /* Header 1 */
    header#top-bar {
      height: 42px;
      position: fixed;
      width: 100%;
      top: 0;
      background: var(--top-bar-bg, #333);
      color: var(--top-bar-color, #fff);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
      z-index: 9999;
      font-size: 14px;
    }

    /* Header 2 */
    header#main-bar {
  height: 75px;
  position: fixed;
  top: 42px;
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.5); /* versión clara */
  color: var(--main-bar-color, #111);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 9998;
}

body.dark header#main-bar {
  background-color: rgba(0, 0, 0, 0.5); /* versión oscura */
  color: var(--main-bar-color, #fff);
}

header#main-bar nav a {
  position: relative;
  margin-left: 20px;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

header#main-bar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -28px;
  width: 0;
  height: 2px;
  background-color: red;
  transition: width 0.3s ease;
}

header#main-bar nav a:hover::after {
  width: 100%;
}

header#main-bar nav a:hover {
  color: var(--clr-red);
}

    nav a {
      margin-left: 20px;
      font-weight: 500;
    }

    #slider-section {
      margin-top: 42px;
      height: calc(100vh - 110px);
      overflow: hidden;
      position: relative;
    }

    .slider-container {
  position: relative;
  background-color: #111; /* o el color oscuro que tenga el diseño */
  overflow: hidden;
      width: 100%;
      height: 80%;
      position: relative;
    }

    .slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none; /* que no interfiera en clicks */
}

.slider-image.active {
  opacity: 1;
  pointer-events: auto; /* la activa sí responde */
  z-index: 1;
}

.slide-text {
  position: absolute;
  bottom: 50px;
  left: 50px;
  color: white;
  text-shadow: 0 0 5px black;
  z-index: 2;
}

.slide-text h2 {
  font-size: 36px;
  margin: 0;
}

.slide-text p {
  font-size: 18px;
}

    .thumbnails {
      display: flex;
      justify-content: center;
      height: 20%;
    }

.thumbnail {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 75px;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s, color 0.3s;
  background-size: cover;
  background-position: center;
  color: white;
}

/* Fondo e imagen hover por defecto (modo oscuro) */
body.dark .thumbnail {
  background-image: url('media/slider/thumbnail-dark.jpg'); /* fondo normal noche */
  color: #eee;
}
body.dark .thumbnail:hover {
  background-image: url('media/slider/thumbnail-hover.jpg'); /* fondo hover noche */
  color: white;
}

/* Fondo e imagen hover para modo claro */
body.light .thumbnail {
  background-image: url('media/slider/thumbnail-light.jpg'); /* fondo normal día */
  color: #111;
}
body.light .thumbnail:hover {
  background-image: url('media/slider/thumbnail-hover.jpg'); /* fondo hover día */
  color: #111; /* o blanco si querés que resalte más */
}

/* texto dentro del thumbnail */
.thumbnail span {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

body.light .thumbnail:hover {
  flex: 1;
  text-align: left;
  font-weight: 600;
color: #ffffff;
}

/* imagen interna del thumbnail */
.thumbnail img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-left: 10px;
  user-select: none;
}







    .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  user-select: none;
  transition: background-color 0.3s ease;
  z-index: 10; /* asegurate que sea más alto que el slider */
}
.arrow:hover {
  background: red;
  transition: background-color 0.3s ease;
}
    .arrow.left {
  background: url('media/slider/flecha-izquierda.jpg') no-repeat center;
left: 20px;
}
    .arrow.right {
  background: url('media/slider/flecha-derecha.jpg') no-repeat center;
right: 20px;
}

.arrow {
  color: transparent; /* ocultamos el ícono de flecha por defecto */
}

.shop-box .shop-icon {
  transition: transform 0.3s ease;
}

.shop-box:hover .shop-icon {
  transform: scale(1.6);
}

    #news-shop {
      display: flex;
      height: 64vh;
      padding: 50px;
      gap: 20px;
      background: var(--news-shop-bg, #fff);
      color: var(--news-shop-color, #000);
      user-select: none;
    }

    /* Noticias izquierda */
    .news {
      flex: 2;
      display: flex;
      flex-direction: column;
      gap: 14px;
      overflow-y: auto;
      border-right: 2px solid red;
      padding-right: 20px;
    }

    .news-item {
      padding: 12px 10px;
      border-radius: 6px;
      background: var(--news-item-bg, #222);
      cursor: pointer;
      box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
      transition: background-color 0.3s;
    }
    body.light .news-item {
      background: #ddd;
      color: #222;
    }

    body.light .news-item:hover {
      background: red;
      color: white;
    }
    body.dark .news-item {
      background: #222;
      color: #eee;
    }
    body.dark .news-item:hover {
      background: red;
      color: white;
    }

#popup {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* para que no interfiera al estar oculto */
  transition: opacity 0.3s ease;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex; /* lo mantenemos para centrar contenido */
}

#popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
    #popup-content {
      background: white;
      color: #111;
      padding: 25px;
      border-radius: 8px;
      max-width: 600px;
      max-height: 70vh;
      overflow-y: auto;
      position: relative;
    }
    body.dark #popup-content {
      background: #222;
      color: #eee;
      box-shadow: 0 0 15px red;
    }
    #popup-close {
      position: absolute;
      top: 10px;
      right: 15px;
      cursor: pointer;
      font-size: 22px;
      font-weight: bold;
      user-select: none;
      color: #444;
    }
    body.dark #popup-close {
      color: #ddd;
    }
    #popup-close:hover {
      color: red;
    }

.shop-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  user-select: none;
}

.shop-box {
  position: relative; /* para que funcione el absolute interno */
  overflow: hidden;
  padding: 33px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
  background-image: url('media/promo/background.png');
}

.shop-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: filter 0.3s ease;
  border-radius: 8px;
}

.shop-box:hover::before {
  filter: blur(9px);
}

.shop-box:hover {
  transform: scale(1.1);
  background-blend-mode: overlay;
}

#news-shop > div.shop-items > div:nth-child(1) > div,
#news-shop > div.shop-items > div:nth-child(2) > div,
#news-shop > div.shop-items > div:nth-child(3) > div,
#news-shop > div.shop-items > div:nth-child(4) > div {
  margin-top: 100%;
}

.shop-box img {
  width: 135px;
  height: 135px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

#video-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  user-select: none;
  color: var(--video-section-color, #fff);
  transition: background-color 0.3s, color 0.3s;
  flex-direction: column;

  background: url('media/cta/video-poster.jpg') center/cover no-repeat; /* imagen de fallback */
}

#video-section video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  z-index: -1;
}

#video-section .content {
  position: relative;
  z-index: 1;
}

#video-section p {
  margin-top: 12px;
  font-weight: 600;
  font-size: 18px;
  user-select: text;
}


    /* Ocultamos el fondo original del botón */
.cta-button {
  font-family: 'Rubik', sans-serif;
  /* el resto de estilos que ya tenés */
  color: white;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  line-height: 60px; /* si tu botón mide 60px de alto */
  background: none;
  border: none;
  cursor: pointer;
  width: 200px;
  height: 60px;
  background-image: url('media/cta/boton-cta.png');
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
margin-top: 35px;
}

/* Imagen al hacer hover */
.cta-button:hover {
  background-image: url('media/cta/boton-cta-hover.jpg'); /* imagen hover */
}

    /* Footer */
    footer {
      background: var(--footer-bg, #111);
      color: var(--footer-color, white);
      padding: 40px 20px 25px 20px;
      text-align: center;
      user-select: none;
      transition: background-color 0.3s, color 0.3s;
    }
    .footer-container {
      display: flex;
      justify-content: center;
      gap: 85px;
      flex-wrap: wrap;
      max-width: 960px;
      margin: 0 auto;
    }
    .footer-section {
      min-width: 150px;
      text-align: left;
    }
    .footer-section h4 {
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 15px;
      user-select: text;
    }
    .footer-section a {
      display: block;
      margin-bottom: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: color 0.3s;
    }
    .footer-section a:hover {
      color: red;
    }

.footer-section a {
  position: relative;
  padding-left: 12px; /* espacio para la línea */
  transition: color 0.3s;
}

.footer-section a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: red;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.footer-section a:hover::before {
  width: 2px;
}

.footer-section a:hover {
  color: red;
}
    .copyright {
      margin-top: 25px;
      font-size: 13px;
      color: #aaa;
      user-select: none;
    }

#mode-toggle img {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
  transform: translateY(2px);
}

#mode-toggle:hover img {
  transform: scale(1.1);
}


    /* Botón modo día/noche */
    #mode-toggle {
      background: transparent;
      border: 1px solid currentColor;
      border-radius: 15px;
      padding: 2px 10px;
      font-size: 12px;
      cursor: pointer;
      transition: all 0.3s ease;
      user-select: none;
      color: inherit;
    }
    #mode-toggle:hover {
      transform: scale(1.1);
      background: rgba(255 165 0 / 0.2);
  transform: translateY(3px);
    }
    #mode-toggle:active {
      transform: scale(0.95);
    }

.register-link {
  border: 1px solid red;
  color: red;
  padding: 4px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.register-link:hover {
  background-color: red;
  color: white;
}