/* ═══════════════════════════════════════════════
   SKYAWEB — STYLES.CSS
   Design: Dark futuristic · Glassmorphism · Neon
   ═══════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --bg:          #060610;
  --bg-2:        #0c0c1e;
  --bg-card:     rgba(255, 255, 255, 0.04);
  --bg-card-h:   rgba(255, 255, 255, 0.07);

  --cyan:        #00d4ff;
  --purple:      #7b2fff;
  --magenta:     #ff006e;
  --cyan-dim:    rgba(0, 212, 255, 0.12);
  --purple-dim:  rgba(123, 47, 255, 0.12);

  --text-1:      #f0f4ff;
  --text-2:      #94a3b8;
  --text-3:      #64748b;

  --border:      rgba(255, 255, 255, 0.08);
  --border-h:    rgba(0, 212, 255, 0.35);

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  --shadow-card: 0 0 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.12);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-head:   'Space Grotesk', sans-serif;
  --font-body:   'Inter', sans-serif;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── UTILITIES ───────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), opacity 180ms;
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 180ms;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3); }
.btn-primary:hover::after { background: rgba(255,255,255,0.08); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-primary.btn-large { padding: 18px 36px; font-size: 17px; }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 180ms, background 180ms, transform 180ms var(--ease-out);
}
.btn-ghost:hover { border-color: var(--border-h); background: var(--bg-card); transform: translateY(-2px); }
.btn-ghost:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 180ms, color 180ms;
}
.btn-ghost-sm:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── REVEAL ANIMATION ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 300ms, backdrop-filter 300ms, border-color 300ms;
}

.navbar.scrolled {
  background: rgba(6, 6, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-1);
  flex-shrink: 0;
}

.logo-icon {
  font-size: 26px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.logo-accent {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms;
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:focus-visible { outline: 2px solid var(--cyan); border-radius: 2px; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 180ms, box-shadow 180ms;
  flex-shrink: 0;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25); }
.btn-nav:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ── NAV DROPDOWN ────────────────────────────── */
.nav-dropdown {
  position: relative;
  /* Asegura que el li sea el contexto de posición del menú */
  display: flex;
  align-items: center;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  padding: 4px 0;
  line-height: 1;
  transition: color 150ms;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"] { color: var(--text-1); }
.nav-dropdown-btn svg { transition: transform 220ms var(--ease-out); flex-shrink: 0; }
.nav-dropdown-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dropdown-btn:focus-visible { outline: 2px solid var(--cyan); border-radius: 2px; outline-offset: 3px; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: rgba(8, 8, 20, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  list-style: none;
  /* Usamos opacity/visibility en lugar de display para que la animación funcione */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,212,255,0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 200;
  transition: opacity 180ms var(--ease-out), visibility 180ms, transform 180ms var(--ease-out);
  transform: translateX(-50%) translateY(-6px);
}

.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li { list-style: none; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms, color 150ms;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-1);
}
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--cyan);
  background: var(--cyan-dim);
}
.nav-dropdown-menu a:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: var(--radius-sm); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 250ms, opacity 250ms;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  background: rgba(6, 6, 16, 0.97);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
  display: block;
  padding: 12px 0;
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  transition: color 150ms;
}
.mobile-link:hover, .mobile-link:focus { color: var(--text-1); }
.mobile-cta {
  margin-top: 8px;
  padding: 14px 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  border-bottom: none;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  transition: transform 300ms var(--ease-out);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  margin: 0 auto 32px;
  animation: fadeSlideDown 800ms var(--ease-out) forwards;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 300ms var(--ease-out);
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 6.5vw, 88px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
}

.title-line {
  display: block;
  animation: titleReveal 900ms var(--ease-out) both;
}
.title-line:nth-child(1) { animation-delay: 100ms; }
.title-line:nth-child(2) { animation-delay: 280ms; }

.typewriter {
  display: block;
  min-height: 1.1em;
  animation: fadeSlideDown 800ms 460ms var(--ease-out) both;
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.35));
}

.typewriter::after {
  content: '|';
  animation: blink 1s infinite;
  -webkit-text-fill-color: var(--cyan);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0 auto 44px;
  max-width: 580px;
  animation: fadeSlideDown 800ms 380ms var(--ease-out) both;
}
.hero-subtitle strong { color: var(--text-1); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 60px;
  animation: fadeSlideDown 800ms 480ms var(--ease-out) both;
  justify-content: center;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeSlideDown 800ms 580ms var(--ease-out) both;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}
.stat-item:first-child { padding-left: 0; }

.stat-number {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-suffix { font-size: 20px; font-weight: 700; color: var(--cyan); display: inline; }
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 28px;
}

/* Hero visual */
.hero-visual {
  display: none;
}

/* ── HERO AURORA ─────────────────────────────── */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.aurora-1 {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: rgba(0, 212, 255, 0.07);
  top: -20%;
  left: -15%;
  animation: auroraFloat 22s ease-in-out infinite;
}

