/* ============================================================
   AURORA TECH — AI Agency Design System
   ============================================================ */
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
  display: block !important;
}

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {  /* Colors - Zyndrix Elite Brand Palette */
  --bg-primary: #050505; /* Deeper pure black */
  --bg-secondary: #080a14;
  --bg-card: rgba(12, 12, 18, 0.7);
  --bg-glass: rgba(10, 10, 15, 0.5);
  
  --primary: #2DD4BF; /* Sophisticated Teal */
  --primary-light: #5EEAD4;
  --primary-glow: rgba(45, 212, 191, 0.2);
  --secondary: #34D399; /* Emerald */
  --cyan: #2DD4BF;
  --cyan-light: #5EEAD4;
  --cyan-glow: rgba(45, 212, 191, 0.2);
  --accent: #A855F7; /* Royal Violet */
  --violet: #A855F7;
  --violet-glow: rgba(168, 85, 247, 0.2);
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-accent: #2DD4BF;
  
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(45, 212, 191, 0.2);
  
  --gradient-zyndrix: linear-gradient(135deg, #2DD4BF 0%, #3B82F6 50%, #A855F7 100%);
  --gradient-aurora: var(--gradient-zyndrix);
  --gradient-cyan: linear-gradient(135deg, #2DD4BF, #3B82F6);
  --gradient-dark: linear-gradient(180deg, #050505 0%, #080a14 100%);
  --gradient-radial: radial-gradient(circle at center, rgba(45, 212, 191, 0.15) 0%, transparent 70%);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --section-padding: 50px 0; /* Reduced from 70px */
  --container-width: 1240px; /* Slightly wider for better breathability */
  --container-padding: 0 40px;
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

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

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea { font-family: inherit; }

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

@media (max-width: 768px) {
  :root {
    --container-padding: 0 20px;
    --section-padding: 40px 0;
  }
}

/* ---------- Section Base ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
  text-transform: uppercase;
}

.section-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--cyan);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 500;
}

.section-header {
  text-align: center;
  margin-bottom: 35px; /* Reduced from 50px */
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem; /* Larger card titles */
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--primary-glow), 0 10px 40px rgba(0,0,0,0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(45, 212, 191, 0.1);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ---------- Cards / Spatial Glass ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease, box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.glass-card:hover {
  border-color: rgba(45, 212, 191, 0.4);
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 30px var(--primary-glow);
}

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

/* Specific content depth for spatial cards */
.glass-card > * {
  transform: translateZ(20px);
}

.card-highlight {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover .card-highlight {
  opacity: 1;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all var(--transition-base);
  background: transparent;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

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

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(2, 6, 23, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav-logo-img {
  height: 90px;
  width: auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 20px rgba(0, 245, 255, 0.6)) brightness(1.2);
  transform: translateY(-4px) scale(1.05);
}

.navbar.scrolled .nav-logo-img {
  filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.4));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
}

.nav-indicator {
  position: absolute;
  height: calc(100% - 12px);
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: var(--radius-full);
  z-index: -1;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2);
  pointer-events: none;
  opacity: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  position: relative;
  z-index: 2;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1001;
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  z-index: 1001; /* Encima del menú links */
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* Reduced from 110px */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(45, 212, 191, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    var(--bg-primary);
  z-index: 1;
  overflow: hidden;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 5;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  bottom: -10%;
  right: -10%;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: var(--text-accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
  opacity: 0.3;
}

/* Tighten specifically between benefits and showcase */
#beneficios { padding-bottom: 20px; }
#showcase { padding-top: 20px; }

#aiNetworkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  pointer-events: none;
  opacity: 1 !important;
  display: block !important;
}

@keyframes wave-sweep {
  0% { left: -150%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(5, 8, 22, 0.4);
  border: 1px solid rgba(0, 255, 242, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  box-shadow: 
    0 0 20px rgba(0, 255, 242, 0.1),
    inset 0 0 10px rgba(0, 255, 242, 0.05);
  animation: badge-float 4s ease-in-out infinite, fade-up 0.8s ease both;
  border-left: 3px solid var(--cyan);
  border-right: 3px solid var(--primary);
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 255, 242, 0.2); }
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

#aiNetworkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Ensure it stays above background but below content */
  pointer-events: none;
  display: block !important;
  opacity: 1 !important;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fade-up 0.8s ease 0.15s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fade-up 0.8s ease 0.3s both;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.8s ease 0.45s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  animation: fade-up 0.8s ease 0.6s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fade-up 0.8s ease 0.75s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

/* ---------- AI INTEGRATIONS MARQUEE (Elite Tier) ---------- */
.logos-marquee {
  position: relative;
  padding: 25px 0; /* Reduced from 40px */
  background: linear-gradient(to right, transparent, rgba(0, 245, 255, 0.02) 50%, transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 10;
}

.marquee-header {
  margin-bottom: 20px; /* Reduced from 40px */
  text-align: center;
}

.logos-strip-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  opacity: 0.8;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.tech-marquee-v2 {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
}

.marquee-fade-left, .marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  z-index: 2;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee-infinite 30s linear infinite;
  width: max-content;
  padding: 10px 0;
}

@keyframes marquee-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  backdrop-filter: none;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: none;
  flex-shrink: 0;
}

.marquee-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--cyan);
  transform: translateY(-8px) scale(1.1) rotate(3deg);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.2);
}

.marquee-item img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  transition: all 0.4s ease;
}

