/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 10;
}

header h1 {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #00bfff;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* FONDO DE ESTRELLAS */
.stars {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://raw.githubusercontent.com/JulienHe/starfield-background/main/stars.svg') repeat;
  opacity: 0.15;
  animation: moveStars 120s linear infinite;
  z-index: 0;
}

@keyframes moveStars {
  from { background-position: 0 0; }
  to { background-position: -10000px 5000px; }
}

/* LUNA DIFUSA ANIMADA */
.moon {
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  transform: translate(-50%, -50%);
  animation: moveMoon 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes moveMoon {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-48%, -52%) scale(1.1); opacity: 0.8; }
}

/* TEXTO HERO */
.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  z-index: 2;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  animation: fadeUp 1.2s ease-out forwards;
}

.hero p {
  color: #aaa;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  z-index: 2;
  animation: fadeUp 1.5s ease-out forwards;
}

.cta-button {
  background: #0a0a0a;
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1);
  transition: all 0.3s;
  z-index: 2;
  animation: fadeUp 1.8s ease-out forwards;
}

.cta-button:hover {
  background: #111;
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
footer {
  background: linear-gradient(to bottom, #0a0a0a, #000);
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 60px 10%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left {
  max-width: 500px;
}

.footer-left h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-left p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-right h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right li {
  margin-bottom: 0.5rem;
}

.footer-right a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-right a:hover {
  color: #fff;
}

.bottom-bar {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
  font-size: 0.85rem;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header { padding: 1rem 1.5rem; }
  .hero h2 { font-size: 2.4rem; }
  .moon { width: 400px; height: 400px; filter: blur(40px); }
  footer { flex-direction: column; gap: 40px; text-align: center; }
}
