.index {
  width: 100%;
  height: 100dvh;
  /* Fondo fijo con pseudo-elemento porque Safari ignora background-attachment: fixed */
  &::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url(/images/fondo.webp) center / cover no-repeat;
  }
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
/* HEADER */
.index__header {
  width: 100%;
  max-width: 50rem;
  padding-top: 0.5rem;
  gap: 0.5rem;
  z-index: 3;
  /* Animaciones */
  animation: rotation 2s;
  display: flex;
}
/* Idioma Seleccionado */
.idioma__seleccionado {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.idioma__seleccionado img {
  width: 1.5rem;
}

.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);
  cursor: pointer;
}
/* HERO */
.index__hero {
  width: 100%;
  max-width: 50rem;
  background: var(--color-degradado2);
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
}
.index__hero-img {
  width: 100%;
  height: auto;
  max-height: 10rem;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--border-radius);
  /* Efecto glow pulsante */
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
  animation: glowLight 4s ease-in-out infinite;
}

.cont__botones {
  width: 100%;
}
.cont__img {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  animation: rotation 2s;
}
.cont__img:nth-child(2) {
  justify-content: center;
}
.index__img {
  width: clamp(9rem, 25vw, 9rem);
  display: inline-block;
  margin: 0 auto;
  /* Efecto glow pulsante */
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
  animation: glowLight 4s ease-in-out infinite;
}

@keyframes glowLight {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  }
  25% {
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff)
      drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))
      drop-shadow(0 0 8px rgba(255, 255, 255, 0.3))
      drop-shadow(0 0 15px rgba(255, 255, 255, 0.1)) brightness(1.2);
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
  }
}
.easy-index {
  display: flex;
}
.rotar {
  animation: rotation 2s;
}

/* ELEMENTOS CON POSITION: ABSOLUTE */

/* LOGO DE FONDO */
.index__cont-logo-fondo {
  width: 100%;
  height: 100dvh;
  max-width: 50rem;
  position: absolute;
}
.index__logo-fondo {
  width: 12rem;
  max-width: 30rem;
  position: absolute;
  bottom: 8rem;
  right: 0.5rem;
  z-index: -2;
}

/* MODAL ADVERT*/
.modal__index {
  position: absolute;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  padding: 5vw;
  animation: modal 1.5s;
  animation-delay: 3s;
  animation-fill-mode: forwards;
  visibility: hidden;
  opacity: 0;
  z-index: 3;
  background-color: #050505d6;
}
.modal__index-img {
  border-radius: var(--border-radius);
  /* centrar imagen con position absolute */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 25rem;
  height: auto;
  object-fit: contain;
}
/* Botón cerrar */
.cerrar-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 2;
  font-size: 2rem;
  cursor: pointer;
  color: var(--blanco);
}
@keyframes modal {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

/* ========================================== */
/* MODAL GOOGLE MAPS */
/* ========================================== */
body.menu-open {
  overflow: hidden;
}

.maps-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  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;
}

.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;
}

.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);
}

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

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

.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);
}

/* *************** @MEDIA QUERIES ********************* */
@media only screen and (max-width: 550px) {
  .index__plato-food,
  .index__plato-cover,
  .vapour {
    display: block;
  }
}
@media only screen and (min-width: 640px) {
  .index {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
  }
}
