.index {
  width: 100%;
  height: 100dvh;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(/images/fondo.webp);
  background-repeat: no-repeat;
  /* 100% 100% estira la imagen para que SIEMPRE se vea completa dentro
     del dispositivo, aunque se deforme (en vez de cover, que recorta). */
  background-size: 100% 100%;
  background-position: center;
}

/* HEADER */
.index__header {
  width: 100%;
  max-width: 50rem;
  padding: 0.5rem;
  gap: 0.5rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Animaciones */
  animation: rotation 2s;
}

/* Botón RESERVAR del header — color/background/animación en styles1.css */
.index__boton-reservar {
  padding: 0.3em 0.5rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.index__header-banderas {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.7rem;
}
.index_header-banderas-flag {
  width: 2.2rem;
  border-radius: 50%;
  box-shadow: var(--sombra-invertida);
  cursor: pointer;
}
/* HERO */
.index__hero-img {
  width: 100%;
  object-fit: cover;
  max-width: 50rem;
  height: 12rem;
  margin: 1.5rem 0 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--sombra-invertida);
}

/* BOTONES */
.index__buttons {
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 1;
}
.index__buttons > :nth-child(1) {
  width: 95%;
  /* Animaciones */
  animation: rotation 2s;
}
.index__buttons > :nth-child(2) {
  width: 85%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(3) {
  width: 75%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(4) {
  width: 65%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(5) {
  width: 55%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(6) {
  width: 45%;
  animation: rotation 2s;
}
.index__buttons-btn {
  width: 100%;
  padding: 0.55rem 0.4rem;
  /* Panel claro estilo "ticket" del menú: crema → transparente */
  background: linear-gradient(
    -45deg,
    var(--color-acento) 0%,
    transparent 100%
  );
  border-radius: var(--border-radius);
  box-shadow: var(--sombra-invertida);
  cursor: pointer;
}
/* Iconos en imagen (SVG Material recoloreado al tema): mismo hueco/alineación
   que los <i> de Bootstrap que reemplazan. inline-block + width auto para
   anular el reset global (img { display:block; width:100% }) y que el icono
   quede a la IZQUIERDA del texto, no en una línea aparte. */
.index__buttons-icono {
  display: inline-block;
  height: 1.6rem;
  width: auto;
  margin-right: 0.5rem;
  vertical-align: middle;
  object-fit: contain;
}
.index__buttons-texto {
  font-size: 1.5rem;
  color: var(--color-secundario); /* verde sobre crema = alto contraste */
  font-weight: 800;
}
.easy-index {
  display: none;
}

/* ************************************************** */
/* MODAL GOOGLE MAPS */
/* ************************************************** */

/* Bloquear scroll cuando el modal está abierto */
body.menu-open {
  overflow: hidden;
}

/* Overlay del modal */
.maps-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  z-index: 15;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease-out,
    visibility 0.3s ease-out;
}

.maps-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Contenido del modal */
.maps-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 80vh;
  max-height: 600px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  opacity: 0;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
}

.maps-modal.active .maps-modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Botón cerrar (X) */
.maps-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(-55deg, #333 0%, #000 55%);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 16;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.maps-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Iframe del mapa */
.maps-container {
  width: 100%;
  height: 100%;
}

.maps-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Botón "Cómo llegar" */
.maps-directions-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(-55deg, #333 0%, #000 55%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 400;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  z-index: 16;
}

.maps-directions-btn:hover {
  transform: translateX(-50%) scale(1.05);
  color: #fff;
}

/* ----------------------------------------
   Animación rotate-scale-up-diag-2
   Aplicada al logo ".movimiento" en el index.
   ---------------------------------------- */
@-webkit-keyframes rotate-scale-up-diag-2 {
  0% {
    -webkit-transform: scale(1) rotate3d(-1, 1, 0, 0deg);
    transform: scale(1) rotate3d(-1, 1, 0, 0deg);
  }
  50% {
    -webkit-transform: scale(2) rotate3d(-1, 1, 0, 180deg);
    transform: scale(2) rotate3d(-1, 1, 0, 180deg);
  }
  100% {
    -webkit-transform: scale(1) rotate3d(-1, 1, 0, 360deg);
    transform: scale(1) rotate3d(-1, 1, 0, 360deg);
  }
}
@keyframes rotate-scale-up-diag-2 {
  0% {
    -webkit-transform: scale(1) rotate3d(-1, 1, 0, 0deg);
    transform: scale(1) rotate3d(-1, 1, 0, 0deg);
  }
  50% {
    -webkit-transform: scale(2) rotate3d(-1, 1, 0, 180deg);
    transform: scale(2) rotate3d(-1, 1, 0, 180deg);
  }
  100% {
    -webkit-transform: scale(1) rotate3d(-1, 1, 0, 360deg);
    transform: scale(1) rotate3d(-1, 1, 0, 360deg);
  }
}

/* ********************************************** */
/* MODAL BINGO / QUIZ (noches de martes) */
/* ********************************************** */
.bingo-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none; /* .activo lo pasa a flex desde el script */
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.bingo-modal.activo {
  display: flex;
}
.bingo-modal__img {
  width: 100%;
  max-width: 26rem;
  border-radius: var(--border-radius);
  box-shadow: var(--sombra-invertida);
}
.bingo-modal__cerrar {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50%;
  background: var(--color-primario);
  cursor: pointer;
  box-shadow: var(--sombra2);
}
.bingo-modal__cerrar img {
  width: 1.1rem;
  filter: invert(1); /* el icono cerrar.svg es oscuro: lo paso a blanco */
}

/* ********************************************** */
/* MOVIMIENTO — animación del logo del index */
.movimiento {
  animation: rotate-scale-up-diag-2 2s linear both;
  width: 70dvw;
  max-width: 30rem;
  position: fixed;
  bottom: 8dvh;
  left: 30%;
  margin: auto;
  z-index: -1;
  @media (width > 960px) {
    right: 0;
  }
}
