/* ==========================================================================
   AstroCHIA — Estilos Principales
   Cosmic Dark Modern Aesthetic • Glassmorphism • Micro-animations
   ========================================================================== */

:root {
  /* Paleta Cósmica */
  --bg-deep-space: #060710;
  --bg-space-dark: #0b0d1e;
  --bg-nebula: #12142d;
  --bg-card: rgba(18, 20, 48, 0.65);
  --bg-card-hover: rgba(27, 30, 68, 0.85);

  /* Acentos Lunares y Estelares */
  --gold-lunar: #ffd166;
  --gold-lunar-light: #ffe8a3;
  --purple-nebula: #8a2be2;
  --purple-glow: #9d4edd;
  --cyan-cosmic: #38bdf8;
  --indigo-deep: #4f46e5;
  --pink-supernova: #ec4899;

  /* Textos y Bordes */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 209, 102, 0.35);
  --border-purple: rgba(138, 43, 226, 0.35);

  /* Sombras y Resplandores */
  --glow-moon: 0 0 50px rgba(255, 209, 102, 0.25);
  --glow-nebula: 0 0 40px rgba(138, 43, 226, 0.3);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 20px 40px -15px rgba(138, 43, 226, 0.35);

  /* Tipografía */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transiciones */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset y Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep-space);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(138, 43, 226, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 209, 102, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Canvas de estrellas de fondo */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Contenedor */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Tipografía de Gradiente */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-lunar) 0%, #ff9e00 50%, var(--purple-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.gradient-title {
  background: linear-gradient(135deg, #ffffff 20%, var(--gold-lunar) 60%, var(--purple-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Paneles Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-purple);
  box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   Header & Navegación
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(6, 7, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(6, 7, 16, 0.92);
  border-bottom-color: rgba(255, 209, 102, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.official-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.35));
  transition: transform 0.4s ease;
}

.brand-logo:hover .official-logo-img {
  transform: scale(1.08) rotate(2deg);
}

.twinkle-dot {
  animation: pulse-twinkle 2s infinite ease-in-out;
}

@keyframes pulse-twinkle {
  0%,
  100% {
    opacity: 0.3;
    r: 1.5;
  }

  50% {
    opacity: 1;
    r: 2.8;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-lunar), var(--purple-glow));
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-lunar) 0%, #e0a320 50%, var(--purple-nebula) 150%);
  color: #0b0d1e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 209, 102, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 209, 102, 0.45);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-lunar);
  border-color: var(--border-glow);
}

.btn-outline:hover {
  background: rgba(255, 209, 102, 0.1);
  border-color: var(--gold-lunar);
  color: #fff;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.25);
  color: var(--gold-lunar-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-orbit {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-lunar);
  box-shadow: 0 0 10px var(--gold-lunar);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 209, 102, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}

.hero-quote {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-lunar);
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--gold-lunar);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-description strong {
  color: var(--gold-lunar);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* Quick Stats Bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-lunar);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-separator {
  width: 1px;
  height: 38px;
  background: var(--border-glass);
}

/* Visual Card Cósmico */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cosmic-glass-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 480px;
  background: radial-gradient(circle at center, rgba(30, 27, 75, 0.7) 0%, rgba(11, 13, 30, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(138, 43, 226, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

/* Luna Chía Central Brillante */
.celestial-body.moon-glow {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-image: url('images/logoopaco2.png');
  background-size: 90%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow:
    0 0 60px rgba(255, 209, 102, 0.45),
    0 0 120px rgba(138, 43, 226, 0.35);
  position: relative;
  animation: moon-float 8s ease-in-out infinite alternate;
}

@keyframes moon-float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  100% {
    transform: translateY(-12px) rotate(4deg);
  }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.orbit-ring-outer {
  width: 380px;
  height: 380px;
  animation: spin 60s linear infinite;
}

.orbit-ring-inner {
  width: 280px;
  height: 280px;
  border-color: rgba(255, 209, 102, 0.2);
  animation: spin-reverse 45s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* Pastillas Flotantes */
.floating-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(18, 20, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: pill-hover 4s ease-in-out infinite alternate;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.exoplanet-dot {
  background: var(--cyan-cosmic);
  box-shadow: 0 0 8px var(--cyan-cosmic);
}

.telescope-dot {
  background: var(--gold-lunar);
  box-shadow: 0 0 8px var(--gold-lunar);
}

.iau-dot {
  background: var(--purple-glow);
  box-shadow: 0 0 8px var(--purple-glow);
}

.pill-top {
  top: 36px;
  right: -10px;
  animation-delay: 0.5s;
}

.pill-bottom {
  bottom: 80px;
  right: 15px;
  animation-delay: 1.2s;
}

.pill-left {
  top: 110px;
  left: -15px;
  animation-delay: 2s;
}

@keyframes pill-hover {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

.cosmic-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: left;
}

.satellite-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

/* Map container styling */
#world-map {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}

/* Leaflet map tweaks */
.leaflet-container {
  background: transparent;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.section-header {
  margin-bottom: 56px;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(138, 43, 226, 0.12);
  border: 1px solid rgba(138, 43, 226, 0.3);
  color: var(--purple-glow);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ==========================================================================
   Sobre Nosotras
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.about-card {
  padding: 36px 28px;
}

.card-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15) 0%, rgba(138, 43, 226, 0.25) 100%);
  border: 1px solid rgba(255, 209, 102, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-lunar);
  margin-bottom: 22px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pilares */
.pillars-container {
  background: rgba(18, 20, 48, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 36px 30px;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-box {
  display: flex;
  flex-direction: column;
}

.pillar-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-lunar);
  margin-bottom: 8px;
  opacity: 0.8;
}

.pillar-box h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pillar-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Directorio de Científicas
   ========================================================================== */
.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 48px 14px 50px;
  background: rgba(18, 20, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
  border-color: var(--gold-lunar);
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.25);
}

.clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.filter-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--gold-lunar) 0%, #e69d00 100%);
  color: #0b0d1e;
  border-color: var(--gold-lunar);
  font-weight: 700;
}

/* Grid de Científicas */
.scientists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.scientist-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.scientist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--purple-glow), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.scientist-card:hover::before {
  opacity: 1;
}

.card-avatar-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-lunar), var(--purple-glow));
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-avatar-photo .member-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.scientist-card:hover .card-avatar-photo .member-img {
  transform: scale(1.08);
}

