/* ═══════════════════════════════════════════════════════════════════
   EBORATIC — styles.css
   Motor Visual · AURORA LIGHT MODE · Syne · Cielo / Violeta · Glassmorphism
   ═══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────
   0. IMPORT FONTS
   ────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;1,300&family=Cabinet+Grotesk:wght@300;400;500;700;800&display=swap');


/* ──────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS — Aurora Light Theme
   ────────────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-root:        #f4f6fb; /* Blanco perla/azulado muy suave */
  --bg-surface:     #ffffff; /* Blanco puro */
  --bg-card:        rgba(255, 255, 255, 0.6);
  --bg-card-hover:  rgba(255, 255, 255, 0.95);
  --bg-glass:       rgba(255, 255, 255, 0.72);

  /* Borders */
  --border:         rgba(15, 23, 42, 0.08); /* Gris oscuro muy transparente */
  --border-hover:   rgba(14, 165, 233, 0.35);
  --border-glow:    rgba(14, 165, 233, 0.5);

  /* Accent palette (Vibrantes para fondo claro) */
  --cyan:           #0ea5e9; /* Sky blue */
  --cyan-dim:       #0284c7;
  --violet:         #8b5cf6;
  --violet-dim:     #6d28d9;
  --teal:           #14b8a6;
  --pink:           #f43f5e; /* Rose */

  /* Glow halos (Sombras de color) */
  --glow-cyan:      rgba(14, 165, 233, 0.15);
  --glow-violet:    rgba(139, 92, 246, 0.15);
  --glow-strong:    rgba(14, 165, 233, 0.25);

  /* Text */
  --text:           #0f172a; /* Slate 900 (Casi negro) */
  --text-muted:     #475569; /* Slate 600 */
  --text-faint:     #94a3b8; /* Slate 400 */
  --text-label:     #0284c7;

  /* Typography */
  --font-display:   'Syne', sans-serif;
  --font-body:      'Cabinet Grotesk', sans-serif;
  --font-mono:      'DM Mono', monospace;

  /* Geometry */
  --radius-xs:      6px;
  --radius-sm:      12px;
  --radius-md:      20px;
  --radius-lg:      28px;
  --radius-xl:      40px;
  --radius-pill:    999px;

  /* Shadows (Adaptadas para luz) */
  --shadow-sm:      0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-card:    0 8px 32px rgba(15, 23, 42, 0.06),
                    0 0 0 1px var(--border);
  --shadow-hover:   0 20px 60px rgba(15, 23, 42, 0.12),
                    0 0 0 1px rgba(14, 165, 233, 0.2),
                    0 10px 40px rgba(14, 165, 233, 0.1);
  --shadow-neon:    0 8px 20px var(--glow-cyan),
                    0 0 40px var(--glow-cyan);
  --shadow-neon-v:  0 8px 20px var(--glow-violet),
                    0 0 40px var(--glow-violet);

  /* Motion curves */
  --ease-expo:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-expo:   cubic-bezier(0.7, 0, 0.84, 0);

  /* Z-index stack */
  --z-bg:     0;
  --z-base:   1;
  --z-card:   10;
  --z-nav:    900;
  --z-cursor: 9999;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-root);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100svh;
  cursor: none; 
}

@media (hover: none) {
  body { cursor: auto; }
}

img, video, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: none; font-family: inherit; border: none; background: none; }

/* Global selection style */
::selection {
  background: rgba(14, 165, 233, 0.2);
  color: var(--cyan-dim);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-root); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--cyan), var(--violet));
  border-radius: var(--radius-pill);
}


/* ──────────────────────────────────────────────────────────────────
   3. BACKGROUND ATMOSPHERE
   ────────────────────────────────────────────────────────────────── */

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: var(--z-bg);
  mix-blend-mode: overlay;
  opacity: 0.15;
}

/* Grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: var(--z-bg);
}

/* Ambient orbs — Tonos pastel vibrantes */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-bg);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
  animation: orb-drift ease-in-out infinite alternate;
}

.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  top: -15%; left: -12%;
  animation-duration: 16s;
}

.orb-2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  bottom: -10%; right: -8%;
  animation-duration: 20s;
  animation-delay: -10s;
}

.orb-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
  top: 50%; left: 45%;
  animation-duration: 26s;
  animation-delay: -5s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}


/* ──────────────────────────────────────────────────────────────────
   4. CUSTOM CURSOR
   ────────────────────────────────────────────────────────────────── */
.cur-dot,
.cur-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  border-radius: 50%;
  will-change: transform;
}

