@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&family=Nunito:wght@300;600&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

html, body {
  height: 100%;
  overflow-y: auto; /* Permitir scroll vertical */
  scroll-behavior: smooth;
}

body {
  background-image: radial-gradient(
      circle at 20% 100%,
      rgba(184, 184, 184, 0.1) 0%,
      rgba(184, 184, 184, 0.1) 33%,
      rgba(96, 96, 96, 0.1) 33%,
      rgba(96, 96, 96, 0.1) 66%,
      rgba(7, 7, 7, 0.1) 66%,
      rgba(7, 7, 7, 0.1) 99%
    ),
    linear-gradient(40deg, #040a22, #162561, #202e64, #6f7aa6);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed; /* Fondo fijo al hacer scroll */
}

section {
  display: grid;
  grid-template-columns: 50% 45%;
  place-items: center;
  gap: 60px;
  min-height: 100vh;
  padding: 20px 60px;
  position: relative;
  z-index: 1;
}

/* CONTENT */
.content {
  max-width: 600px;
  position: relative;
  z-index: 5;
}

.content h1 {
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  margin-bottom: 36px;
  color: #fff;
}

.text-image {
  font-size: 50px;
  font-weight: bold;
  font-size: 2.5rem;
  text-transform: uppercase;
  background-image: url('imagenes/galaxy.png'); 
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 10px rgba(253, 253, 253, 0.18); 
}

.text-image2 {
  font-size: 50px;
  font-weight: bold;
  font-size: 2.5rem;
  text-transform: uppercase;
  background-image: url('imagenes/galax.jpg'); 
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 10px rgba(253, 253, 253, 0.18); 
}

.content p {
  font-size: clamp(1rem, 4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #fff;
}

.content button {
  background: #eaeaea;
  color: #202134;
  font-size: clamp(0.9rem, 4vw, 1rem);
  font-weight: 600;
  border: 0;
  outline: 0;
  padding: 8px 14px;
  border-radius: 7px;
  transform: scale(1);
  transition: all 0.4s ease-in;
  cursor: pointer;
}

.content button:is(:hover, :focus) {
  transform: scale(0.98);
  background-color: #6f7aa6;
  color: #eaeaea;
}

/* SLIDER */
.swiper {
  position: relative;
  width: 400px;
  height: 490px;
  z-index: 2;
}

.swiper-wrapper {
  height: 100%;
  transition: transform 0.3s ease;
}

.swiper-slide {
  position: relative;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  user-select: none;
  border-radius: 20px;
  height: 490px;
  overflow: hidden;
}

.cost {
  position: absolute;
  top: 8px;
  right: 6px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  padding: 6px 10px;
  color: #fff;
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  font-weight: 600;
  z-index: 3;
}

.dark-text {
  color: #202134;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  padding: 10px 20px;
  background: rgba(93, 95, 145, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.overlay h1 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 600;
}

.overlay p {
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  font-weight: 300;
  line-height: 1.3;
}

.ratings {
  display: flex;
  column-gap: 10px;
  margin-top: 10px;
}

.ratings span {
  font-size: clamp(0.8rem, 4vw, 0.9rem);
  font-weight: 300;
}

.star {
  color: #afe312;
}

@media (max-width: 1050px) {
  .swiper {
    width: 350px;
    height: 450px;
  }
  
  .swiper-slide {
    height: 450px;
  }
}

@media (max-width: 930px) {
  section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    height: auto;
    min-height: 100vh;
  }

  .content {
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
  }

  .swiper {
    margin-top: 20px;
    margin-bottom: 40px;
  }
}

@media (max-width: 470px) {
  section {
    padding: 30px 15px;
    gap: 30px;
  }

  .swiper {
    width: 300px;
    height: 400px;
  }
  
  .swiper-slide {
    height: 400px;
  }
  
  .content h1 {
    margin-bottom: 20px;
  }
  
  .content p {
    margin-bottom: 20px;
  }
  
  .overlay {
    height: 140px;
  }
}

  /* Wrapper para el menú */
  .wrapper {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: rgba(74, 127, 158, 0.562);
    transition: all 0.6s ease-in-out;
    z-index: 2;
}

.wrapper.active {
    left: 0;
}

/* Estilo del botón del menú */
.menu-btn {
    position: absolute;
    z-index: 3;
    right: 20px;
    top: 20px;
    height: 50px;
    width: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.menu-btn span,
.menu-btn:before,
.menu-btn:after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 30%;
    width: 40%;
    border-bottom: 2px solid #ffffff80;
    transition: transform .6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.menu-btn:before {
    transform: translateY(-8px);
}

.menu-btn:after {
    transform: translateY(8px);
}

/* Animación de cierre del botón */
.menu-btn.active span {
    transform: scaleX(0);
}

.menu-btn.active:before {
    transform: rotate(45deg);
    border-color: #f534f5;
}

.menu-btn.active:after {
    transform: rotate(-45deg);
    border-color: #ffffffa8;
}

/* Estilo del botón de cerrar */
.close-btn {
    position: absolute;
    z-index: 3;
    right: 20px;
    top: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    display: block;
}

/* Estilo del menú de lista */
.wrapper ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.wrapper ul li {
    margin: 15px 0;
    background: transparent;
}

.wrapper ul li a {
    text-decoration: none;
    font-size: 30px;
    font-weight: 500;
    padding: 5px 30px;
    color: #112517;
    border-radius: 50px;
    position: relative;
    line-height: 50px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease;
    display: block;
}

/* Efecto hover para enlaces */
.wrapper ul li a:hover {
    color: #3de07c;
}

.wrapper ul li a:after {
    position: absolute;
    content: "";
    background: hsl(49, 26%, 83%);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 50px;
    transform: scaleY(0);
    z-index: -1;
    transition: transform 0.3s ease;
}

.wrapper ul li a:hover:after {
    transform: scaleY(1);
}

/* Aparece el enlace cuando se activa el menú */
.wrapper.active ul li a {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.6s;
    transition-timing-function: ease-out;
}
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh; /* Mantiene el contenido centrado en toda la pantalla */
  padding: 20px; /* Evita que el contenido quede pegado en pantallas pequeñas */
}

.content {
  max-width: 600px; /* Controla el ancho del contenido */
  width: 100%;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.logo {
  width: 150px; /* Tamaño específico */
  height: auto;
}