.card-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-nebula), var(--indigo-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-founder {
  background: rgba(255, 209, 102, 0.15);
  color: var(--gold-lunar);
  border: 1px solid rgba(255, 209, 102, 0.3);
}

.scientist-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.scientist-role {
  color: var(--gold-lunar-light);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.scientist-institution {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.scientist-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--cyan-cosmic);
}

.scientist-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 22px;
  flex-grow: 1;
}

.scientist-card-location {
  text-align: center;
  width: 100%;
  margin-top: 8px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.affiliation-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Tarjeta CTA de la Red */
.network-cta-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(138, 43, 226, 0.18) 100%);
  border-color: rgba(138, 43, 226, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.network-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.network-icon-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid var(--gold-lunar);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-lunar);
}

/* ==========================================================================
   Áreas de Investigación
   ========================================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.area-item {
  padding: 32px 24px;
  transition: var(--transition-smooth);
}

.area-item:hover {
  transform: translateY(-4px);
}

.area-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.area-item h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.area-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   Iniciativas
   ========================================================================== */
.initiatives-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.initiative-card {
  padding: 36px 28px;
  position: relative;
}

.initiative-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-cosmic);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.initiative-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.initiative-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   Formulario de Registro / Únete
   ========================================================================== */
.join-container {
  max-width: 820px;
}

.join-card {
  padding: 50px 44px;
  border-color: rgba(255, 209, 102, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(138, 43, 226, 0.15);
}

.join-header {
  margin-bottom: 36px;
}

.join-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(11, 13, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-lunar);
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.25);
  background: rgba(18, 20, 48, 0.95);
}

.form-feedback {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

.form-feedback.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

/* ==========================================================================
   Contacto & Footer
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

.contact-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.contact-item a {
  color: var(--gold-lunar);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-box {
  padding: 36px 30px;
  text-align: center;
}

.contact-box h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 20px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: #04050a;
  padding: 70px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 420px;
}

.footer-quote {
  color: var(--gold-lunar);
  font-size: 0.85rem;
  margin-top: 12px;
}

.footer-links-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-links-col a:hover {
  color: var(--gold-lunar);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 14px;
}

.hosting-note {
  color: var(--gold-lunar-light);
}

/* ==========================================================================
   Responsive / Adaptabilidad Móvil
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-quote {
    border-left: none;
    padding-left: 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .about-grid,
  .areas-grid,
  .initiatives-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(6, 7, 16, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-glass);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .areas-grid,
  .initiatives-layout,
  .pillar-row,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .join-card {
    padding: 30px 20px;
  }

  .cosmic-glass-card {
    height: 400px;
  }

  .celestial-body.moon-glow {
    width: 140px;
    height: 140px;
    background-image: url('images/logoopaco2.png');
    background-size: contain;
    background-position: center;
    border-radius: 50%;
  }
}

/* ==========================================================================
   Página Adicional: Directorio de Científicas
   ========================================================================== */
.directory-hero {
  padding-top: 150px;
  padding-bottom: 40px;
}

.directory-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.directory-controls-box {
  padding: 24px;
  margin-bottom: 36px;
}

.directory-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.results-counter {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.directory-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.scientist-card-simple {
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.scientist-card-simple:hover {
  transform: translateY(-4px);
}

.card-simple-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.card-avatar-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-deep), var(--purple-nebula));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--border-glow);
  box-shadow: 0 4px 16px rgba(138, 43, 226, 0.3);
  flex-shrink: 0;
}

.card-title-group {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
}

.scientist-card-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 3px;
}

.scientist-card-degree {
  font-size: 0.82rem;
  color: var(--gold-lunar);
  font-weight: 600;
}

.scientist-card-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-institution-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--cyan-cosmic);
  margin-bottom: 14px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  margin-left: 12px;
}

.card-simple-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.contact-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.contact-pill-btn:hover {
  background: rgba(255, 209, 102, 0.15);
  border-color: var(--gold-lunar);
  color: #fff;
}

.no-results-box {
  text-align: center;
  padding: 60px 30px;
  margin-bottom: 60px;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.photo-upload-wrapper input[type="file"] {
  background: rgba(11, 13, 30, 0.7);
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  width: 100%;
}

.upload-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ==========================================================================
   Ventana Modal de Correo (Glassmorphism)
   ========================================================================== */
.email-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 7, 16, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.email-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  background: rgba(18, 20, 48, 0.92);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(138, 43, 226, 0.25);
  text-align: center;
  color: var(--text-primary);
  animation: modal-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.email-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.email-modal-close:hover {
  color: var(--gold-lunar);
  transform: rotate(90deg);
}

.email-modal-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.email-modal-title {
  margin: 0 0 6px 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold-lunar);
}

.email-modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.email-modal-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 13, 30, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 14px;
  gap: 12px;
  word-break: break-all;
}

#modal-email-text {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.btn-copy {
  background: linear-gradient(135deg, var(--gold-lunar) 0%, #e0a320 100%);
  color: #0b0d1e;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.4);
}

.copy-status {
  font-size: 0.82rem;
  color: #4ade80;
  margin-top: 10px;
  display: none;
  font-weight: 600;
}
