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

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

.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 */
.cont-img {
  width: 100%;
  max-width: 50rem;
  height: 7rem;
  margin: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primario);
}
.cont-img img {
  width: 100%;
  border-radius: var(--border-radius);
}

.house-index {
  width: 100%;
  max-width: 50rem;
  & img {
    width: 9rem;
    margin-top: 1.5rem;
  }
}

/* BOTONES */
.index__buttons {
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  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.4rem;
  background: var(--color-degradado2);
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
  cursor: pointer;
}
.index__buttons-texto {
  font-size: 1.3rem;
  color: var(--negro);
}
.easy-index {
  display: flex;
}

/* ********************************************** */
/* MOVIMIENTO */
.movimiento {
  animation: tilt-in-fwd-tl 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  width: 55dvw;
  max-width: 25rem;
  position: fixed;
  bottom: 6.5rem;
  left: 47%;
  margin: auto;
  z-index: -1;
}

/**
 * ----------------------------------------
 * animation tilt-in-fwd-tl
 * ----------------------------------------
 */
@-webkit-keyframes tilt-in-fwd-tl {
  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-tl {
  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;
  }
}

/* ********************************************** */
/* MANDALA */
.mandala {
  animation: 60s rotate linear infinite;
  transform-origin: 50% 50%;
  /*  */
  width: 95dvw;
  max-width: 30rem;
  position: fixed;
  bottom: 1rem;
  left: 32%;
  margin: auto;
  z-index: -1;
}
/* Mandala giratorio */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
  }
}

/* ******************************************************* */
/* ******************************************************* */

/* MediaQuerys */
@media (min-width: 768px) {
  .anuncio {
    max-width: 25dvw;
  }
  .cont-img {
    height: 12rem;
  }
}

/* ************************************************** */
/* MODAL*/
/* ************************************************** */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: modal 1.5s;
  animation-delay: 3s;
  animation-fill-mode: forwards;
  visibility: hidden;
  opacity: 0;
  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);
  padding: 0 10%;
}
.bi-arrow-right {
  font-size: 1rem;
}
.contenedor-img {
  border-radius: 16px;
  background-color: aliceblue;
}
.modal-img {
  width: 100%;
  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;
  }
}