/* Inner dot */
.cur-dot {
  width: 8px; height: 8px;
  background: var(--text);
  margin: -4px 0 0 -4px;
  transition: transform 0.1s var(--ease-expo),
              background 0.3s,
              width 0.35s var(--ease-bounce),
              height 0.35s var(--ease-bounce);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* Outer ring */
.cur-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  margin: -18px 0 0 -18px;
  transition: transform 0.06s linear,
              border-color 0.4s,
              width 0.4s var(--ease-bounce),
              height 0.4s var(--ease-bounce),
              opacity 0.4s;
}

/* Hover state */
.cur-dot.hover {
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  background: var(--violet);
  box-shadow: 0 0 14px var(--glow-violet);
}

.cur-ring.hover {
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.05); /* Relleno sutil */
  opacity: 1;
}

/* Click state */
.cur-dot.click {
  transform: scale(0.6);
}

/* Hide on touch devices */
@media (hover: none) {
  .cur-dot, .cur-ring { display: none; }
}


/* ──────────────────────────────────────────────────────────────────
   5. NAVBAR — Glassmorphism luminoso
   ────────────────────────────────────────────────────────────────── */
/* ──────────────────────────────────────────────────────────────────
   5. NAVBAR — Glassmorphism luminoso (Fondo fijo y centrado absoluto)
   ────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  
  /* 1. FONDO BLANCO DESDE EL PRINCIPIO */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  
  /* 2. CENTRADO PERFECTO CON GRID */
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Divide el espacio: Izquierda | Centro exacto | Derecha */
  align-items: center;
  
  padding: 1.2rem 6%;
  transition: padding 0.4s var(--ease-expo), background 0.4s;
}

/* Al hacer scroll, solo hacemos el menú un poco más estrecho y opaco */
#nav.scrolled {
  padding: 0.8rem 6%;
  background: rgba(255, 255, 255, 0.98);
}

/* 3. ALINEACIÓN DE LOS ELEMENTOS DENTRO DEL GRID */
.nav-logo {
  justify-self: start; /* Empuja el logo a la izquierda */
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--cyan-dim) 0%, var(--violet-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  transition: filter 0.3s;
}

.nav-logo-img {
  justify-self: start; /* Empuja la imagen del logo a la izquierda */
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s, opacity 0.3s;
}

.nav-links {
  justify-self: center; /* CENTRA LOS ENLACES EXACTAMENTE EN MEDIO DE LA PANTALLA */
  display: flex;
  align-items: center;
  gap: 2.6rem;
}

.nav-cta {
  justify-self: end; /* Empuja el botón a la derecha */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease-expo);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
  white-space: nowrap;
  cursor: none;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--cyan-dim) 0%, var(--violet-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  transition: filter 0.3s;
}

.nav-logo:hover {
  filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.2));
}

/* Logo image variant */
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s, opacity 0.3s;
}

.nav-logo-img:hover {
  filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.2));
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.35s var(--ease-expo);
  border-radius: 2px;
}

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

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

/* CTA pill */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease-expo);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25);
  white-space: nowrap;
  cursor: none;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

/* Hamburger */
.nav-ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  padding: 5px;
  background: none; border: none;
  cursor: none;
  z-index: calc(var(--z-nav) + 5);
}

.nav-ham-line {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.4s var(--ease-expo);
  transform-origin: center;
}

.nav-ham.open .nav-ham-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open .nav-ham-line:nth-child(2) { transform: scaleX(0); opacity: 0; }
.nav-ham.open .nav-ham-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 85vw);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.05);
  z-index: calc(var(--z-nav) + 2);
  display: flex;
  flex-direction: column;
  padding: 7rem 2.5rem 3rem;
  gap: 0.4rem;
  transform: translateX(110%);
  transition: transform 0.5s var(--ease-expo);
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(24px);
  transition: color 0.3s, opacity 0.4s, transform 0.4s var(--ease-expo);
}

.nav-drawer.open a {
  color: var(--text);
  opacity: 1;
  transform: translateX(0);
}

.nav-drawer.open a:nth-child(1) { transition-delay: 0.06s; }
.nav-drawer.open a:nth-child(2) { transition-delay: 0.12s; }
.nav-drawer.open a:nth-child(3) { transition-delay: 0.18s; }
.nav-drawer.open a:nth-child(4) { transition-delay: 0.24s; }
.nav-drawer.open a:nth-child(5) { transition-delay: 0.30s; }
.nav-drawer.open a:nth-child(6) { transition-delay: 0.36s; }

.nav-drawer a:hover { color: var(--cyan-dim); }