.aurora-2 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: rgba(123, 47, 255, 0.09);
  bottom: -20%;
  right: -10%;
  animation: auroraFloat 28s ease-in-out infinite reverse;
}

.aurora-3 {
  width: 35vw;
  height: 35vw;
  max-width: 450px;
  max-height: 450px;
  background: rgba(255, 0, 110, 0.05);
  top: 15%;
  right: 10%;
  animation: auroraFloat 18s ease-in-out infinite 4s;
}

/* ── HERO SPOTLIGHT ──────────────────────────── */
.hero-spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 500ms;
}

.ai-orb {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}
.ring-1 {
  width: 100%; height: 100%;
  border-color: rgba(0, 212, 255, 0.15);
  animation: spin 20s linear infinite;
}
.ring-2 {
  width: 75%; height: 75%;
  border-color: rgba(123, 47, 255, 0.2);
  animation: spin 15s linear infinite reverse;
}
.ring-3 {
  width: 50%; height: 50%;
  border-color: rgba(255, 0, 110, 0.15);
  animation: spin 10s linear infinite;
}

.orb-core {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(123, 47, 255, 0.15));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.15), inset 0 0 30px rgba(0, 212, 255, 0.05);
  position: relative;
  z-index: 2;
}

.orb-label {
  position: absolute;
  padding: 8px 14px;
  background: rgba(12, 12, 30, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  backdrop-filter: blur(10px);
  white-space: nowrap;
  z-index: 3;
}
.label-1 { top: 10%; right: -20%; animation: float 4s ease-in-out infinite; }
.label-2 { bottom: 20%; left: -20%; animation: float 4s 1.5s ease-in-out infinite; }
.label-3 { top: 60%; right: -30%; animation: float 4s 0.8s ease-in-out infinite; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeSlideDown 1s 800ms both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── LOGOS BAND ──────────────────────────────── */
.logos-band {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.logos-track { overflow: hidden; }

.logos-inner {
  display: flex;
  gap: 16px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.logo-pill {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── SECTION HEADER ──────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── SERVICES ────────────────────────────────── */
.services {
  padding: 120px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 300ms, transform 300ms var(--ease-out), box-shadow 300ms;
}
.service-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.service-card:hover .card-glow { opacity: 1; }

.card-primary {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(123, 47, 255, 0.06) 100%);
  border-color: rgba(0, 212, 255, 0.2);
}
.card-primary .card-glow {
  background: radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.08), transparent 70%);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(123, 47, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

.service-icon {
  width: 64px; height: 64px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 24px;
}

.service-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.service-features li::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  flex-shrink: 0;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 150ms;
}
.service-cta:hover { gap: 10px; }
.service-cta:focus-visible { outline: 2px solid var(--cyan); border-radius: 2px; }

/* ── RESULTS BAND ────────────────────────────── */
.results-band {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(123, 47, 255, 0.04) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.result-number {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.result-suffix {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  margin-left: 2px;
  display: inline;
}

.result-label {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 8px;
  max-width: 140px;
  text-align: center;
}

/* ── PROCESS ─────────────────────────────────── */
.process {
  padding: 120px 0;
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.process-step {
  display: flex;
  gap: 40px;
  padding: 32px 0 32px 72px;
  position: relative;
}

.step-number {
  position: absolute;
  left: 0;
  top: 32px;
  width: 56px; height: 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--cyan);
  z-index: 1;
  transition: border-color 300ms, box-shadow 300ms;
}

.process-step:hover .step-number {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.step-content {
  flex: 1;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 300ms, transform 200ms var(--ease-out);
}
.process-step:hover .step-content {
  border-color: var(--border-h);
  transform: translateX(4px);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--cyan-dim);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  margin-bottom: 12px;
}

.step-content h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-content p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* ── CASES ───────────────────────────────────── */
.cases {
  padding: 120px 0;
  background: var(--bg-2);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 300ms, transform 300ms var(--ease-out), box-shadow 300ms;
}
.case-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.case-video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
  background: var(--bg);
  display: block;
  text-decoration: none;
}
.case-video-thumb:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), rgba(123, 47, 255, 0.04));
}
.thumb-placeholder span:first-child { font-size: 40px; }

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 16, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms;
}
.case-video-thumb:hover .thumb-overlay { background: rgba(6, 6, 16, 0.2); }

.play-btn {
  width: 56px; height: 56px;
  background: rgba(0, 212, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: transform 200ms var(--ease-spring), background 200ms;
}
.case-video-thumb:hover .play-btn { transform: scale(1.1); background: var(--cyan); }

.case-info {
  padding: 24px;
}

.case-sector {
  display: inline-block;
  padding: 4px 10px;
  background: var(--purple-dim);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.case-info h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.case-info p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.metric-big {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-desc {
  font-size: 13px;
  color: var(--text-3);
}

/* Add card */
.case-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border-style: dashed;
  border-color: var(--border);
}
.case-add-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--text-3);
  padding: 40px;
}
.add-icon { color: var(--border); }
.case-add-inner p { font-size: 15px; }