.marquee-item:hover img {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  transform: scale(1.1);
}

/* Brand Specific Colors & Glows */
.brand-chatgpt { border-color: rgba(16, 163, 127, 0.2) !important; }
.brand-chatgpt:hover { border-color: #10a37f !important; box-shadow: 0 0 30px rgba(16, 163, 127, 0.4); }

.brand-claude { border-color: rgba(217, 119, 87, 0.2) !important; }
.brand-claude:hover { border-color: #d97757 !important; box-shadow: 0 0 30px rgba(217, 119, 87, 0.4); }

.brand-mistral { border-color: rgba(0, 245, 255, 0.2) !important; }
.brand-mistral:hover { border-color: #00f5ff !important; box-shadow: 0 0 30px rgba(0, 245, 255, 0.4); }

.brand-grok { border-color: rgba(255, 255, 255, 0.1) !important; }
.brand-grok:hover { border-color: #ffffff !important; box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }

.brand-llama { border-color: rgba(237, 123, 255, 0.2) !important; }
.brand-llama:hover { border-color: #ed7bff !important; box-shadow: 0 0 30px rgba(237, 123, 255, 0.4); }

.brand-perplexity { border-color: rgba(0, 163, 255, 0.2) !important; }
.brand-perplexity:hover { border-color: #00a3ff !important; box-shadow: 0 0 30px rgba(0, 163, 255, 0.4); }

.brand-n8n { border-color: rgba(255, 77, 77, 0.2) !important; }
.brand-n8n:hover { border-color: #ff4d4d !important; box-shadow: 0 0 30px rgba(255, 77, 77, 0.4); }

.brand-gemini { border-color: rgba(66, 133, 244, 0.2) !important; }
.brand-gemini:hover { border-color: #4285f4 !important; box-shadow: 0 0 30px rgba(66, 133, 244, 0.4); }

/* ---------- PROBLEMS SECTION ---------- */
.problems {
  background: var(--gradient-radial), var(--bg-primary);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.problem-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.problem-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- SOLUTION SECTION ---------- */
.solution {
  background: 
    linear-gradient(rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.9)),
    url('img/solution-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.solution-content .section-title {
  text-align: left;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.solution-feature {
  display: flex;
  gap: 16px;
  align-items: center;
}

.solution-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.solution-feature p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.solution-feature strong {
  color: var(--text-primary);
}

.solution-visual {
  position: relative;
}

.solution-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.diagram-node {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 16px;
  position: relative;
}

.diagram-node.active {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.diagram-node.highlight {
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.diagram-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin: 8px 0;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--cyan);
  filter: drop-shadow(0 0 15px var(--cyan-glow));
  transition: all var(--transition-base);
}

.tech-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
  transition: transform 0.3s ease;
}

.service-card:hover .tech-icon-img {
  transform: scale(1.1) rotate(5deg);
}

/* ---------- IMPACT SECTION (REDESIGN) ---------- */
.section.impact {
  padding-top: 40px;
  padding-bottom: 50px;
}

.impact .section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
  margin-bottom: 15px;
  text-align: center;
}

.impact-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.dashboard-item {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(0, 255, 242, 0.1);
  transition: all var(--transition-base);
}

.dashboard-item:hover {
  border-color: rgba(0, 255, 242, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 242, 0.05);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.item-icon {
  font-size: 1.5rem;
}

.dashboard-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan-light);
  letter-spacing: 0.5px;
}

.item-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 120px;
}

.stat-large {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 255, 242, 0.3);
}

/* Mini Bar Chart */
.bar-chart-mini {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill-mini {
  height: 100%;
  width: 90%; /* Static value for Productividad */
  background: var(--gradient-aurora);
  border-radius: 4px;
}

/* Mini Circular */
.circular-mini {
  width: 80px;
  height: 80px;
}

.circular-mini svg {
  transform: rotate(-90deg);
}

.circular-mini .circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 3;
}

.circular-mini .circle {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 45, 100; /* Static value for Eficiencia */
}

/* Pulse Grid Animation for Scalability */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.pulse-node {
  width: 12px;
  height: 12px;
  background: var(--cyan);
  border-radius: 2px;
  opacity: 0.3;
  animation: pulse-node-glow 2s infinite ease-in-out;
}

.pulse-node:nth-child(2) { animation-delay: 0.5s; }
.pulse-node:nth-child(3) { animation-delay: 1s; }
.pulse-node:nth-child(4) { animation-delay: 1.5s; }

@keyframes pulse-node-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 10px var(--cyan); }
}

.item-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

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

@media (max-width: 992px) {
  .impact-dashboard {
    grid-template-columns: 1fr;
  }
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  text-align: center;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--gradient-aurora);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 30px var(--primary-glow);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 50px var(--primary-glow);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CASES SECTION ---------- */
.cases {
  background: var(--bg-secondary);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.case-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
}

.case-stat {
  text-align: left;
}

.case-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.case-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.case-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-author-img {
  width: 48px;
  height: 48px;
  border-radius: 12px; /* Estilo más moderno que circular total */
  border: 1px solid var(--border-glow);
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.case-body h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-light);
}

.case-body p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* ---------- BENEFITS SECTION ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 36px 24px;
}

.benefit-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* ---------- SHOWCASE SECTION ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 30px;
}

