/* ============================================
   ACAGESTI - Landing Page
   Artic Dynamics Ecosystem
   ============================================ */

:root {
  /* Colors - Dark tech theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --accent-glow: rgba(99, 102, 241, 0.3);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  
  /* Spacing */
  --section-padding: 6rem 0;
  --container-max: 1200px;
  --container-padding: 1.5rem;
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Navbar */
  --navbar-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + 4rem) 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-fun {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-fun:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.hero-artic {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.hero-artic a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.hero-artic a:hover {
  color: var(--accent-primary);
}

/* ============================================
   Juego - Modal
   ============================================ */
.game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.game-overlay.active {
  opacity: 1;
  visibility: visible;
}

.game-modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.game-overlay.active .game-modal {
  transform: scale(1);
}

.game-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
}

.game-close:hover {
  color: var(--text-primary);
}

.game-close svg {
  width: 24px;
  height: 24px;
}

.game-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.game-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.game-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1rem;
}

.game-stats strong {
  color: var(--accent-primary);
}

.game-area {
  position: relative;
  height: 280px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  overflow: hidden;
}

.game-target {
  position: absolute;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease;
}

.game-target:hover {
  transform: scale(1.2);
}

.game-target:active {
  transform: scale(0.9);
}

.game-result {
  display: none;
  text-align: center;
  margin-top: 1.5rem;
}

.game-result.visible {
  display: block;
}

.game-final-score {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.game-final-score strong {
  color: var(--accent-primary);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ============================================
   ¿Qué es ACAGESTI? (Silicon Valley style)
   ============================================ */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
}

.about-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
}

.about-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.about-card {
  position: relative;
  padding: 2rem;
  background: rgba(22, 22, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover {
  background: rgba(28, 28, 40, 0.85);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

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

.about-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
  color: rgba(99, 102, 241, 0.35);
}

.about-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover .about-icon {
  transform: scale(1.05);
}

.about-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-primary);
}

.about-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   Funcionalidades (Silicon Valley style)
   ============================================ */
.features-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.features-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.features-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
}

.features-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 55%;
  background: radial-gradient(ellipse 55% 45%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.features-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.feature-card {
  position: relative;
  padding: 2rem;
  background: rgba(22, 22, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  background: rgba(28, 28, 40, 0.9);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 0 50px -15px rgba(139, 92, 246, 0.15);
}

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

.feature-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
  color: rgba(139, 92, 246, 0.35);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-secondary);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   Instituciones (Silicon Valley style)
   ============================================ */
.institutions-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.institutions-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.institutions-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.institutions-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse 50% 40%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.institutions-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.subdomain-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
}

.subdomain-badge svg {
  width: 16px;
  height: 16px;
}

.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.institution-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: rgba(22, 22, 31, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.institution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.institution-card:hover {
  background: rgba(28, 28, 40, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.1),
    0 0 60px -10px var(--accent-glow);
}

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

.institution-card.institution-coming {
  border-style: dashed;
  opacity: 0.9;
}

.institution-card.institution-coming:hover {
  border-color: var(--accent-secondary);
  transform: translateY(-4px);
}

.institution-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 16px;
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.institution-card:hover .institution-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.institution-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.institution-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  position: relative;
}

.institution-url {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-family: ui-monospace, monospace;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.institution-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: auto;
  transition: gap 0.3s ease;
}

.institution-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.institution-card:hover .institution-cta {
  gap: 0.75rem;
}

.institution-card:hover .institution-cta svg {
  transform: translateX(4px);
}

/* ============================================
   Beneficios (Silicon Valley style)
   ============================================ */
.benefits-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.benefits-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.benefits-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

.benefits-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60%;
  background: radial-gradient(ellipse 60% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
}

.benefits-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.benefit-card {
  position: relative;
  padding: 2rem;
  background: rgba(22, 22, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.benefit-card:hover {
  background: rgba(28, 28, 40, 0.8);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

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

.benefit-number {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
  color: rgba(99, 102, 241, 0.4);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent-primary);
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

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

/* ============================================
   Arquitectura & Tecnología (Silicon Valley style)
   ============================================ */
.tech-section {
  position: relative;
  overflow: hidden;
}

.tech-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tech-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.tech-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse 50% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.tech-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.tech-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 3rem 0;
  padding: 2rem;
}

.tech-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  min-width: 120px;
  transition: all var(--transition-normal);
}

.tech-node:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.tech-node-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.tech-node-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.tech-node span {
  font-size: 0.95rem;
  font-weight: 600;
}

.tech-node p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
  margin-top: 0.25rem;
}

/* Animación pulse en nodos */
.tech-node-pulse {
  animation: techPulse 2.5s ease-in-out infinite;
}

.tech-flow > .tech-node:nth-child(1) .tech-node-pulse { animation-delay: 0s; }
.tech-flow > .tech-node:nth-child(3) .tech-node-pulse { animation-delay: 0.3s; }
.tech-flow > .tech-node:nth-child(5) .tech-node-pulse { animation-delay: 0.6s; }
.tech-flow > .tech-node:nth-child(7) .tech-node-pulse { animation-delay: 0.9s; }
.tech-flow > .tech-node:nth-child(9) .tech-node-pulse { animation-delay: 1.2s; }

@keyframes techPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

.tech-connector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tech-data-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: techFlow 1.5s ease-in-out infinite;
}

.tech-data-dot:nth-child(1) { animation-delay: 0s; }
.tech-data-dot:nth-child(2) { animation-delay: 0.2s; }
.tech-data-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes techFlow {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-stack-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-stack-item:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

.tech-stack-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.tech-footer-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tech-footer-note strong {
  color: var(--text-secondary);
}

/* ============================================
   CTA Final (Silicon Valley style)
   ============================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse 50% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.cta-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

.cta-email {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.cta-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-email-link:hover {
  color: var(--accent-secondary);
}

.cta-email-link svg {
  width: 20px;
  height: 20px;
}

.cta-email-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.cta-contacts {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.cta-contacts-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cta-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  justify-content: center;
}

.cta-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: rgba(22, 22, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-contact-card:hover {
  background: rgba(28, 28, 40, 0.9);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
}

.cta-contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.cta-contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.cta-contact-whatsapp {
  background: rgba(37, 211, 102, 0.15) !important;
}

.cta-contact-whatsapp svg {
  color: #25d366 !important;
}

.cta-contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cta-contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-ecosystem {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-ecosystem strong {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-contact a:hover {
  color: var(--accent-primary);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   Modal de acceso
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

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

.modal-form input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-main);
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.modal-form input::placeholder {
  color: var(--text-muted);
}

.modal-error {
  font-size: 0.85rem;
  color: #f87171;
  margin: -0.5rem 0 1rem;
  min-height: 1.25rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 2rem;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border-color);
  }

  .hero {
    padding: calc(var(--navbar-height) + 3rem) 1.5rem 3rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .about-grid,
  .features-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }

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

  .tech-flow {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .tech-connector {
    transform: rotate(90deg);
  }

  .tech-stack {
    gap: 0.75rem;
  }

  .tech-stack-item {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
}

/* ============================================
   AOS overrides
   ============================================ */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-down"] {
  opacity: 0;
  transform: translateY(-20px);
}

[data-aos="fade-down"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
