/* ==========================================================================
   ESTILOS GENERALES Y CONFIGURACIÓN BASE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #05070a !important;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.hidden {
  display: none !important;
}

/* Capa de fondo con estrellas */
.space-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(ellipse at bottom, #0d1321 0%, #05070a 100%);
  pointer-events: none;
  overflow: hidden;
}

/* Animaciones de Estrellas y Estrellas Fugaces */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes shootingStar {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg) scale(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(-500px) translateY(500px) rotate(-45deg) scale(1);
    opacity: 0;
  }
}

.star {
  position: absolute;
  background-color: #ffffff;
  border-radius: 50%;
  animation: twinkle var(--duration, 4s) infinite ease-in-out;
  animation-delay: var(--delay, 0s);
}

.shooting-star {
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(212,175,55,0.8), transparent);
  opacity: 0;
}

.star-1 {
  top: 15%;
  right: 20%;
  animation: shootingStar 6s infinite ease-in 2s;
}

.star-2 {
  top: 35%;
  right: 50%;
  animation: shootingStar 8s infinite ease-in 5s;
}

/* Navegación */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.gold-l {
  color: #d4af37;
}

.logo-sub {
  display: block;
  font-size: 0.65rem;
  color: #a0a5b5;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #d4af37;
}

.btn-nav {
  border: 1px solid #d4af37;
  padding: 8px 18px;
  border-radius: 20px;
  color: #d4af37 !important;
  transition: all 0.3s ease !important;
}

.btn-nav:hover {
  background-color: #d4af37;
  color: #05070a !important;
}

/* Componentes Principales del Hero y Secciones */
.badge-subtitle {
  font-family: 'Playfair Display', serif;
  color: #d4af37;
  font-size: 2rem;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-section {
  padding: 160px 8% 100px 8%;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  line-height: 1.2;
  margin: 15px 0 20px 0;
}

.highlight {
  color: #d4af37;
}

.hero-description {
  color: #a0a5b5;
  font-size: 1.15rem;
  margin-bottom: 35px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-primary {
  background-color: #d4af37;
  color: #05070a;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  border: 1px solid #33394b;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}
/* ==========================================================================
   AJUSTES RESPONSIVE PARA MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
  /* Mantiene la barra en una sola fila distribuida de extremo a extremo */
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
  }

  /* Oculta únicamente los enlaces simples de 'Quiénes Somos' y 'Experiencias' */
  .nav-links li:not(:has(.btn-nav)) {
    display: none;
  }

  /* Mantiene el contenedor de enlaces alineado a la derecha */
  .nav-links {
    gap: 0;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}