@font-face {
  font-family: "GenericTechno"; /* Nombre de la fuente */
  src: url("media/GenericTechno.otf") format("opentype"); /* Ruta a tu archivo OTF */
}

.backBtn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9;
  width: 25px;
  background-color: rgb(255, 255, 255);
  border-radius: 100%;
  padding: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s;
}

.backBtn:hover {
  background-color: rgb(240, 240, 240);
}

body {
  margin: 0;

  position: relative;
  /* Asegura que el posicionamiento absoluto funcione correctamente */
  background-image: url("./media/espacio.jpg");
  font-family: "GenericTechno";
  background-size: cover;
  background-position: center;
  background-color: black;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  /* Ajusta el color y la opacidad del fondo oscuro */
  z-index: -1;
  /* Asegura que la capa esté detrás del contenido */
}

.contenedor {
  width: 100%;
  height: 800vh;
  text-align: center;
  overflow: hidden;
  max-width: 100vw;
}

body::-webkit-scrollbar {
  display: none;
}

.contenedor__animacion {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: column;
}

.nave-fuego {
  position: absolute;
  top: 80px;
  left: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  rotate: -50deg;
}

.nave {
  width: 50px;
  rotate: 180deg;
  z-index: 9;
  margin-top: -50px;
}

.fuego {
  width: 50px;
  margin-top: -50px;
}

.planeta {
  position: absolute;
  width: 300px;
  height: 300px;
  opacity: 0;
  z-index: -1;
}

.planeta1 {
  width: 500px;
  height: 500px;
  opacity: 1;
  left: -100px;
  top: -100px;
}

.title {
  color: white;
  position: absolute;
  top: 150px;
  right: -1300px;
  z-index: -1;
  & p {
    font-size: 50px;
    margin: 0;
  }
  & span {
    font-size: 50px;
    opacity: 0;
    background: linear-gradient(90deg, #4a69bb, #f64f59);
    -webkit-background-clip: text;
    color: transparent;
  }
}

.title2 {
  margin: 0;
  color: white;
  z-index: -1;
  position: absolute;
  text-align: end;
  top: 35vh;
  right: -1300px;
  font-size: 100px;
  color: transparent; /* Hacemos el texto transparente para que solo se vea el borde */
  -webkit-text-stroke: 1px; /* Ancho del borde */
  font-weight: light;
  -webkit-background-clip: text; /* Clip de fondo para que el gradiente solo afecte al texto */
  background-clip: text; /* Clip de fondo para que el gradiente solo afecte al texto */
  animation: movimiento 2s linear infinite alternate; /* Animación del movimiento */
}

@keyframes movimiento {
  from {
    -webkit-text-stroke-color: #4f86f7; /* Color inicial del borde */
    text-stroke-color: #4f86f7; /* Color inicial del borde */
  }
  to {
    -webkit-text-stroke-color: #f756a3; /* Color final del borde */
    text-stroke-color: #f756a3; /* Color final del borde */
  }
}

.luna {
  width: 600px;
  height: 600px;
  opacity: 1;
  right: 0;
  top: 100vh;
}

@media (max-width: 1199px) {
  .contenedor {
    height: 450vw;
  }
  .nave-fuego {
    rotate: -40deg;
  }
  .title {
    top: 35vh;
  }
  .title2 {
    top: 40vh;
    font-size: 70px;
  }
}

@media (max-width: 767px) {
  .contenedor {
    width: 100%;
    height: 350vh;
    text-align: center;
    overflow: hidden;
  }

  .nave-fuego {
    top: 80px;
    left: 100px;
    rotate: -18deg;
  }

  .nave {
    width: 20px;
    z-index: 9;
    margin-top: -20px;
  }

  .fuego {
    width: 20px;
    /* margin-top: -50px; */
  }

  .planeta1 {
    width: 500px;
    height: 500px;
    opacity: 1;
    left: -150px;
    top: -100px;
  }

  .title {
    top: 20vh;
    & p,
    & span {
      font-size: 8vw;
    }
  }

  .luna {
    width: 500px;
    height: 500px;
    opacity: 1;
    right: -100px;
    top: 200vh;
  }

  .title2 {
    top: 60vh;
    font-size: 8vw;
  }
}