/* Drawer overlay */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  z-index: calc(var(--z-nav) + 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

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


/* ──────────────────────────────────────────────────────────────────
   6. HERO — Cielo y Auroras
   ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 6% 6rem;
  overflow: hidden;
}

/* Animated mesh gradient behind hero content */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%,  rgba(14, 165, 233, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 80% 70%,  rgba(139, 92, 246, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%,  rgba(244, 63, 94, 0.1) 0%, transparent 65%);
  animation: hero-mesh-shift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-mesh-shift {
  0%   {
    background:
      radial-gradient(ellipse 80% 60% at 20% 30%,  rgba(14, 165, 233, 0.2) 0%, transparent 55%),
      radial-gradient(ellipse 60% 70% at 80% 70%,  rgba(139, 92, 246, 0.15) 0%, transparent 55%),
      radial-gradient(ellipse 50% 50% at 50% 50%,  rgba(244, 63, 94, 0.1) 0%, transparent 65%);
  }
  33%  {
    background:
      radial-gradient(ellipse 70% 80% at 70% 15%,  rgba(14, 165, 233, 0.25) 0%, transparent 55%),
      radial-gradient(ellipse 80% 60% at 20% 80%,  rgba(139, 92, 246, 0.1) 0%, transparent 55%),
      radial-gradient(ellipse 40% 55% at 60% 45%,  rgba(244, 63, 94, 0.15) 0%, transparent 65%);
  }
  66%  {
    background:
      radial-gradient(ellipse 60% 70% at 85% 50%,  rgba(14, 165, 233, 0.15) 0%, transparent 55%),
      radial-gradient(ellipse 70% 50% at 10% 60%,  rgba(139, 92, 246, 0.25) 0%, transparent 55%),
      radial-gradient(ellipse 55% 60% at 40% 20%,  rgba(20, 184, 166, 0.1) 0%, transparent 65%);
  }
  100% {
    background:
      radial-gradient(ellipse 80% 60% at 30% 70%,  rgba(14, 165, 233, 0.2) 0%, transparent 55%),
      radial-gradient(ellipse 65% 75% at 75% 25%,  rgba(139, 92, 246, 0.2) 0%, transparent 55%),
      radial-gradient(ellipse 50% 50% at 55% 55%,  rgba(244, 63, 94, 0.12) 0%, transparent 65%);
  }
}

/* Scanline strip at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  margin-bottom: 2.2rem;
  animation: fade-up 0.7s var(--ease-expo) both;
}

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

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

/* Headline */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem); 
  font-weight: 800;
  line-height: 1.1; 
  letter-spacing: -0.045em;
  margin-bottom: 1.8rem;
}

.hero-title .line-1 {
  display: block;
  color: var(--text);
  animation: fade-up 0.8s 0.1s var(--ease-expo) both;
}

.hero-title .line-2 {
  display: block;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 50%, var(--pink) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    fade-up 0.8s 0.18s var(--ease-expo) both,
    gradient-pan 5s linear infinite;
  padding-bottom: 0.15em; 
  padding-right: 0.1em;
}

@keyframes gradient-pan {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Sub-headline */
.hero-sub {
  /* 1. LETRA MÁS GRANDE: Aumentamos los valores mínimo, ideal y máximo */
  font-size: clamp(1.15rem, 2.5vw, 1.35rem); 
  
  /* 2. LETRA MÁS GORDA: Subimos el peso de la fuente a Bold (700) */
  font-weight: 700; 

  /* Ajustes de espaciado adaptados al nuevo tamaño */
  max-width: 600px; /* Ampliamos un poco la caja porque la letra es mayor */
  margin: 0 auto 3rem;
  line-height: 1.6; /* Reducimos ligeramente el interlineado para que no se vea desarmado */
  animation: fade-up 0.8s 0.26s var(--ease-expo) both;
}

/* Action buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 0.8s 0.34s var(--ease-expo) both;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fade-up 1s 0.8s var(--ease-expo) both;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--cyan-dim), transparent);
  animation: scroll-pulse 2.2s ease infinite;
}

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


/* ──────────────────────────────────────────────────────────────────
   7. BUTTONS
   ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  transition: all 0.35s var(--ease-expo);
  position: relative;
  overflow: hidden;
  cursor: none;
  border: none;
  letter-spacing: 0.01em;
}

/* Shimmer on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%);
  transition: left 0.5s var(--ease-expo);
}

.btn:hover::before { left: 160%; }

.btn-primary {
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35);
}

.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  padding: 0.9rem 2.2rem;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-dim);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
}

.btn-sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.8rem;
  background: transparent;
  color: var(--cyan-dim);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.btn-sm:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}


/* ──────────────────────────────────────────────────────────────────
   8. SECTION LAYOUT HELPERS
   ────────────────────────────────────────────────────────────────── */
section {
  position: relative;
  z-index: var(--z-base);
  padding: 7rem 6%;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan-dim);
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-title .accent {
  background: linear-gradient(135deg, var(--cyan-dim), var(--violet-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 500px;
  font-weight: 500;
}

/* Section separator line */
.section-sep {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border) 20%,
    var(--border) 80%,
    transparent 100%);
  margin: 0;
}


/* ──────────────────────────────────────────────────────────────────
   9. SERVICE CARDS — Premium White Glass
   ────────────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.2rem;
  margin-top: 3.5rem;
}

.srv-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem 1.8rem;
  overflow: hidden;
  transition:
    transform  0.4s var(--ease-expo),
    border-color 0.4s,
    box-shadow 0.4s,
    background 0.4s;
  cursor: none;
  box-shadow: var(--shadow-sm);
}

/* Top neon edge that sweeps in */
.srv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-expo);
  z-index: 2;
}

