.index {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(/images/fondo1.webp);
  background-repeat: no-repeat;
  background-size: cover;
}

/* HEADER */
.index__header {
  display: flex;
  width: 100%;
  max-width: 50rem;
  padding: 1rem 0;
  gap: 0.5rem;
  z-index: 3;
  animation: rotation 2s;
}
.boton-whatsapp {
  width: auto;
  padding: 0.3em 0.5rem;
  text-align: center;
  font-size: 1.3rem;
}

.index__header-banderas {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.5rem;
}

.index_header-banderas-flag {
  width: 2.2rem;
  border-radius: 50%;
  box-shadow: var(--sombra);
  cursor: pointer;
}

/* HERO */
.index__hero-img {
  width: 100%;
  object-fit: contain;
  background: var(--color-degradado);
  max-width: 50rem;
  margin: 1rem 0 2rem;
  padding: 1rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
}

/* BOTONES */
.index__buttons {
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1;

  & > :nth-child(1) {
    width: 95%;
    animation: rotation 2s;
  }
  & > :nth-child(2) {
    width: 85%;
    animation: rotation 2s;
  }
  & > :nth-child(3) {
    width: 75%;
    animation: rotation 2s;
  }
  & > :nth-child(4) {
    width: 65%;
    animation: rotation 2s;
  }
  & > :nth-child(5) {
    width: 55%;
    animation: rotation 2s;
  }
  & > :nth-child(6) {
    width: 45%;
    animation: rotation 2s;
  }
}

.index__buttons-btn {
  width: 100%;
  padding: 0.4rem;
  background: var(--color-degradado);
  border: 2px solid var(--blanco);
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
  cursor: pointer;
}

.index__buttons-texto {
  font-size: 1.5rem;
  color: var(--color-primario);
  font-weight: 800;
  /* mayusculas */
  text-transform: uppercase;
}

/* ************************************************** */
/* MODAL */
/* ************************************************** */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  animation: modal 1.5s;
  animation-delay: 3s;
  animation-fill-mode: forwards;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  justify-content: center;
  align-items: center;
  z-index: 3;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.modal-img {
  width: 80dvw;
  max-width: 30rem;
  height: auto;
  object-fit: cover;
  display: block;
}

.modal-cerrar {
  position: absolute;
  top: 2rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--blanco);
  z-index: 4;
}

@keyframes modal {
  100% {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ************************************************** */
/* ANIMACIONES */
/* ************************************************** */
/* ----------------------------------------------
 * ----------------------------------------
 * animation slide-in-elliptic-left-bck
 * ----------------------------------------
 */
@-webkit-keyframes slide-in-elliptic-left-bck {
  0% {
    -webkit-transform: translateX(-800px) rotateY(-30deg) scale(6.5);
    transform: translateX(-800px) rotateY(-30deg) scale(6.5);
    -webkit-transform-origin: 200% 50%;
    transform-origin: 200% 50%;
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) rotateY(0) scale(1);
    transform: translateX(0) rotateY(0) scale(1);
    -webkit-transform-origin: -600px 50%;
    transform-origin: -600px 50%;
    opacity: 1;
  }
}
@keyframes slide-in-elliptic-left-bck {
  0% {
    -webkit-transform: translateX(-800px) rotateY(-30deg) scale(6.5);
    transform: translateX(-800px) rotateY(-30deg) scale(6.5);
    -webkit-transform-origin: 200% 50%;
    transform-origin: 200% 50%;
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) rotateY(0) scale(1);
    transform: translateX(0) rotateY(0) scale(1);
    -webkit-transform-origin: -600px 50%;
    transform-origin: -600px 50%;
    opacity: 1;
  }
}

/* MOVIMIENTO */
.movimiento {
  animation:
    slide-in-elliptic-left-bck 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both,
    glow 2s ease-in-out infinite 1.7s;
  width: 90dvw;
  max-width: 30rem;
  position: fixed;
  bottom: 9dvh;
  left: 10%;
  margin: auto;
  z-index: -1;

  @media (width > 960px) {
    right: 0;
  }
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(133, 132, 132, 0.8))
      drop-shadow(0 0 20px rgba(44, 112, 248, 0.5));
  }
}
