.index {
  width: 100%;
  height: 100dvh;
  background-image: url(/images/fondo3.webp);
  background-size: 22rem;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
/* HEADER */
.index__header {
  width: 100%;
  max-width: 50rem;
  padding-top: 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 */
.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;
  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: 1rem;
  z-index: 1;
}
.index__buttons > :nth-child(1) {
  width: 93%;
  /* Animaciones */
  animation: rotation 2s;
}
.index__buttons > :nth-child(2) {
  width: 83%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(3) {
  width: 73%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(4) {
  width: 63%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(5) {
  width: 53%;
  animation: rotation 2s;
}
.index__buttons > :nth-child(6) {
  width: 43%;
  animation: rotation 2s;
}
.index__buttons-btn {
  width: 100%;
  padding: 0.3rem;
  background: var(--color-degradado2);
  border-radius: var(--border-radius);
  box-shadow: var(--sombra);
  cursor: pointer;
}
.index__buttons-texto {
  font-size: 1.2rem;
  font-weight: 500;
}
/* .index__buttons-whatsapp {
  width: 2rem;
  display: inline;
  margin: 0 0.2rem;
  margin-bottom: -0.5rem;
} */
.easy-index {
  display: flex;
}

/* 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;
}

/* Imágenes de Platos */
.index__plato-food {
  width: 100%;
  max-width: 35rem;
  position: absolute;
  bottom: 2rem;
  z-index: -1;
}
.index__plato-cover {
  width: 100%;
  max-width: 35rem;
  position: absolute;
  bottom: 5%;
  right: 0;
  /* Animación */
  animation: slide-out-tr 2s cubic-bezier(0.55, 0.085, 0.68, 0.53) 3s both;
}
@-webkit-keyframes slide-out-tr {
  0% {
    -webkit-transform: translateY(0) translateX(0);
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateY(-1000px) translateX(1000px);
    transform: translateY(-1000px) translateX(1000px);
    opacity: 0;
  }
}
@keyframes slide-out-tr {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-1000px) translateX(1000px);
    opacity: 0;
  }
}
/* Efecto humo */
.index__smoke-wrap {
  position: absolute;
  width: 10rem;
  right: 1.5rem;
  bottom: 7rem;
  animation: humo;
  animation-delay: 3.7s;
  animation-fill-mode: forwards;
  visibility: hidden;
  opacity: 0;
}
@keyframes humo {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.smoke,
.smoke2,
.smoke3 {
  filter: blur(5px);
  transform-origin: 50% 50%;
}

.smoke {
  animation: smoke1 2s ease-in infinite;
  animation-delay: 0.5s;
}

.smoke2 {
  animation: smoke2 3s ease-in infinite;
  animation-delay: 1.5s;
}

.smoke3 {
  width: 500px;
  animation: smoke3 4s ease-in infinite;
  animation-delay: 2.5s;
}

@keyframes smoke1 {
  0% {
    filter: blur(0px);
    transform: translateY(0px) scale(-1, 1);
    opacity: 0;
  }

  25% {
    filter: blur(3px);
    transform: translateY(-10px) scale(-1, 1.05);
    opacity: 0.5;
  }

  50% {
    filter: blur(5px);
    transform: translateY(-20px) scale(-1, 1.1);
    opacity: 1;
  }

  75% {
    filter: blur(5px);
    transform: translateY(-30px) scale(-1, 1.15);
    opacity: 0.5;
  }

  100% {
    filter: blur(7px);
    transform: translateY(-40px) scale(-1, 1.2);
    opacity: 0;
  }
}

@keyframes smoke2 {
  0% {
    filter: blur(0px);
    transform: translateY(0px) scale(1);
    opacity: 0;
  }

  25% {
    filter: blur(3px);
    transform: translateY(-10px) scale(1.05);
    opacity: 0.5;
  }

  50% {
    filter: blur(5px);
    transform: translateY(-20px) scale(1.1);
    opacity: 1;
  }

  75% {
    filter: blur(5px);
    transform: translateY(-30px) scale(1.15);
    opacity: 0.5;
  }

  100% {
    filter: blur(7px);
    transform: translateY(-40px) scale(1.2);
    opacity: 0;
  }
}

@keyframes smoke3 {
  0% {
    filter: blur(0px);
    transform: translateY(0px) scale(1);
    opacity: 0;
  }

  25% {
    filter: blur(3px);
    transform: translateY(-20px) scale(1.05);
    opacity: 0.5;
  }

  50% {
    filter: blur(5px);
    transform: translateY(-40px) scale(1.1);
    opacity: 1;
  }

  75% {
    filter: blur(5px);
    transform: translateY(-60px) scale(1.15);
    opacity: 0.5;
  }

  100% {
    filter: blur(7px);
    transform: translateY(-80px) scale(1.2);
    opacity: 0;
  }
}

/* MODAL ADVERT*/
.modal__index {
  position: absolute;
  top: 0;
  width: 100dvw;
  height: 100dvh;
  padding: 5vw;
  animation: modal 1.5s;
  animation-delay: 4s;
  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;
  }
}

/* *************** @MEDIA QUERIES ********************* */
@media only screen and (min-width: 550px) {
  .index__plato-cover,
  .vapour {
    display: none;
  }
  .smoke,
  .smoke2,
  .smoke3 {
    display: none;
  }
}