/* Bottom glow pool */
.srv-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 120px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s var(--ease-expo);
  pointer-events: none;
  z-index: 0;
}

/* Mouse-tracked spotlight (applied by JS) */
.srv-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 200px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.8) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.srv-card:hover .srv-spotlight { opacity: 1; }

.srv-card:hover {
  transform: translateY(-10px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 165, 233, 0.2);
}

.srv-card:hover::before { transform: scaleX(1); }

.srv-card:hover::after {
  opacity: 1;
  bottom: -30px;
}

/* All inner elements above overlays */
.srv-card > *:not(.srv-spotlight) {
  position: relative;
  z-index: 1;
}

/* Card image strip */
.srv-img {
  width: calc(100% + 3.6rem);
  margin: -2rem -1.8rem 1.6rem;
  height: 155px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.srv-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.95) saturate(1.1);
  transition: filter 0.55s var(--ease-expo), transform 0.55s var(--ease-expo);
  display: block;
}

.srv-card:hover .srv-img img {
  filter: brightness(1.05) saturate(1.2);
  transform: scale(1.05);
}

/* Icon badge */
.srv-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--cyan-dim);
  margin-bottom: 1.4rem;
  transition: all 0.45s var(--ease-bounce);
}

.srv-card:hover .srv-icon {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan-dim);
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

/* Card title */
.srv-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  color: var(--text);
  transition: color 0.3s;
}

.srv-card:hover h3 { color: var(--cyan-dim); }

/* Card description */
.srv-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
  font-weight: 500;
  transition: color 0.3s;
}

.srv-card:hover p { color: var(--text); }

/* Card link */
.srv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--cyan-dim);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-pill);
  padding: 0.42rem 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-expo);
}

.srv-link i {
  font-size: 0.7rem;
  transition: transform 0.35s var(--ease-bounce);
}

.srv-link:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.2);
}

.srv-link:hover i { transform: translateX(4px); }

/* Card — violet variant accent */
.srv-card.variant-v .srv-icon { color: var(--violet-dim); border-color: rgba(139, 92, 246, 0.15); background: rgba(139, 92, 246, 0.08); }
.srv-card.variant-v:hover .srv-icon { background: var(--violet); color: #fff; box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3); }
.srv-card.variant-v .srv-link { color: var(--violet-dim); border-color: rgba(139, 92, 246, 0.3); }
.srv-card.variant-v .srv-link:hover { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2); }
.srv-card.variant-v:hover h3 { color: var(--violet-dim); }
.srv-card.variant-v::before { background: linear-gradient(90deg, var(--violet), var(--pink), var(--cyan)); }


/* ──────────────────────────────────────────────────────────────────
   10. GLASSMORPHISM CARD UTILITY
   ────────────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all 0.35s var(--ease-expo);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}


/* ──────────────────────────────────────────────────────────────────
   11. STATS BAR
   ────────────────────────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 2.5rem 6%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 40px rgba(15, 23, 42, 0.02);
}

.stat-item {
  flex: 1;
  min-width: 140px;
  max-width: 210px;
  text-align: center;
  padding: 1.2rem 1.5rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan-dim), var(--violet-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
}


/* ──────────────────────────────────────────────────────────────────
   12. MARQUEE
   ────────────────────────────────────────────────────────────────── */
