/* =====================================================
   SENAVERSO
   SECCIÓN INTERACTIVA / ACCESO AL MINIJUEGO
===================================================== */


/* =====================================================
   SECCIÓN
===================================================== */

.juego-senaverso-section {
  padding: 20px 0 25px;
}


/* =====================================================
   ESCENARIO
   VERSIÓN ESCRITORIO
===================================================== */

.juego-senaverso-banner {
  position: relative;

  min-height: 270px;

  overflow: hidden;

  background-image:
    url("../assets/juego-senaverso-fondo.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 22px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.12);
}


/* =====================================================
   INFORMACIÓN
   VERSIÓN ESCRITORIO
===================================================== */

.juego-senaverso-info {
  position: relative;

  z-index: 5;

  width: 34%;
  min-width: 290px;

  padding: 35px 30px;

  color: white;
}


/* Título principal */

.juego-senaverso-info h2 {
  margin-top: 0;
  margin-bottom: 3px;

  color: white;

  font-size: 1.7rem;
  font-weight: 900;

  line-height: 1.05;
}


/* Subtítulo */

.juego-senaverso-info h3 {
  margin-top: 0;
  margin-bottom: 12px;

  color: var(--verde-claro);

  font-size: 1.15rem;
  font-weight: 800;

  line-height: 1.2;
}


/* =====================================================
   DESCRIPCIÓN DE ESCRITORIO

   Esta clase debe estar en el <p> que actualmente
   aparece dentro del escenario.
===================================================== */

.juego-texto-desktop {
  max-width: 300px;

  margin-top: 0;
  margin-bottom: 14px;

  color: white;

  font-size: 0.87rem;

  line-height: 1.4;
}


/* =====================================================
   TEXTO PARA MÓVIL

   En escritorio permanece oculto.

   Este elemento debe estar FUERA de
   .juego-senaverso-banner, pero dentro del container.
===================================================== */

.juego-texto-mobile {
  display: none;
}


/* =====================================================
   BOTÓN JUGAR
   VERSIÓN ESCRITORIO

   En escritorio conserva su comportamiento normal
   dentro de .juego-senaverso-info.
===================================================== */

.btn-jugar-senaverso {
  position: static;

  margin-top: 8px;

  padding: 10px 22px;

  font-weight: 800;

  box-shadow:
    0 5px 15px rgba(87, 197, 20, 0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.btn-jugar-senaverso:hover {
  transform:
    translateY(-2px)
    scale(1.02);

  box-shadow:
    0 8px 20px rgba(87, 197, 20, 0.32);
}


/* =====================================================
   PERSONAJE INTERACTIVO - LIAN

   IMPORTANTE:
   No centramos el personaje mediante transform porque
   lian-scroll.js utiliza transform para desplazarlo
   horizontalmente según el scroll.
===================================================== */

.lian-scroll {
  position: absolute;

  left: 20px;
  bottom: 8px;

  z-index: 4;

  width: 90px;
  height: auto;

  pointer-events: none;

  image-rendering: pixelated;

  will-change: transform;

  transform:
    translate3d(0, 0, 0);

  transition:
    transform 0.08s linear;
}


/* =====================================================
   RESPONSIVE
   MÓVIL / TABLET / PANTALLAS ESTRECHAS
===================================================== */

@media screen and (max-width: 991.98px) {

  /* Garantizamos que el banner sea el contenedor de referencia */
  .juego-senaverso-banner {
    position: relative !important;
    min-height: 430px;
    overflow: hidden;
    /* Le agregamos ?v=2 o un timestamp a la ruta de la imagen */
    background-image: url("../assets/juego-senaverso-fondo-mobile.jpg?v=2") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 22px;
  }

  /* El contenedor info se vuelve estático para que el botón 
     absoluto tome como referencia .juego-senaverso-banner */
  .juego-senaverso-info {
    position: static !important;
    width: 100%;
    min-width: 0;
    padding: 22px 20px 100px;
    color: white;
  }

  /* Título Móvil */
  .juego-senaverso-info h2 {
    max-width: 290px;
    margin-bottom: 5px;
    color: white;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  }

  /* Subtítulo Móvil */
  .juego-senaverso-info h3 {
    max-width: 290px;
    margin-bottom: 0;
    color: var(--verde-claro);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.40);
  }

  /* Ocultar texto desktop */
  .juego-texto-desktop {
    display: none !important;
  }

  /* Mostrar texto móvil debajo del banner */
  .juego-texto-mobile {
    display: block !important;
    width: 100%;
    margin-top: 10px;
    padding: 16px 18px;
    color: white;
    background: linear-gradient(135deg, #7247dc, #5420b5);
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  /* Botón móvil fijado a la esquina inferior izquierda del banner */
  .btn-jugar-senaverso {
    position: absolute !important;
    left: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    right: auto !important;
    z-index: 30;
    margin: 0 !important;
    padding: 9px 15px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.30);
  }

  /* Personaje Lian en móvil */
  .lian-scroll {
    left: 14px;
    bottom: 60px;
    z-index: 10;
    width: 70px;
    height: auto;
    image-rendering: pixelated;
  }
}
