.index {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* HEADER */
.index__header {
  width: 100%;
  max-width: 50rem;
  padding-top: 0.5rem;
  gap: 0.5rem;
  z-index: 3;
  animation: rotation 2s;
  animation-fill-mode: forwards;
}

.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(--sombra2);
  cursor: pointer;
}

/* HERO */
.index__hero {
  width: 100%;
  max-width: 50rem;
  background: var(--color-degradado2);
  border-radius: var(--border-radius);
  box-shadow: var(--sombra2);
  margin: 3rem;
}

.index__hero-img {
  width: 100%;
  height: auto;
  max-height: 10rem;
  margin: 0 auto;
  padding: 0.5rem;
  object-fit: contain;
  border-radius: var(--border-radius);
}

/* BOTONES */
.index__buttons {
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 1;
  color: var(--color-primario);
}

.index__buttons > :nth-child(1) {
  width: 93%;
  animation: rotation 2s;
  animation-fill-mode: forwards;
}

.index__buttons > :nth-child(2) {
  width: 83%;
  animation: rotation 2s;
  animation-fill-mode: forwards;
}

.index__buttons > :nth-child(3) {
  width: 73%;
  animation: rotation 2s;
  animation-fill-mode: forwards;
}

.index__buttons > :nth-child(4) {
  width: 63%;
  animation: rotation 2s;
  animation-fill-mode: forwards;
}

.index__buttons > :nth-child(5) {
  width: 53%;
  animation: rotation 2s;
  animation-fill-mode: forwards;
}

.index__buttons > :nth-child(6) {
  width: 43%;
  animation: rotation 2s;
  animation-fill-mode: forwards;
}

.index__buttons-btn {
  width: 100%;
  padding: 0.7rem;
  background: var(--color-degradado2);
  border-radius: var(--border-radius);
  box-shadow: var(--sombra2);
  cursor: pointer;
}

.index__buttons-texto {
  font-size: 1.6rem;
  font-weight: 500;
}

/* LOGO MOVIMIENTO*/
.index__cont-logo-fondo {
  width: 100%;
  height: 100dvh;
  max-width: 50rem;
  position: absolute;
}

.index__logo-fondo {
  width: 50%;
  position: absolute;
  bottom: 10dvh;
  right: 1rem;
}

/* Animación tilt-in-fwd-tr */
.tilt-in-fwd-tr {
  -webkit-animation: tilt-in-fwd-tr 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s
    both;
  animation: tilt-in-fwd-tr 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@-webkit-keyframes tilt-in-fwd-tr {
  0% {
    -webkit-transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px)
      skew(-35deg, 10deg);
    transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px)
      skew(-35deg, 10deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
    transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
    opacity: 1;
  }
}

@keyframes tilt-in-fwd-tr {
  0% {
    -webkit-transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px)
      skew(-35deg, 10deg);
    transform: rotateY(20deg) rotateX(35deg) translate(300px, -300px)
      skew(-35deg, 10deg);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
    transform: rotateY(0) rotateX(0deg) translate(0, 0) skew(0deg, 0deg);
    opacity: 1;
  }
}

/* ========================================== */
/* MODAL GOOGLE MAPS */
/* ========================================== */
.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: 45px;
  height: 45px;
  background: #fff;
  border: none;
  border-radius: var(--border-radius);
  color: var(--color-primario);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 16;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--sombra2);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.maps-modal-close:hover {
  transform: 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.7rem 1.5rem;
  background: #fff;
  color: var(--color-primario);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 1.2rem;
  box-shadow: var(--sombra2);
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  z-index: 16;
}

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

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