.marquee-wrap {
  overflow: hidden;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.marquee-track {
  display: flex;
  gap: 0.8rem;
  width: max-content;
  animation: marquee-run 32s linear infinite;
}

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

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.m-chip i { color: var(--cyan-dim); font-size: 0.82rem; }
.m-chip:hover { 
  border-color: var(--cyan); 
  color: var(--text); 
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15); 
}

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


/* ──────────────────────────────────────────────────────────────────
   13. SCROLL REVEAL ANIMATIONS
   ────────────────────────────────────────────────────────────────── */

/* Base fade-up keyframe — used by hero & JS-driven reveals */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fade-left {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fade-right {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Observer-driven reveal classes */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity  0.8s var(--ease-expo),
    transform 0.8s var(--ease-expo);
}

.reveal         { transform: translateY(36px); }
.reveal-left    { transform: translateX(-36px); }
.reveal-right   { transform: translateX(36px); }
.reveal-scale   { transform: scale(0.9); }

.reveal.in,
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }
.d6 { transition-delay: 0.48s; }

/* Direct animation classes (no JS needed) */
.anim-fade-up    { animation: fade-up   0.8s var(--ease-expo) both; }
.anim-fade-left  { animation: fade-left  0.8s var(--ease-expo) both; }
.anim-fade-right { animation: fade-right 0.8s var(--ease-expo) both; }
.anim-scale-in   { animation: scale-in   0.6s var(--ease-bounce) both; }


/* ──────────────────────────────────────────────────────────────────
   14. FOOTER
   ────────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 3rem 6%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: var(--z-base);
}

.footer-center {
  text-align: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 0.8rem;
  transition: color 0.25s;
}

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

@media (max-width: 768px) {
  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}


/* ──────────────────────────────────────────────────────────────────
   15. UTILITY CLASSES
   ────────────────────────────────────────────────────────────────── */
.text-cyan   { color: var(--cyan); }
.text-violet { color: var(--violet); }
.text-muted  { color: var(--text-muted); }
.text-faint  { color: var(--text-faint); }
.mono        { font-family: var(--font-mono); }
.display     { font-family: var(--font-display); }

.neon-text {
  text-shadow: 0 0 15px var(--glow-cyan), 0 0 30px rgba(14, 165, 233, 0.4);
}

.neon-border {
  border-color: rgba(14, 165, 233, 0.4) !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.18),
              inset 0 0 16px rgba(14, 165, 233, 0.04);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus ring — accessible */
:focus-visible {
  outline: 2px solid var(--cyan-dim);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}


/* ──────────────────────────────────────────────────────────────────
   16. RESPONSIVE BREAKPOINTS
   ────────────────────────────────────────────────────────────────── */

/* Layout predeterminado para escritorio */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-features-col { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 2rem; }
.special-projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 860px; margin-top: 1.5rem; }

/* 1. Pantallas grandes (Tablets horizontales) */
@media (max-width: 900px) {
  section { padding: 5rem 5%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}


/* 2. Tablets y móviles grandes */
@media (max-width: 768px) {
  /* Convierte la cuadrícula en una columna flexible */
  .about-grid { display: flex !important; flex-direction: column !important; gap: 2rem !important; }
  
  /* Orden de los elementos: Texto (1), Imagen Campus (2), Botón (3) */
  .about-text-col { order: 1; display: flex; flex-direction: column; }
  .about-image-col { order: 2; width: 100% !important; margin: 2rem 0 !important; }
  
  /* Desconecta los bloques de características del flujo de texto para mandarlos abajo */
  .about-features-col { order: 4; }
  .about-button { order: 3; align-self: flex-start; margin-bottom: 2rem; }
  
  /* Arregla las tarjetas de CLM y Santa Tecla para que se apilen */
  .special-projects-grid { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; }
  
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

/* 3. Móviles estándar */
@media (max-width: 640px) {
  section { padding: 4rem 5%; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-bar { gap: 0; }
  .stat-item { min-width: 48%; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  footer { grid-template-columns: 1fr; text-align: center; }
}

/* 4. Móviles pequeños */
@media (max-width: 420px) {
  .stat-item { min-width: 100%; }
  .stat-item + .stat-item::before { height: 1px; width: 50%; top: 0; left: 25%; bottom: auto; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   CORRECCIÓN DEL VIDEO / OVERLAY MODO CLARO
   ========================================================================== */
.hero { box-shadow: none !important; background-color: transparent !important; }
.hero video, .video-bg { filter: brightness(1) contrast(1) !important; opacity: 1 !important; }
.hero-overlay, .video-overlay, .overlay, .bg-overlay { background: rgba(255, 255, 255, 0.4) !important; backdrop-filter: blur(4px); }