

/* ========= RESET ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro",
    Arial, sans-serif;
  color: #ffffff;
  background: #020618;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ========= BACKGROUND ========= */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #1f4fdc 0, transparent 55%),
    radial-gradient(circle at bottom, #031023 0, #020618 55%);
  z-index: -2;
}

/* imagen de espacio + estrellitas */
.bg-stars {
  position: fixed;
  inset: 0;
  background-image: url("stars.gif");
  background-size: cover, auto, auto, auto, auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}
/* ========= NAVBAR ========= */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 24, 0.85),
    rgba(2, 6, 24, 0.45),
    transparent
  );
  z-index: 20; /* bien arriba de todo */
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
    font-family: "Rubik Mono One", monospace;

}

/* MENÚ (versión desktop por defecto) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  color: #e5e7f5;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
    font-family: "SUSE Mono", sans-serif;
}

.nav-links a:hover {
  color: darkgray;
  font-size: 1rem;

}


.nav-enroll {
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #020618;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-enroll:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* BOTÓN HAMBURGUESA */
.nav-toggle {
  display: none;
  width: 24px;     
  height: 18px;   
  border: none;
  background: transparent;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 21;
}


.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;      
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ========= HERO ========= */
.hero {
  min-height: 100vh;
  padding: 130px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 40px;
  z-index: 2;
  margin-top: 100px;


}

.eyebrow {
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #9fa8da;
    font-family: "SUSE Mono", sans-serif;
    font-weight: 800;
}

.hero-content h1 {
  margin-top: 12px;
  font-size: clamp(3.5rem, 8vw, 5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: "Monoton", sans-serif;
}

.hero-content p {
  margin-top: 18px;
  font-size: 1rem;
  line-height: 1.7;
  color: #d6ddff;
  font-family: "SUSE Mono", sans-serif;
}

/* ========= PLANET STAGE (overlay) ========= */
.planet-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* planeta central – JS moverá top/left/width con el scroll */
.main-planet-wrapper {
  position: absolute;
  top: 115vh; /* hero: centro por debajo del viewport -> solo se ve la parte de arriba */
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  width: 600px;
  pointer-events: auto;
  transition:
    top 0.25s linear,
    left 0.25s linear,
    width 0.25s linear,
    transform 0.4s ease;
}

/* motion extra cuando cambia el planeta central */
.main-planet-wrapper.swap {
  transform: translate(-50%, -50%) scale(0.9);
}

.main-planet-wrapper.center-bump {
  transform: translate(-50%, -50%) scale(1.12);
}

.main-planet {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 -10px 60px rgba(0, 0, 0, 0.95),
    0 0 90px rgba(79, 123, 255, 0.8);

  /* 🔥 Fondo del planeta (fallback 2D) */
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.main-planet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: inherit;  /* usa la misma imagen de fondo */
  background-size: inherit;
  background-position: inherit;
  background-repeat: inherit;
  animation: spinPlanet 40s linear infinite;
}

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

.main-planet canvas {
  width: 100%;
  height: 100%;
  display: none;
}

/* ========= PLANETAS LATERALES ========= */
.side-planet {
  position: absolute;
  bottom: 40px;
  width: 130px;
  aspect-ratio: 1 / 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #ffffff;
  pointer-events: auto;
  cursor: pointer;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.side-left {
  left: 4%;
  align-items: flex-start;
}

.side-right {
  right: 4%;
  align-items: flex-end;
}

/* lateral que entra al centro -> efecto carrusel */
.side-planet.grow {
  transform: translateY(-20px) scale(1.5);
}

.planet-circle {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
  background-size: cover;
  background-position: center;
}

.planet-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
    font-family: "SUSE Mono", sans-serif;
}

/* ========= PANTALLA 2: DETALLE ========= */
/* empieza exactamente un viewport debajo del hero */
.planet-details {
  min-height: 100vh;
  margin-top: 100vh;
  padding: 60px 8vw 120px; /* top pequeño para que el texto ya esté visible */
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.planet-details-inner {
  max-width: 480px;
  margin-left: auto;
  text-align: left;
  z-index: 100;
}

.planet-details-inner h2 {
  font-size: 1.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.planet-details-inner p {
  font-size: 1rem;
  line-height: 1.8;
  color: #d6ddff;
}
/* ========= SECCIONES EXTRA: ABOUT & GALLERY ========= */

.info-section {
  min-height: 100vh;
  padding: 120px 8vw 140px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2; /* por encima del fondo de estrellas */
}

.info-inner {
  max-width: 720px;
  text-align: left;
}

.info-inner h2 {
  font-size: 1.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.info-inner p {
  font-size: 1rem;
  line-height: 1.8;
  color: #d6ddff;
  margin-bottom: 14px;
}

/* ABOUT: un poco más centrado visualmente */
.about-section {
  align-items: center;
}

/* ===== NAV: SUBMENÚ PLANETS ===== */
/* ===== NAV: SUBMENÚ PLANETS ===== */

.has-submenu {
  position: relative;
}

.nav-link-button {
  background: transparent;
  border: none;
  color: #e5e7f5;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: "SUSE Mono", sans-serif;
}

.nav-link-button:hover {
  color: gray;
   font-size: 0.85rem;
}

.submenu {
  position: absolute;
  top: 140%;
  right: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(4, 9, 30, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
  font-family: "SUSE Mono", sans-serif;
}

.submenu a {
  text-decoration: none;
  color: #e5e7f5;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.submenu a:hover {
  color: #9fa8da;
    font-size: 0.8rem;
}

/* Mostrar cuando la clase .open está activa */
.has-submenu.open .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}


.learn-more-link {
  font-size: 0.95rem;
  color: #9fb3ff;
  text-decoration: none;
  font-family: "SUSE Mono", sans-serif;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease;
}

.learn-more-link:hover {
  opacity: 0.6;
}
/* Mobile: que se vea bonito dentro del menú colapsado */
@media (max-width: 1024px) {
  .has-submenu {
    width: 100%;
  }

  .submenu {
    position: static;
    margin-top: 8px;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .submenu a {
    padding-left: 4px;
    font-size: 0.75rem;
  }
  .submenu a:hover {
  color: #9fa8da;
    font-size: 0.7rem;
}
}


/* Responsive tweak */
@media (max-width: 768px) {
  .info-section {
    padding: 110px 7vw 120px;
  }

  .info-inner h2 {
    font-size: 1.6rem;
  }
}


/* ========= RESPONSIVE ========= */

@media (max-width: 1024px) {
  .navbar {
    padding-inline: 20px;
  }

  /* nav: pasa a hamburguesa */
 .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(4, 9, 30, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }


  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .nav-enroll {
    width: 100%;
    text-align: center;
  }

  .side-planet {
    width: 110px;
    bottom: 26px;
  }

  .planet-details {
    padding-right: 6vw;
    padding-left: 6vw;
  }
}

/* animación del botón hamburguesa */
@media (max-width: 1024px) {
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}
/* <= 640px: móviles */
@media (max-width: 1140px) {
  .side-planet {
    width: 90px;
    bottom: 20px;
  }

  .planet-details {
    padding-top: 70vh;
    padding-inline: 7vw;
  }

  .planet-details-inner h2 {
    font-size: 1.5rem;
  }

  .planet-details-inner p {
    font-size: 0.95rem;
  }
}
