/* ==========================================
   VARIABLES GENERALES (Estilo BIoTAerospace)
   ========================================== */
:root {
  --bg-main: #0b0e14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.08);
  --cyan-neon: #00d2fe;
  --cyan-hover: #00b8e6;
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-white);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   BARRA DE NAVEGACIÓN (NAVBAR)
   ========================================== */
.navbar {
  width: 100%;
  padding: 20px 40px;
  background-color: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
}

.logo span {
  font-weight: 400;
  color: var(--text-white);
}

.nav-menu {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-neon);
}

.dropdown {
  position: relative;
}

/* ==========================================
   HERO / SECCIÓN OPEN SOURCE
   ========================================== */
.opensource-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 20px 80px 20px;
  display: flex;
  align-items: center;
}

/* Esfera resplandeciente (Glow azul en el lado derecho) */
.glow-sphere {
  position: absolute;
  top: 40%;
  right: -5%;
  transform: translateY(-50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 210, 254, 0.35) 0%, rgba(0, 102, 255, 0.15) 45%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Badge superior */
.badge {
  display: inline-block;
  background: rgba(0, 210, 254, 0.12);
  color: var(--cyan-neon);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 254, 0.3);
  margin-bottom: 24px;
}

/* Título */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 20px;
  color: var(--text-white);
}

/* Descripción */
.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 35px;
}

/* Botones */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.btn-primary {
  background-color: var(--cyan-neon);
  color: #000;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--cyan-hover);
  box-shadow: 0 0 20px rgba(0, 210, 254, 0.4);
}

.btn-secondary {
  color: var(--text-white);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  transition: color 0.3s ease;
}

.btn-secondary:hover {
  color: var(--cyan-neon);
}

/* Grid de Tarjetas Open Source */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 28px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 254, 0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsividad */
@media (max-width: 850px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .nav-menu {
    display: none;
  }
}