@media (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr !important;
  }
}

.showcase-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.showcase-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.showcase-card:hover .showcase-video {
  opacity: 1;
}

.video-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
}

.video-tag {
  padding: 6px 14px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.showcase-info {
  padding: 24px;
}

.showcase-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

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

/* ---------- PROCESS SECTION ---------- */
.process {
  background: var(--bg-secondary);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--text-accent), var(--primary));
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-number {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--bg-primary);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-light);
  box-shadow: 0 0 30px var(--primary-glow);
  transition: all var(--transition-base);
}

.process-step:hover .process-step-number {
  background: var(--gradient-aurora);
  color: white;
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 8px;
}

/* ---------- DEMO SECTION ---------- */
.demo-container {
  max-width: 700px;
  margin: 0 auto;
}

.demo-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.demo-terminal-header {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.demo-dot:nth-child(1) { background: #ef4444; }
.demo-dot:nth-child(2) { background: #f59e0b; }
.demo-dot:nth-child(3) { background: #22c55e; }

.demo-terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.demo-chat {
  padding: 24px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  opacity: 0;
  transform: translateY(10px);
  animation: message-in 0.4s ease forwards;
}

.demo-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.demo-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.demo-message.bot .demo-message-avatar {
  background: var(--gradient-aurora);
}

.demo-message.user .demo-message-avatar {
  background: rgba(148, 163, 184, 0.2);
}

.demo-message-content {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
}

.demo-message.bot .demo-message-content {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.demo-message.user .demo-message-content {
  background: var(--primary);
  color: white;
}

.demo-typing {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  width: fit-content;
}

.demo-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-dot 1.4s ease-in-out infinite;
}

.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
}

.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 12px;
  display: flex;
  gap: 4px;
}

/* ---------- TECH SECTION ---------- */
.tech-marquee {
  overflow: hidden;
  padding: 30px 0;
  background: rgba(2, 6, 23, 0.2);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.tech-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 48px;
  animation: marquee 40s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 24px)); }
}