.cases-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-3);
}
.cases-note a { color: var(--cyan); text-decoration: none; }
.cases-note a:hover { text-decoration: underline; }
.cases-note code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── VIDEO MODAL ─────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 16, 0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalIn 300ms var(--ease-spring) forwards;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  cursor: pointer;
  transition: background 150ms;
}
.modal-close:hover { background: rgba(255,255,255,0.15); }
.modal-close:focus-visible { outline: 2px solid var(--cyan); }

.modal-iframe-wrap {
  position: relative;
  aspect-ratio: 16/9;
}
.modal-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── TECH ────────────────────────────────────── */
.tech {
  padding: 100px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 200ms, transform 200ms var(--ease-out);
}
.tech-item:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.tech-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
}

.tech-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

/* ── TESTIMONIALS ────────────────────────────── */
.testimonials {
  padding: 120px 0;
  background: var(--bg-2);
}

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

.testimonial-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 300ms, transform 300ms var(--ease-out);
}
.testimonial-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
}

.stars {
  display: flex;
  gap: 4px;
}

.testimonial-card p {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.testimonial-card p::before { content: '"'; }
.testimonial-card p::after  { content: '"'; }

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card footer div { display: flex; flex-direction: column; gap: 2px; }

cite {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
  font-style: normal;
}

.testimonial-card footer div span {
  font-size: 13px;
  color: var(--text-3);
}

/* ── FAQ ─────────────────────────────────────── */
.faq {
  padding: 120px 0;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 300ms;
}
.faq-item.open { border-color: var(--border-h); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-1);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 150ms;
}
.faq-question:hover { color: var(--cyan); }
.faq-question:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }

.faq-icon {
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out), color 150ms;
  color: var(--text-3);
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--cyan); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease-out), padding 300ms;
  padding: 0 24px;
}
.faq-answer.open { max-height: 400px; padding: 0 24px 22px; }
.faq-answer p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

/* ── CTA BAND ────────────────────────────────── */
.cta-band {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 36px;
}

/* ── CONTACT ─────────────────────────────────── */
.contact {
  padding: 120px 0;
  background: var(--bg-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 200ms;
}
.info-card:hover { border-color: var(--border-h); }

.info-icon {
  width: 44px; height: 44px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.info-value {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  transition: color 150ms;
}
a.info-value:hover { color: var(--cyan); }

.info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(123, 47, 255, 0.08));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
}

/* Form */
.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.form-group label span { color: var(--cyan); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group select option { background: var(--bg-2); }

.form-group textarea { resize: vertical; min-height: 100px; }

.field-error {
  font-size: 13px;
  color: #ff4444;
  display: none;
}
.field-error.show { display: block; }
.form-group:has(.field-error.show) input,
.form-group:has(.field-error.show) select { border-color: #ff4444; }

.form-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  justify-content: center;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-size: 15px;
}
.form-success[hidden] { display: none; }

/* ── FOOTER ──────────────────────────────────── */
.footer {
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer-brand p { font-size: 14px; color: var(--text-3); line-height: 1.7; }
.footer-brand address {
  font-style: normal;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand address a { color: var(--text-2); text-decoration: none; transition: color 150ms; }
.footer-brand address a:hover { color: var(--cyan); }

.footer-nav h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 14px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 150ms;
}
.footer-nav a:hover { color: var(--text-1); }

.footer-cta h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.footer-cta p { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-3); text-decoration: none; transition: color 150ms; }
.footer-links a:hover { color: var(--text-1); }

/* ── WHATSAPP FLOAT ──────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 90;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 200ms var(--ease-spring), box-shadow 200ms;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5); }
.whatsapp-float:focus-visible { outline: 2px solid #25d366; outline-offset: 4px; }

.whatsapp-pulse {
  position: absolute;
  width: 60px; height: 60px;
  background: rgba(37, 211, 102, 0.4);
  border-radius: 50%;
  animation: waPulse 2.5s ease-out infinite;
}

/* ── KEYFRAMES ───────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

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

@keyframes waPulse {
  from { transform: scale(1); opacity: 0.6; }
  to   { transform: scale(1.8); opacity: 0; }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(48px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes auroraFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20%       { transform: translate(40px, -60px) scale(1.05); }
  40%       { transform: translate(-30px, 20px) scale(0.97); }
  60%       { transform: translate(50px, 40px) scale(1.03); }
  80%       { transform: translate(-20px, -30px) scale(1.01); }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 100px 24px 60px; }
  .hero-title { letter-spacing: -1px; }
  .hero-ctas { flex-direction: column; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }

  .process-timeline { padding-left: 24px; }
  .timeline-line { left: 24px; }
  .process-step { padding: 24px 0 24px 56px; }
  .step-number { width: 48px; height: 48px; font-size: 12px; }

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

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .whatsapp-pulse { width: 52px; height: 52px; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { letter-spacing: -0.5px; }
}