.tech-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  white-space: nowrap !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.tech-item-icon {
  font-size: 1.2rem;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  position: relative;
  background: var(--bg-primary); /* Base deep dark */
  padding: 140px 0;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 245, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.6);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content .section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.cta-form {
  max-width: 640px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.cta-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .cta-form-row {
    grid-template-columns: 1fr !important;
  }
}

.cta-input {
  width: 100%;
  padding: 16px 24px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-base);
  outline: none;
}

.cta-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
  background: rgba(2, 6, 23, 0.8);
  transform: translateY(-1px);
}

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

textarea.cta-input {
  resize: vertical;
  min-height: 100px;
}

.cta-form .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.cta-form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

/* ---------- FAQ SECTION ---------- */
.faq {
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--text-accent);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--primary-light);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0 20px; /* Reduced from 64px 0 32px */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 30px; /* Reduced from 48px */
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--primary);
  background: rgba(108, 58, 237, 0.1);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-column a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--text-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- CHAT WIDGET ---------- */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 8px 30px var(--primary-glow);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px var(--primary-glow);
}

.chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open {
  display: flex;
  animation: chat-open 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chat-open {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-window-header {
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-window-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chat-window-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-window-info span {
  font-size: 0.75rem;
  color: #22c55e;
}

.chat-window-messages {
  padding: 16px;
  min-height: 250px;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-window-input {
  padding: 12px 16px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 8px;
}

.chat-window-input input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.chat-window-input input:focus {
  border-color: var(--primary);
}

.chat-window-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-aurora);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chat-window-input button:hover {
  transform: scale(1.1);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.loader-inline {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ---------- KEYFRAMES ---------- */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

@keyframes message-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }
  
  .services-grid,
  .testimonials-grid,
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(2, 6, 23, 0.99) !important;
    backdrop-filter: blur(20px);
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 32px !important;
    z-index: 2000 !important;
    left: 0 !important;
    transform: none !important;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links a {
    font-size: 1.5rem !important;
    color: white !important;
  }

  .mobile-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 10px;
    z-index: 2001 !important;
    cursor: pointer;
  }

  .mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--cyan);
    border-radius: 4px;
    transition: 0.3s;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-logo {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .nav-actions {
    display: none !important;
  }

  .nav-logo-img {
    height: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

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

  .services-grid, .showcase-grid, .testimonials-grid, .footer-grid, .cta-form-row {
    grid-template-columns: 1fr !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .problems-grid {
    grid-template-columns: 1fr !important;
  }

  .navbar .container {
    padding: 0 15px;
  }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ---------- SELECTION ---------- */
::selection { background: var(--violet); color: white; }

/* ---------- INSTITUTIONAL FOOTER ---------- */
.footer {
  padding: 60px 0 30px; /* Reduced from 100px 0 50px */
  background: linear-gradient(to bottom, transparent, rgba(0, 245, 255, 0.02));
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 40px; /* Reduced from 80px */
}

.footer-brand .logo {
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  padding-top: 20px; /* Reduced from 40px */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 32px;
}

/* ---------- Cursor Aura & Elite Polish ---------- */
.cursor-aura {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
  will-change: transform;
}

.micro-noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/feTurbulence%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/filter%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* Glass 2.0 - Edge catching light */
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%, rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Bento Grid System ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px; /* Increased from 220px to fit more content */
  gap: 20px;
  width: 100%;
}

.bento-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from flex-end */
  padding: 40px 32px;
  transition: all 0.4s ease;
}

.bento-featured {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--bg-card);
  border-color: rgba(0, 245, 255, 0.2);
}

.bento-wide {
  grid-column: span 2;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '→';
  color: var(--cyan);
  font-size: 0.9rem;
}

.bento-item .service-icon {
  margin: 0 0 20px 0;
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
}

.bento-item h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #fff;
}

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

.bento-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 16px;
}

.bento-visual {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 150px;
  height: 150px;
  pointer-events: none;
}

.ai-orb-mini {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  filter: blur(20px);
  animation: pulse-orb-mini 4s ease-in-out infinite;
}

@keyframes pulse-orb-mini {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .bento-featured, .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}
