/* APEX Soluciones — Design System
   Aesthetic: futuristic, dark, neon blue + violet accents, glassmorphism
   Type: Space Grotesk (display), JetBrains Mono (technical), system (body)
*/

:root {
  /* Background palette - cool deep navy/black */
  --bg-0: #04060c;
  --bg-1: #07091340;
  --bg-2: #0c1020;
  --surface: rgba(15, 18, 32, 0.55);
  --surface-strong: rgba(20, 24, 42, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --fg: #f4f6fb;
  --fg-dim: rgba(244, 246, 251, 0.66);
  --fg-faint: rgba(244, 246, 251, 0.42);
  --fg-ghost: rgba(244, 246, 251, 0.22);

  /* Accents - oklch based, same chroma/lightness, varying hue */
  --neon-blue: oklch(0.72 0.18 248);
  --neon-violet: oklch(0.68 0.22 295);
  --neon-cyan: oklch(0.82 0.14 210);

  --grad-primary: linear-gradient(135deg, oklch(0.72 0.18 248) 0%, oklch(0.68 0.22 295) 100%);
  --grad-soft: linear-gradient(135deg, oklch(0.72 0.18 248 / 0.18) 0%, oklch(0.68 0.22 295 / 0.18) 100%);
  --grad-text: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);

  /* Spacing / radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 999px;

  --shadow-glow-blue: 0 0 40px rgba(86, 132, 255, 0.18), 0 0 120px rgba(86, 132, 255, 0.08);
  --shadow-glow-violet: 0 0 40px rgba(170, 100, 255, 0.18), 0 0 120px rgba(170, 100, 255, 0.08);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px -20px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--fg);
  font-family: 'Space Grotesk', ui-sans-serif, -apple-system, system-ui, sans-serif;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(86, 132, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(170, 100, 255, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(60, 200, 255, 0.08), transparent 60%),
    var(--bg-0);
  min-height: 100vh;
}

/* Grid backdrop - subtle technical lines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Noise overlay for texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

/* ─── Typography utilities ─── */
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-blue));
}

h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(40px, 6.4vw, 86px); font-weight: 400; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 400; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.5vw, 24px); font-weight: 500; }

.gradient-text {
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.neon-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Layout ─── */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}
section { position: relative; padding: 120px 0; z-index: 1; }
section + section { margin-top: -20px; }

/* ─── Navbar ─── */
.nav-wrap {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 24px 28px 0;
}
.nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 22px;
  background: rgba(10, 12, 22, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.3s ease;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.04em; font-size: 14px;
}
.nav-logo-mark {
  width: 22px; height: 22px; position: relative;
  display: grid; place-items: center;
}
.nav-logo-mark svg { width: 100%; height: 100%; }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  font-size: 13px;
  color: var(--fg-dim);
  padding: 8px 14px;
  border-radius: var(--r-full);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
.nav-cta {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, #ffffff 0%, #d6dcec 100%);
  color: #07091a;
  position: relative;
  transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: var(--grad-primary);
  filter: blur(18px);
  opacity: 0.35;
  border-radius: inherit;
  z-index: -1;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.3s;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #c8d0e2 100%);
  color: #07091a;
  box-shadow: 0 10px 30px -10px rgba(120, 160, 255, 0.6), inset 0 -2px 0 rgba(0,0,0,0.08);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(120, 160, 255, 0.8); }
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: var(--grad-primary);
  filter: blur(24px);
  opacity: 0.4;
  border-radius: inherit;
  z-index: -1;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 0.7; }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─── Cards / glass ─── */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  pointer-events: none;
}

/* ─── Hero ─── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-stage .spline-stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44%;
  right: -12%;
  z-index: 2;
}
.hero-stage .spline-stage spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-stage .hero-spotlight {
  top: -10%;
  left: 40%;
  width: 70%;
  height: 130%;
}
/* Left-to-right readability gradient — fully opaque on the left where text lives,
   completely transparent on the right where the robot floats — no visible seam */
.hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(4,6,12,1)    0%,
    rgba(4,6,12,0.98) 32%,
    rgba(4,6,12,0.88) 44%,
    rgba(4,6,12,0.5)  56%,
    rgba(4,6,12,0.15) 68%,
    transparent       80%);
  pointer-events: none;
  z-index: 5;
}
.hero-stage::before {
  /* Subtle bottom fade so it bleeds into the next section seamlessly */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(4,6,12,0.85) 70%, var(--bg-0) 100%);
  pointer-events: none;
  z-index: 5;
}
.hero-content {
  position: relative;
  z-index: 6;
  max-width: 580px;
}
.hero-shell {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 28px 0 48px;
}
@media (min-width: 1100px) { .hero-shell { padding-left: 72px; } }
@media (min-width: 1500px) { .hero-shell { padding-left: 96px; } }
@media (max-width: 600px)  { .hero-shell { padding: 0 24px; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 40px 0 60px; }
  .hero-stage .spline-stage { left: 0; right: -20%; opacity: 0.45; }
  .hero-stage::after {
    background: linear-gradient(180deg,
      rgba(4,6,12,0.75) 0%,
      rgba(4,6,12,0.55) 40%,
      rgba(4,6,12,0.92) 100%);
  }
  .hero-content { max-width: none; }
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-pill-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  font-size: 11px; color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
.hero-pill-arrow { color: var(--fg-faint); font-size: 11px; margin-left: 4px; }

.hero h1 { margin-bottom: 28px; max-width: none; font-size: clamp(36px, 5.2vw, 64px); padding-right: 0.15em; overflow-wrap: break-word; }
.hero h1 .accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 300;
}
.hero p.sub {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-dim);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta {
  margin-top: 64px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-faint);
  margin-top: 4px;
}

/* Hero animated visual */
.hero-visual {
  position: relative;
  height: 540px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(86,132,255,0.18), transparent 60%),
    linear-gradient(180deg, rgba(15,18,32,0.6), rgba(10,12,22,0.9));
  backdrop-filter: blur(20px);
}

/* Spotlight sweep behind robot */
.hero-spotlight {
  position: absolute;
  top: -20%;
  left: 30%;
  width: 80%;
  height: 140%;
  background: radial-gradient(ellipse 50% 35% at 50% 30%, rgba(255,255,255,0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
  animation: spotlight-drift 12s ease-in-out infinite alternate;
}
@keyframes spotlight-drift {
  0%   { transform: translate(-10%, 0) rotate(-3deg); opacity: 0.7; }
  100% { transform: translate(10%, 4%) rotate(3deg);  opacity: 1; }
}

/* Spline 3D scene container */
.spline-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.spline-stage spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
}
/* Cover the Spline watermark in the bottom-right corner */
.spline-watermark-mask {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 150px;
  height: 50px;
  background:
    radial-gradient(circle at 50% 50%, rgba(10,12,22,0.95) 0%, rgba(10,12,22,0.85) 60%, transparent 100%);
  z-index: 3;
  pointer-events: none;
  border-radius: 12px;
}

.spline-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}
.spline-fallback-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--neon-blue);
  box-shadow: 0 0 24px var(--neon-blue);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ─── Performance: skip rendering off-screen sections until near viewport ─── */
section:not(.hero),
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 800px;
}

/* ─── Respect reduced-motion preference ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Mobile gallery view for Servicios + Proceso ─── */
@media (max-width: 700px) {
  /* Servicios → horizontal scroll gallery */
  #servicios .services-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 22px 14px;
    margin: 0 -22px;
    background: transparent;
    border: 0;
    border-radius: 0;
    scrollbar-width: none;
  }
  #servicios .services-grid::-webkit-scrollbar { display: none; }
  #servicios .service-card {
    flex: 0 0 152px;
    min-height: 152px;
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(18,22,40,0.95), rgba(10,12,22,0.95)) !important;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    cursor: default;
  }
  #servicios .service-card::before { display: none !important; }
  #servicios .service-icon {
    width: 40px; height: 40px;
    margin-bottom: 0;
    background: rgba(86, 132, 255, 0.12) !important;
    border-color: rgba(86, 132, 255, 0.3) !important;
    color: var(--neon-blue) !important;
    box-shadow: none !important;
  }
  #servicios .service-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.25;
  }
  #servicios .service-card p,
  #servicios .service-meta { display: none !important; }

  /* Proceso → horizontal scroll gallery */
  #proceso .workflow { padding: 8px 0 0; }
  #proceso .workflow-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 22px 14px;
    margin: 0 -22px;
    scrollbar-width: none;
  }
  #proceso .workflow-track::-webkit-scrollbar { display: none; }
  #proceso .workflow-line { display: none; }
  #proceso .workflow-step {
    flex: 0 0 140px;
    padding: 18px 14px;
    background: linear-gradient(180deg, rgba(18,22,40,0.95), rgba(10,12,22,0.95));
    border: 1px solid var(--border);
    border-radius: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    min-height: 140px;
  }
  #proceso .workflow-node {
    width: 40px; height: 40px;
    margin: 0;
    background: rgba(86, 132, 255, 0.12);
    border: 1px solid rgba(86, 132, 255, 0.3);
  }
  #proceso .workflow-node-inner {
    width: 100%; height: 100%;
    background: transparent;
  }
  #proceso .workflow-num { display: none; }
  #proceso .workflow-step h4 {
    font-size: 14px;
    margin: 0;
    line-height: 1.25;
  }
  #proceso .workflow-step p { display: none; }
}
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  /* Disable ALL animations and transitions */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Disable expensive blur/backdrop-filter */
  .nav, .glass, .hero-pill, .toast, .to-top, .hero-chip,
  .spline-stage, .flow-node, .pv-window {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* Hide the Spline 3D robot entirely on mobile — single biggest perf win */
  .spline-stage { display: none !important; }
  .hero-stage .cursor-spotlight,
  .hero-stage .hero-spotlight,
  .hero-stage::before,
  .spline-fallback { display: none !important; }
  /* Replace robot area with a static dark gradient */
  .hero-stage::after {
    background: linear-gradient(180deg, rgba(4,6,12,0.6) 0%, rgba(4,6,12,0.95) 100%) !important;
  }
  /* Disable noise + grid backdrop on mobile (they repaint a lot) */
  body::before, body::after { display: none !important; }
  /* Static reveal — no fade-in motion */
  .reveal { opacity: 1 !important; transform: none !important; }
  /* Pause marquee */
  .marquee { animation: none !important; }
  /* Stop chart bars + bg pulses */
  .chart-bar, .orbit, .hero-orb, .hero-chip-dot, .dash-tag-dot,
  .flow-node-status, .wa-float::before, .loader-mark svg,
  .workflow-line::after, .hero-spotlight { animation: none !important; }
  /* Stop SVG motion on flow canvas */
  .flow-svg animateMotion { display: none !important; }
}

/* Cursor-following spotlight inside the hero visual */
.cursor-spotlight {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(200, 220, 255, 0.22) 0%, rgba(170, 100, 255, 0.10) 35%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}
.hero-visual:hover .cursor-spotlight { opacity: 1; }

/* Orb in hero */
.hero-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c1d3ff, oklch(0.55 0.2 260) 40%, #0a0d1c 80%);
  box-shadow:
    0 0 80px 10px rgba(120, 160, 255, 0.45),
    0 0 180px 20px rgba(170, 100, 255, 0.25),
    inset -20px -40px 80px rgba(0,0,0,0.6),
    inset 20px 20px 60px rgba(170, 100, 255, 0.3);
  animation: float-orb 8s ease-in-out infinite;
}
.hero-orb::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(170, 200, 255, 0.18);
}
@keyframes float-orb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -54%) scale(1.03); }
}

/* Orbit rings */
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 50%;
  animation: rotate-orbit 40s linear infinite;
}
.orbit::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neon-blue);
  top: -4px; left: 50%;
  box-shadow: 0 0 12px var(--neon-blue);
}
.orbit-1 { width: 360px; height: 360px; }
.orbit-2 { width: 460px; height: 460px; animation-duration: 60s; animation-direction: reverse; }
.orbit-2::before { background: var(--neon-violet); box-shadow: 0 0 12px var(--neon-violet); top: 50%; left: -4px; }
.orbit-3 { width: 560px; height: 560px; animation-duration: 80s; }
.orbit-3::before { background: var(--neon-cyan); box-shadow: 0 0 12px var(--neon-cyan); top: 50%; right: -4px; left: auto; }
@keyframes rotate-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating chips in hero visual */
.hero-chip {
  position: absolute;
  padding: 10px 14px;
  background: rgba(15, 18, 32, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(12px);
  animation: chip-float 6s ease-in-out infinite;
}
.hero-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
}
.chip-1 { top: 16%; right: 8%;  animation-delay: 0s; }
.chip-2 { top: 32%; right: 18%; animation-delay: -2s; }
.chip-3 { bottom: 30%; right: 22%; animation-delay: -4s; }
.chip-4 { bottom: 16%; right: 10%; animation-delay: -3s; }
@media (max-width: 900px) {
  .chip-1, .chip-2, .chip-3, .chip-4 { display: none; }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-visual { height: 620px; }
}

/* ─── Marquee logos ─── */
.marquee-wrap {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,0.2);
}
.marquee-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 28px;
}
.marquee {
  display: flex;
  gap: 64px;
  animation: scroll-x 36s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.marquee-item:hover { opacity: 1; }
.marquee-item .dot { width: 6px; height: 6px; background: var(--fg-faint); border-radius: 50%; }
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* List version (mobile fallback when marquee is paused) */
.marquee-list { display: none; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .marquee { display: none !important; }
  .marquee-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    padding: 0 22px;
  }
  .marquee-list .marquee-item {
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    opacity: 0.85;
  }
}

/* ─── Section headers ─── */
.section-head {
  margin-bottom: 64px;
  display: grid;
  gap: 20px;
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 { max-width: 18ch; }
.section-head .lead {
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.55;
  max-width: 52ch;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
  .section-head .lead { justify-self: end; }
}

/* ─── Servicios cards ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: linear-gradient(180deg, rgba(12,15,28,0.95), rgba(8,10,18,0.95));
  padding: 36px 32px 32px;
  position: relative;
  transition: background 0.3s;
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  background: linear-gradient(180deg, rgba(20,25,48,0.95), rgba(12,15,28,0.95));
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 160, 255, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--neon-blue);
  position: relative;
}
.service-card:hover .service-icon {
  background: rgba(86, 132, 255, 0.12);
  border-color: rgba(86, 132, 255, 0.3);
  box-shadow: 0 0 24px rgba(86, 132, 255, 0.25);
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; font-weight: 500; }
.service-card p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; }
.service-meta {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--fg-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-meta-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: all 0.25s;
}
.service-card:hover .service-meta-arrow {
  background: #fff; color: #07091a; border-color: #fff;
  transform: rotate(-45deg);
}

/* ─── Workflow ─── */
.workflow {
  position: relative;
  padding: 48px 0;
}
.workflow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.workflow-line {
  position: absolute;
  top: 38px;
  left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
}
.workflow-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
  box-shadow: 0 0 8px var(--neon-blue);
  animation: workflow-progress 6s ease-in-out infinite;
}
@keyframes workflow-progress {
  0% { width: 0; }
  60% { width: 100%; }
  100% { width: 100%; opacity: 0; }
}
.workflow-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}
.workflow-node {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(20,25,48,0.95), rgba(8,10,18,0.95));
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--fg);
  position: relative;
  z-index: 1;
}
.workflow-node-inner {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-0);
  display: grid; place-items: center;
  position: relative;
}
.workflow-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--neon-blue);
  letter-spacing: 0.1em;
}
.workflow-icon { color: var(--neon-blue); }
.workflow-step:nth-child(odd) .workflow-icon { color: var(--neon-violet); }
.workflow-step:nth-child(odd) .workflow-num { color: var(--neon-violet); }

.workflow-step h4 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.workflow-step p { font-size: 13px; color: var(--fg-faint); line-height: 1.5; }

@media (max-width: 900px) {
  .workflow-track { grid-template-columns: 1fr; gap: 28px; }
  .workflow-line { display: none; }
}

/* ─── Automatizaciones dashboard mockup ─── */
.auto-layout {
  display: grid;
  gap: 24px;
}
@media (min-width: 1000px) {
  .auto-layout { grid-template-columns: 0.85fr 1.15fr; }
}
.auto-left { display: grid; gap: 24px; }

.dash {
  padding: 24px;
  border-radius: var(--r-lg);
  position: relative;
}
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.dash-head h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 500;
}
.dash-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: flex; align-items: center; gap: 6px;
}
.dash-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.dash-big {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dash-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px;
  color: #4ade80;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 10px;
}

/* Chart bars */
.chart {
  display: flex; align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-top: 16px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--neon-blue), oklch(0.5 0.18 260));
  border-radius: 3px 3px 0 0;
  opacity: 0.8;
  animation: bar-rise 1.2s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
@keyframes bar-rise {
  from { height: 0 !important; opacity: 0; }
}

/* Workflow node graph */
.flow-canvas {
  padding: 28px;
  border-radius: var(--r-lg);
  min-height: 360px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px circle at 70% 20%, rgba(170, 100, 255, 0.08), transparent 60%),
    radial-gradient(600px circle at 20% 80%, rgba(86, 132, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(12,15,28,0.95), rgba(8,10,18,0.95));
}
.flow-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 40%, transparent 80%);
}
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-node {
  position: absolute;
  background: linear-gradient(180deg, rgba(22,28,52,0.95), rgba(12,15,28,0.95));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  min-width: 140px;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.flow-node-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(86, 132, 255, 0.12);
  border: 1px solid rgba(86, 132, 255, 0.25);
  display: grid; place-items: center;
  color: var(--neon-blue);
}
.flow-node-icon.violet { background: rgba(170,100,255,0.12); border-color: rgba(170,100,255,0.25); color: var(--neon-violet); }
.flow-node-icon.cyan { background: rgba(80, 200, 255, 0.12); border-color: rgba(80, 200, 255, 0.25); color: var(--neon-cyan); }
.flow-node-meta { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--fg-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.flow-node-status {
  margin-left: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

/* Position the nodes */
.flow-node-1 { top: 14%; left: 6%; }
.flow-node-2 { top: 14%; right: 6%; }
.flow-node-3 { top: 46%; left: 28%; }
.flow-node-4 { top: 46%; right: 6%; }
.flow-node-5 { bottom: 12%; left: 6%; }
.flow-node-6 { bottom: 12%; right: 22%; }

/* ─── Portfolio ─── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.portfolio-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(12,15,28,0.95), rgba(8,10,18,0.95));
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: transform 0.4s, border-color 0.3s;
  cursor: pointer;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.portfolio-card.large { grid-column: span 7; min-height: 420px; }
.portfolio-card.small { grid-column: span 5; }
.portfolio-card.third { grid-column: span 4; }
.portfolio-card.wide { grid-column: span 8; }
@media (max-width: 800px) {
  .portfolio-card.large, .portfolio-card.small, .portfolio-card.third, .portfolio-card.wide { grid-column: span 12; }
}

.portfolio-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,6,12,0.85) 100%);
  z-index: 1;
}
.portfolio-content { position: relative; z-index: 2; }
.portfolio-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.portfolio-card h3 { font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.portfolio-card p { color: var(--fg-dim); font-size: 14px; }

/* Real screenshot inside a portfolio card */
.portfolio-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Stronger bottom scrim so the title stays legible over a real photo */
.portfolio-card.has-photo .portfolio-overlay {
  background: linear-gradient(180deg, rgba(4,6,12,0.10) 0%, rgba(4,6,12,0.55) 55%, rgba(4,6,12,0.94) 100%);
}
/* Subtle zoom on hover for photo cards */
.portfolio-card.has-photo .portfolio-photo { transition: transform 0.5s ease; }
.portfolio-card.has-photo:hover .portfolio-photo { transform: scale(1.05); }

/* Ocultar la "caminata inmersiva" (pasaje) en celulares:
   en pantallas chicas se mostraba apilada y con las imágenes cortadas. */
@media (max-width: 768px) {
  .pasaje { display: none !important; }
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.portfolio-card.is-link:hover .portfolio-link {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}
.portfolio-link svg { transition: transform 0.2s; }
.portfolio-card.is-link:hover .portfolio-link svg { transform: translate(2px, -2px); }

/* Portfolio visuals - placeholder striped art with mockup style */
.pv-stripes {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(86, 132, 255, 0.08) 0,
    rgba(86, 132, 255, 0.08) 1px,
    transparent 1px,
    transparent 14px
  );
  background-color: #0a0d1c;
}
.pv-stripes.violet {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(170, 100, 255, 0.10) 0,
    rgba(170, 100, 255, 0.10) 1px,
    transparent 1px,
    transparent 14px
  );
}

/* fake dashboard for portfolio cards */
.pv-dash {
  position: absolute; inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pv-dash-row { display: flex; gap: 12px; align-items: center; }
.pv-window {
  position: absolute;
  background: linear-gradient(180deg, rgba(16,20,38,0.95), rgba(10,12,22,0.95));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 16px;
}

/* ─── Testimonios ─── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.testimonial {
  padding: 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(12,15,28,0.95), rgba(8,10,18,0.95));
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.testimonial:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.testimonial-quote {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.9);
}
.testimonial-quote::before {
  content: '"';
  font-size: 56px;
  font-family: 'Space Grotesk', serif;
  color: var(--neon-blue);
  position: absolute;
  top: 8px; left: 24px;
  opacity: 0.4;
  line-height: 1;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  font-weight: 500;
  font-size: 15px;
}
.testimonial-name { font-size: 14px; font-weight: 500; }
.testimonial-role { font-size: 12px; color: var(--fg-faint); }
.testimonial-rating {
  margin-left: auto;
  display: flex; gap: 2px;
  color: #fbbf24;
}

/* ─── Contacto ─── */
.contact {
  background: linear-gradient(180deg, transparent, rgba(86, 132, 255, 0.04));
}
.contact-card {
  position: relative;
  padding: 64px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(800px circle at 100% 0%, rgba(170, 100, 255, 0.12), transparent 60%),
    radial-gradient(800px circle at 0% 100%, rgba(86, 132, 255, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(14,18,34,0.95), rgba(8,10,18,0.95));
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  gap: 56px;
  position: relative;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.contact h2 { margin-bottom: 16px; max-width: 14ch; }
.contact-lead { color: var(--fg-dim); font-size: 17px; line-height: 1.55; margin-bottom: 32px; max-width: 42ch; }
.contact-items { display: grid; gap: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: background 0.2s, border-color 0.2s;
}
.contact-item:hover { background: rgba(255,255,255,0.05); border-color: var(--border-strong); }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(86, 132, 255, 0.1);
  display: grid; place-items: center;
  color: var(--neon-blue);
  flex-shrink: 0;
}
.contact-item-label { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); }
.contact-item-value { font-size: 15px; font-weight: 500; margin-top: 2px; word-break: break-word; overflow-wrap: anywhere; }
.contact-item > div:not(.contact-item-icon) { min-width: 0; flex: 1; }

/* Responsive — contacto */
@media (max-width: 720px) {
  .contact { padding: 60px 0; }
  .contact-card { padding: 36px 22px; border-radius: var(--r-lg); }
  .contact-card::before { background-size: 32px 32px; }
  .contact-grid { gap: 36px; }
  .contact h2 { font-size: 30px; max-width: none; }
  .contact-lead { font-size: 15px; margin-bottom: 22px; }
  .contact-item { padding: 14px; gap: 12px; }
  .contact-item-icon { width: 36px; height: 36px; }
  .contact-item-value { font-size: 13.5px; letter-spacing: -0.005em; }
  .contact-item .contact-item-label { font-size: 9.5px; }
  .contact-item span[style*="margin-left"] { display: none; }
  .input, .textarea { font-size: 16px; padding: 28px 14px 12px; }
  .input-label { left: 14px; }
}
@media (max-width: 380px) {
  .contact-card { padding: 28px 16px; }
  .contact-item-value { font-size: 12.5px; }
}

/* Form */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.input-wrap { position: relative; }
.input-label {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  pointer-events: none;
  transition: all 0.2s;
}
.input, .textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 30px 18px 14px;
  color: var(--fg);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.textarea { padding-top: 30px; min-height: 130px; resize: vertical; font-family: inherit; }
.input:focus, .textarea:focus {
  border-color: rgba(120, 160, 255, 0.4);
  background: rgba(255,255,255,0.04);
}
.input:focus + .input-label,
.input:not(:placeholder-shown) + .input-label,
.textarea:focus + .input-label,
.textarea:not(:placeholder-shown) + .input-label {
  top: 8px;
  font-size: 9.5px;
  color: var(--neon-blue);
}

.form-submit { margin-top: 8px; }

/* WhatsApp float button */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0.08);
  color: #fff;
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.35);
  animation: wa-ping 2.4s ease-out infinite;
}
@keyframes wa-ping {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Back-to-top button — appears after scroll */
.to-top {
  position: fixed;
  bottom: 104px;
  right: 28px;
  z-index: 59;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(15, 18, 32, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--fg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, border-color 0.2s;
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.5);
}
.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.to-top:hover {
  background: rgba(28, 34, 60, 0.92);
  border-color: rgba(120, 160, 255, 0.45);
  box-shadow: 0 12px 32px -10px rgba(86, 132, 255, 0.5);
}
.to-top::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.72 0.18 248 / 0.4), oklch(0.68 0.22 295 / 0.4));
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.25s;
}
.to-top:hover::before { opacity: 1; }

@media (max-width: 600px) {
  .to-top { bottom: 96px; right: 18px; width: 44px; height: 44px; }
  .wa-float { right: 18px; bottom: 22px; width: 54px; height: 54px; }
}

/* ─── Footer ─── */
.footer {
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  text-align: center;
}
.footer-grid {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
  justify-items: center;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.footer-brand .nav-logo { justify-content: center; }
.footer-brand p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; max-width: 36ch; margin: 16px auto 0; }
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; padding: 0; }
.footer-col a { font-size: 14px; color: var(--fg-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 12px 28px;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 22px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  backdrop-filter: blur(20px);
  font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #22c55e;
  display: grid; place-items: center;
  color: #052e16;
  font-weight: 700;
  font-size: 13px;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 100;
  display: grid;
  place-items: center;
  transition: opacity 0.6s 0.2s, visibility 0.6s 0.2s;
}
.loader.gone { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 56px; height: 56px;
  position: relative;
}
.loader-mark svg { width: 100%; height: 100%; animation: loader-spin 2.5s linear infinite; }
.loader-text {
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   PASAJE INMERSIVO — scroll-driven 3D corridor of ad-screens
   ════════════════════════════════════════════════════════════ */
section.pasaje {
  padding: 0;
  margin-top: 0 !important;
  content-visibility: visible !important;   /* beat global section:not(.hero){content-visibility:auto} */
  contain: none !important;                 /* auto-containment was breaking position:fixed */
  contain-intrinsic-size: auto !important;
  z-index: 1;
}
.pasaje-track {
  position: relative;
  height: 900vh;                        /* scroll distance — 8 ad-screens */
}
.pasaje-stage {
  position: absolute;                   /* JS pins it (fixed) while in range */
  top: 0; left: 0; right: 0;
  height: 100vh;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  background:
    radial-gradient(60% 40% at 50% 88%, rgba(86,132,255,0.10), transparent 70%),
    radial-gradient(120% 70% at 50% 44%, rgba(86,132,255,0.10), transparent 62%),
    linear-gradient(180deg, #05070f 0%, #04060c 55%, #080b16 100%);
}
/* deep fog at the vanishing point */
.pasaje-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(48% 42% at 50% 46%, transparent 0%, transparent 30%, rgba(4,6,12,0.0) 45%, rgba(5,7,16,0.55) 78%, rgba(4,6,12,0.92) 100%);
}

.pasaje-world {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
.pasaje-rail, .pasaje-surfaces { will-change: transform; }
.pasaje-plane {
  position: absolute;
  top: 0; left: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* ── tunnel surfaces (floor / ceiling / side strips) ── */
.pasaje-surface {
  background-repeat: repeat;
  will-change: background-position;
}
.pasaje-floor, .pasaje-ceil {
  background-image:
    linear-gradient(rgba(120,160,255,0.26) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(120,160,255,0.13) 1.5px, transparent 1.5px);
  background-size: 120px 120px, 120px 120px;
}
.pasaje-floor {
  background-color: #060912;
  box-shadow: inset 0 0 240px rgba(86,132,255,0.12);
}
.pasaje-ceil {
  background-image:
    linear-gradient(rgba(170,120,255,0.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(170,120,255,0.08) 1.5px, transparent 1.5px);
  background-size: 120px 120px, 120px 120px;
  background-color: #05060e;
}
.pasaje-wall {
  background:
    linear-gradient(90deg, rgba(86,132,255,0.05), rgba(86,132,255,0.0) 18%, rgba(170,100,255,0.0) 82%, rgba(170,100,255,0.06)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1.5px, transparent 1.5px 120px);
  background-color: #070a14;
}
/* neon edge runners where walls meet floor */
.pasaje-runner {
  background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-violet), transparent);
  box-shadow: 0 0 22px var(--neon-blue), 0 0 50px rgba(86,132,255,0.5);
  opacity: 0.85;
}

/* ── billboards ── */
.pasaje-bb { cursor: default; }
.bb-frame {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16,20,38,0.96), rgba(8,11,22,0.97));
  border: 1px solid rgba(140,170,255,0.30);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 0 60px rgba(86,132,255,0.28),
    0 30px 80px -20px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pasaje-bb.violet .bb-frame {
  border-color: rgba(180,140,255,0.32);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 60px rgba(170,100,255,0.28), 0 30px 80px -20px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.08);
}
/* corner brackets */
.bb-frame::before, .bb-frame::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid rgba(160,190,255,0.6);
  pointer-events: none;
}
.bb-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.bb-frame::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
/* glow halo behind the screen (cheap, static — no per-frame blur) */
.pasaje-bb .bb-halo { display: none; }
/* mounting arm to the wall */
.bb-mount {
  position: absolute;
  top: 50%; height: 8px; width: 90px;
  background: linear-gradient(90deg, rgba(120,150,220,0.5), rgba(120,150,220,0.05));
  transform: translateY(-50%);
}
.bb-mount.left  { right: 100%; }
.bb-mount.right { left: 100%; transform: translateY(-50%) scaleX(-1); }

.bb-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
  flex-shrink: 0;
}
.bb-bar .bb-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.bb-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: #4ade80;
}
.bb-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 1.8s ease-in-out infinite; }
.bb-body { position: relative; flex: 1; padding: 18px; overflow: hidden; }

/* — Ad 1 · web building — */
.bb-browser { height: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); background: #0a0e1c; display: flex; flex-direction: column; }
.bb-browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07); }
.bb-dot { width: 11px; height: 11px; border-radius: 50%; }
.bb-url { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--fg-faint); background: rgba(0,0,0,0.3); padding: 5px 12px; border-radius: 7px; }

/* — Ad 1 · real e-commerce storefront — */
.bb-shop { flex: 1; display: flex; flex-direction: column; position: relative; background: #f6f4f0; color: #1b1d22; overflow: hidden; }
.shop-nav { display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: #fff; border-bottom: 1px solid #e7e3dc; }
.shop-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.06em; color: #14161b; }
.shop-brand i { color: #c08a5a; font-style: normal; margin: 0 2px; }
.shop-links { display: flex; gap: 16px; margin-left: 6px; font-size: 12.5px; color: #6b6760; }
.shop-cart { margin-left: auto; position: relative; color: #14161b; display: inline-flex; }
.shop-cart-count { position: absolute; top: -7px; right: -8px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #d6483b; color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; }
.shop-pdp { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 20px; align-content: center; }
.shop-gallery { display: flex; flex-direction: column; gap: 10px; }
.shop-photo { position: relative; aspect-ratio: 4 / 3.4; border-radius: 12px; background: linear-gradient(160deg, #efe7dc, #e3d6c6); display: grid; place-items: center; overflow: hidden; }
.shop-chair { width: 72%; height: 72%; }
.shop-badge { position: absolute; top: 10px; left: 10px; background: #d6483b; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.shop-thumbs { display: flex; gap: 8px; }
.shop-thumbs i { width: 34px; height: 30px; border-radius: 7px; background: #e6ded2; border: 1.5px solid transparent; }
.shop-thumbs i.on { border-color: #c08a5a; background: #ddcdb8; }
.shop-info { display: flex; flex-direction: column; gap: 9px; }
.shop-stars { display: flex; align-items: center; gap: 2px; color: #e8a93b; }
.shop-stars em { margin-left: 6px; font-style: normal; font-size: 11.5px; color: #8a857c; }
.shop-title { font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 600; line-height: 1.12; color: #15171c; margin: 0; }
.shop-price { display: flex; align-items: baseline; gap: 9px; }
.shop-price b { font-size: 22px; font-weight: 700; color: #14161b; }
.shop-price s { font-size: 14px; color: #a39e95; }
.shop-swatches { display: flex; gap: 8px; }
.shop-swatches i { width: 19px; height: 19px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px transparent; }
.shop-swatches i.on { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px #c08a5a; }
.shop-buy { margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border-radius: 10px; background: #14161b; color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5); animation: shop-pulse 2.6s ease-in-out infinite; }
@keyframes shop-pulse { 0%,100%{ box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);} 50%{ box-shadow: 0 8px 26px -6px rgba(192,138,90,0.7);} }
.shop-trust { display: flex; gap: 14px; margin-top: 2px; font-size: 11.5px; color: #6b6760; }
.shop-trust span { display: inline-flex; align-items: center; gap: 5px; }
.shop-toast { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #15171c; font-size: 12px; font-weight: 500; padding: 8px 13px; border-radius: 10px; box-shadow: 0 10px 28px -10px rgba(0,0,0,0.4); border: 1px solid #eee6da; animation: shop-toast 6s ease-in-out infinite; }
.shop-toast i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 7px #22c55e; }
@keyframes shop-toast {
  0%, 8% { opacity: 0; transform: translateY(14px); }
  16%, 40% { opacity: 1; transform: translateY(0); }
  48%, 100% { opacity: 0; transform: translateY(14px); }
}

/* — Ad 3 · concesionaria de autos — */
.shop--auto { background: #0f1318; color: #e8ecf2; }
.shop--auto .shop-nav { background: #161b22; border-bottom-color: #232a33; }
.shop--auto .shop-brand { color: #fff; }
.shop--auto .shop-brand i { color: #5b8bff; }
.shop--auto .shop-links { color: #93a0b4; }
.shop--auto .shop-cart { color: #cdd6e4; }
.auto-pdp { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; padding: 16px 18px 10px; align-items: center; }
.auto-photo { position: relative; aspect-ratio: 16 / 8; border-radius: 12px; background: radial-gradient(120% 130% at 50% 20%, #2a3340, #11151b 80%); display: grid; place-items: center; overflow: hidden; }
.auto-car { width: 90%; height: 90%; }
.shop--auto .shop-badge { background: #5b8bff; }
.auto-info { display: flex; flex-direction: column; gap: 8px; }
.auto-info .shop-stars { color: #34d399; }
.auto-info .shop-stars em { color: #93a0b4; font-style: normal; margin-left: 4px; font-size: 11.5px; }
.auto-info .shop-title { color: #fff; }
.auto-price { font-family: 'Space Grotesk', sans-serif; font-size: 23px; font-weight: 700; color: #fff; }
.auto-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; font-size: 11.5px; color: #aab4c4; }
.auto-specs span { display: inline-flex; align-items: center; gap: 5px; }
.shop--auto .shop-buy { background: #5b8bff; color: #0a0e16; }
@keyframes shop-pulse-blue { 0%,100%{ box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);} 50%{ box-shadow: 0 8px 26px -6px rgba(91,139,255,0.7);} }
.shop--auto .shop-buy { animation: shop-pulse-blue 2.6s ease-in-out infinite; }
.auto-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 18px 16px; }
.auto-mini { display: flex; flex-direction: column; gap: 3px; background: #161b22; border: 1px solid #232a33; border-radius: 10px; padding: 8px 10px; }
.auto-mini-ph { height: 30px; border-radius: 6px; background: linear-gradient(120deg, #2a3340, #1b212a); margin-bottom: 3px; }
.auto-mini b { font-size: 12px; font-weight: 600; color: #e8ecf2; }
.auto-mini i { font-style: normal; font-size: 12px; color: #5b8bff; font-weight: 600; }

/* — Ad 4 · inmobiliaria — */
.shop--inmo { background: #faf8f4; color: #20242b; }
.shop--inmo .shop-brand i { color: #1f8a5b; }
.shop-search { margin-left: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b6760; background: #efeae1; border: 1px solid #e2dccf; padding: 5px 11px; border-radius: 999px; }
.shop--inmo .shop-cart { color: #1f8a5b; }
.inmo-pdp { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; padding: 16px 20px; align-items: center; }
.inmo-photo { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.inmo-bld { width: 100%; height: 100%; display: block; }
.shop-badge.alt { background: #1f8a5b; }
.inmo-info { display: flex; flex-direction: column; gap: 8px; }
.inmo-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #7a756c; }
.inmo-info .shop-title { color: #181b21; }
.inmo-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #6b6760; }
.inmo-specs span { display: inline-flex; align-items: center; gap: 5px; }
.inmo-buy { background: #1f8a5b !important; color: #fff !important; animation: none !important; }
.inmo-toast { position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #181b21; font-size: 12px; font-weight: 500; padding: 8px 13px; border-radius: 10px; box-shadow: 0 10px 28px -10px rgba(0,0,0,0.35); border: 1px solid #ece6da; animation: shop-toast 6.5s ease-in-out infinite; }
.inmo-toast i { width: 7px; height: 7px; border-radius: 50%; background: #1f8a5b; box-shadow: 0 0 7px #1f8a5b; }

/* — Ad 6 · CRM jurídico — */
.crm { flex: 1; display: flex; flex-direction: column; background: #0d1017; color: #e7ecf3; }
.crm-top { display: flex; align-items: center; padding: 13px 18px; background: #141925; border-bottom: 1px solid #20283a; }
.crm-brand { display: inline-flex; align-items: center; gap: 9px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: 0.08em; color: #fff; font-size: 15px; }
.crm-logo { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #b79154, #8a6a2f); color: #fff; }
.crm-user { margin-left: auto; font-size: 12px; color: #9aa6bb; }
.crm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 18px 6px; }
.crm-stat { background: #141925; border: 1px solid #20283a; border-radius: 11px; padding: 12px 14px; }
.crm-stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 600; line-height: 1; color: #fff; }
.crm-stat span { font-size: 11px; color: #93a0b4; }
.crm-stat.warn b { color: #e8a93b; }
.crm-stat.danger b { color: #f06d5a; }
.crm-table { padding: 10px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.crm-row { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: #11161f; font-size: 12.5px; color: #cdd6e4; }
.crm-row span:first-child { font-family: 'JetBrains Mono', monospace; color: #8a97ac; }
.crm-hrow { background: transparent; padding: 2px 12px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b778c; }
.crm-badge { justify-self: end; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.crm-badge.ok { background: rgba(34,197,94,0.16); color: #4ade80; }
.crm-badge.warn { background: rgba(232,169,59,0.16); color: #f0bd62; }
.crm-badge.danger { background: rgba(240,109,90,0.16); color: #ff8b78; }

/* — Ad 7 · asistencias escolares — */
.asis { flex: 1; display: flex; flex-direction: column; background: #f7f9fc; color: #1c2430; }
.asis-head { display: flex; align-items: center; padding: 13px 18px; background: #fff; border-bottom: 1px solid #e6ebf2; }
.asis-class { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; color: #18202c; }
.asis-date { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #6b7686; }
.asis-body { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 16px 20px; align-items: center; }
.asis-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.asis-ring svg { width: 120px; height: 120px; }
.asis-ring-num { position: absolute; text-align: center; }
.asis-ring-num b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; line-height: 1; color: #18202c; }
.asis-ring-num span { font-size: 11px; color: #7a8696; }
.asis-list { display: flex; flex-direction: column; gap: 7px; }
.asis-st { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #2c3645; background: #fff; border: 1px solid #e9eef4; border-radius: 10px; padding: 7px 11px; }
.asis-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b8bff, #8a6cff); }
.asis-pill { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.asis-pill.ok { background: rgba(34,160,107,0.14); color: #1f8a5b; }
.asis-pill.no { background: rgba(214,72,59,0.12); color: #d6483b; }
.asis-foot { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; background: #fff; border-top: 1px solid #e6ebf2; font-size: 11.5px; color: #1f8a5b; font-weight: 500; }

/* — Ad 2 · WhatsApp selling — */
.bb-wa { position: absolute; inset: 18px; border-radius: 14px; overflow: hidden; background: #0b141a; border: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; }
.bb-wa-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f2c33; flex-shrink: 0; }
.bb-wa-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #25d366, #128c7e); display: grid; place-items: center; color: #fff; }
.bb-wa-name { font-size: 15px; font-weight: 600; color: #e9edef; }
.bb-wa-status { font-size: 12px; color: #8aa39b; }
.bb-wa-feed { flex: 1; position: relative; overflow: hidden; background: #0b141a; }
.bb-wa-scroll {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 9px;
  animation: bb-wa-stream 11s cubic-bezier(.7,0,.3,1) infinite;
}
.bb-bub { max-width: 78%; padding: 9px 13px; font-size: 13.5px; line-height: 1.4; border-radius: 12px; }
.bb-bub.in  { align-self: flex-start; background: #202c33; color: #e9edef; border-top-left-radius: 4px; }
.bb-bub.out { align-self: flex-end; background: #005c4b; color: #e9edef; border-top-right-radius: 4px; }
.bb-bub.deal { align-self: flex-end; background: linear-gradient(135deg,#128c7e,#075e54); color:#fff; font-weight:600; display:inline-flex; align-items:center; gap:8px; }
.bb-wa-time { font-size: 10px; opacity: 0.55; margin-left: 8px; }
@keyframes bb-wa-stream {
  0%   { transform: translateY(60%); }
  18%  { transform: translateY(60%); }
  100% { transform: translateY(0%); }
}

/* — Ad 3 · automation flow — */
.bb-flow { position: absolute; inset: 18px; display: grid; grid-template-rows: 1fr auto; }
.bb-flow-canvas { position: relative; }
.bb-fnode {
  position: absolute; display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: 11px;
  background: linear-gradient(180deg, rgba(22,28,52,0.97), rgba(12,15,28,0.97));
  border: 1px solid rgba(140,170,255,0.28);
  font-size: 13px; font-weight: 500; color: var(--fg);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.7);
}
.bb-fnode .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.bb-fnode.n1 { top: 6%; left: 2%; }
.bb-fnode.n1 .ic { background: rgba(37,211,102,0.16); color: #25d366; border: 1px solid rgba(37,211,102,0.3); }
.bb-fnode.n2 { top: 40%; left: 50%; transform: translateX(-50%); }
.bb-fnode.n2 .ic { background: rgba(170,100,255,0.16); color: var(--neon-violet); border: 1px solid rgba(170,100,255,0.3); }
.bb-fnode.n3 { bottom: 4%; right: 2%; }
.bb-fnode.n3 .ic { background: rgba(80,200,255,0.16); color: var(--neon-cyan); border: 1px solid rgba(80,200,255,0.3); }
.bb-flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bb-flow-meter { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px; }
.bb-flow-meter b { font-size: 30px; font-weight: 400; letter-spacing: -0.02em; }
.bb-flow-meter span { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.bb-spark { fill: var(--neon-cyan); }

/* — Ad 4 · AI agent 24/7 — */
.bb-ai { position: absolute; inset: 18px; display: flex; flex-direction: column; gap: 14px; }
.bb-ai-orb { margin: 6px auto 0; width: 96px; height: 96px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, #cdd8ff, oklch(0.6 0.2 285) 45%, #0a0d1c 85%);
  box-shadow: 0 0 50px rgba(150,110,255,0.6), inset -8px -14px 30px rgba(0,0,0,0.6);
  animation: bb-ai-breathe 3.4s ease-in-out infinite;
}
.bb-ai-orb::after { content:''; position:absolute; inset:-10px; border-radius:50%; border:1px solid rgba(180,160,255,0.3); animation: bb-ai-ring 3.4s ease-out infinite; }
@keyframes bb-ai-breathe { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.06);} }
@keyframes bb-ai-ring { 0%{ transform: scale(0.9); opacity:.8;} 100%{ transform: scale(1.5); opacity:0;} }
.bb-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 40px; }
.bb-wave i { width: 5px; height: 34px; transform-origin: bottom; border-radius: 3px; background: linear-gradient(180deg, var(--neon-violet), var(--neon-blue)); animation: bb-eq 1.1s ease-in-out infinite; }
@keyframes bb-eq { 0%,100%{ transform: scaleY(0.3); opacity:.6;} 50%{ transform: scaleY(1); opacity:1;} }
.bb-ai-row { display: flex; gap: 10px; }
.bb-ai-chip { flex: 1; text-align: center; padding: 12px 8px; border-radius: 11px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.bb-ai-chip b { display: block; font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.bb-ai-chip span { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.1em; }

/* — End sign — */
.pasaje-end { display: grid; place-items: center; text-align: center; }
.pasaje-end .pe-mark { width: 88px; height: 88px; margin-bottom: 22px; filter: drop-shadow(0 0 30px rgba(120,150,255,0.6)); }
.pasaje-end h3 { font-size: 46px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; max-width: 16ch; }
.pasaje-end p { margin-top: 16px; font-family: 'JetBrains Mono', monospace; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); }

/* ── HUD overlay (not in 3D) ── */
.pasaje-hud { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.pasaje-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 30px 34px;
}
.pasaje-top .eyebrow { color: var(--fg-dim); }
.pasaje-top .ph-right {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-faint); text-align: right;
}
.pasaje-caption {
  position: absolute; left: 34px; bottom: 38px; max-width: 460px;
}
.pasaje-caption .pc-num {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.2em;
  color: var(--neon-blue); display: block; margin-bottom: 10px;
}
.pasaje-caption .pc-title {
  font-size: 34px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.08;
  transition: opacity 0.4s, transform 0.4s;
}
.pasaje-caption .pc-sub {
  margin-top: 10px; font-size: 15px; color: var(--fg-dim); line-height: 1.5;
  transition: opacity 0.4s, transform 0.4s;
}
.pasaje-caption.swap .pc-title, .pasaje-caption.swap .pc-sub { opacity: 0; transform: translateY(8px); }

/* scroll hint */
.pasaje-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-faint);
  transition: opacity 0.5s;
}
.pasaje-hint .ph-mouse { width: 22px; height: 34px; border: 1px solid var(--border-strong); border-radius: 12px; position: relative; }
.pasaje-hint .ph-mouse::after { content:''; position:absolute; left:50%; top:6px; width:3px; height:6px; border-radius:2px; background: var(--fg-dim); transform: translateX(-50%); animation: ph-wheel 1.6s ease-in-out infinite; }
@keyframes ph-wheel { 0%,100%{ transform: translateX(-50%) translateY(0); opacity:1;} 50%{ transform: translateX(-50%) translateY(8px); opacity:.3;} }

/* progress rail */
.pasaje-prog { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 3px; height: 180px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.pasaje-prog i { position: absolute; left: 0; right: 0; top: 0; height: 100%; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, var(--neon-blue), var(--neon-violet)); box-shadow: 0 0 12px var(--neon-blue); }

/* end CTA */
.pasaje-cta {
  position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(14px);
  pointer-events: auto; opacity: 0; transition: opacity 0.5s, transform 0.5s;
}
.pasaje-cta.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .pasaje-caption .pc-title { font-size: 26px; }
  .pasaje-top { padding: 22px; }
  .pasaje-caption { left: 22px; bottom: 30px; }
}

/* ── Fallback (mobile / reduced-motion): stacked ad cards ── */
.pasaje-fallback .pf-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 760px) { .pasaje-fallback .pf-grid { grid-template-columns: 1fr; } }
.pf-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(14,18,34,0.95), rgba(8,11,20,0.96));
  min-height: 340px; display: flex; flex-direction: column;
}
.pf-card .bb-bar { background: rgba(0,0,0,0.2); }
.pf-card .bb-body { min-height: 240px; }
.pf-cap { padding: 16px 18px 20px; border-top: 1px solid var(--border); }
.pf-cap .pc-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--neon-blue); }
.pf-cap h4 { font-size: 18px; font-weight: 500; margin: 8px 0 4px; }
.pf-cap p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.5; }

/* ─── Theme toggle button (in navbar) ─── */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--fg);
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.theme-toggle svg { transition: transform 0.3s ease; }
.theme-toggle:hover svg { transform: rotate(18deg); }

/* ════════════════════════════════════════════════════════════
   LIGHT THEME  ·  html[data-theme="light"]  (default)
   ────────────────────────────────────────────────────────────
   The page chrome (nav text excepted) becomes light. The hero
   (3D robot), the immersive "pasaje" tunnel and the product-
   mockup cards stay dark on purpose — they're UI previews, so we
   re-declare the dark palette locally inside those "islands".
   ════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg-0: #eef1f8;
  --bg-1: #ffffff40;
  --bg-2: #e3e8f2;
  --surface: rgba(255,255,255,0.72);
  --surface-strong: rgba(255,255,255,0.94);
  --border: rgba(14,22,55,0.10);
  --border-strong: rgba(14,22,55,0.18);

  --fg: #0e1422;
  --fg-dim: rgba(14,20,34,0.66);
  --fg-faint: rgba(14,20,34,0.46);
  --fg-ghost: rgba(14,20,34,0.22);

  --neon-blue: oklch(0.55 0.20 255);
  --neon-violet: oklch(0.52 0.25 295);
  --neon-cyan: oklch(0.58 0.15 220);

  --grad-text: linear-gradient(180deg, #0e1422 0%, rgba(14,20,34,0.62) 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.7) inset, 0 18px 45px -24px rgba(20,30,70,0.30);
}

/* ── Page background ── */
html[data-theme="light"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(86,132,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(150,110,255,0.08), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(60,170,255,0.06), transparent 60%),
    var(--bg-0);
}
html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(14,22,55,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,22,55,0.05) 1px, transparent 1px);
}
html[data-theme="light"] body::after {
  opacity: 0.16;
  mix-blend-mode: multiply;
}

/* ── Text helper ── */
html[data-theme="light"] .gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ══ DARK ISLANDS — re-declare dark palette locally ══ */
html[data-theme="light"] .hero,
html[data-theme="light"] .pasaje,
html[data-theme="light"] .portfolio-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .dash,
html[data-theme="light"] .flow-canvas {
  color: var(--fg);
  --fg: #f4f6fb;
  --fg-dim: rgba(244,246,251,0.66);
  --fg-faint: rgba(244,246,251,0.42);
  --fg-ghost: rgba(244,246,251,0.22);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --surface: rgba(15,18,32,0.55);
  --surface-strong: rgba(20,24,42,0.85);
  --neon-blue: oklch(0.72 0.18 248);
  --neon-violet: oklch(0.68 0.22 295);
  --neon-cyan: oklch(0.82 0.14 210);
  --grad-text: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);
}

/* Hero keeps a dark backdrop behind the 3D robot */
html[data-theme="light"] .hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(86,132,255,0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(170,100,255,0.12), transparent 60%),
    #04060c;
}

/* ── Navbar stays dark (it floats only over the dark hero) ── */
html[data-theme="light"] .nav {
  background: rgba(10,12,22,0.55);
  border-color: rgba(255,255,255,0.08);
  color: #f4f6fb;
}
html[data-theme="light"] .nav-logo { color: #f4f6fb; }
html[data-theme="light"] .nav-link { color: rgba(244,246,251,0.66); }
html[data-theme="light"] .nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
html[data-theme="light"] .theme-toggle {
  color: rgba(244,246,251,0.72);
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
html[data-theme="light"] .theme-toggle:hover { color: #fff; background: rgba(255,255,255,0.10); }

/* ── Marquee band ── */
html[data-theme="light"] .marquee-wrap {
  background: rgba(255,255,255,0.4);
  border-color: var(--border);
}
html[data-theme="light"] .marquee-list .marquee-item {
  background: rgba(14,22,55,0.04);
  border-color: var(--border);
}

/* ── General glass cards ── */
html[data-theme="light"] .glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 100%);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
html[data-theme="light"] .glass::before {
  background: linear-gradient(90deg, transparent 0%, rgba(14,22,55,0.10) 50%, transparent 100%);
}

/* ── Servicios ── */
html[data-theme="light"] .services-grid { background: var(--border); border-color: var(--border); }
html[data-theme="light"] .service-card {
  background: linear-gradient(180deg, #ffffff, #f5f7fc);
}
html[data-theme="light"] .service-card:hover {
  background: linear-gradient(180deg, #ffffff, #ebeffb);
}
html[data-theme="light"] .service-icon {
  background: rgba(86,132,255,0.10);
  border-color: rgba(86,132,255,0.22);
}
html[data-theme="light"] .service-card:hover .service-icon {
  background: rgba(86,132,255,0.16);
  border-color: rgba(86,132,255,0.34);
  box-shadow: 0 0 24px rgba(86,132,255,0.18);
}
html[data-theme="light"] .service-card:hover .service-meta-arrow {
  background: #0e1422; color: #fff; border-color: #0e1422;
}

/* ── Proceso (workflow) ── */
html[data-theme="light"] .workflow-node {
  background: linear-gradient(180deg, #ffffff, #eef1f8);
  border-color: var(--border-strong);
}
html[data-theme="light"] .workflow-node-inner { background: #f4f6fb; }

/* ── Automatización widgets stay dark (analytics + flow previews) ── */
html[data-theme="light"] .dash {
  background: linear-gradient(180deg, rgba(18,22,40,0.97), rgba(10,12,22,0.98));
  border-color: rgba(255,255,255,0.08);
}
html[data-theme="light"] .flow-canvas {
  background:
    radial-gradient(600px circle at 70% 20%, rgba(170,100,255,0.10), transparent 60%),
    radial-gradient(600px circle at 20% 80%, rgba(86,132,255,0.10), transparent 60%),
    linear-gradient(180deg, rgba(12,15,28,0.97), rgba(8,10,18,0.98));
  border-color: rgba(255,255,255,0.08);
}

/* ── Testimonios → light cards ── */
html[data-theme="light"] .testimonial {
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  border-color: var(--border);
}
html[data-theme="light"] .testimonial-quote { color: var(--fg); }

/* ── Contacto: section is light, the card stays a dark feature panel ── */
html[data-theme="light"] .contact {
  background: linear-gradient(180deg, transparent, rgba(86,132,255,0.05));
}

/* ── Back-to-top button ── */
html[data-theme="light"] .to-top {
  background: rgba(255,255,255,0.82);
  border-color: var(--border-strong);
  color: var(--fg);
  box-shadow: 0 10px 28px -12px rgba(20,30,70,0.25);
}
html[data-theme="light"] .to-top:hover {
  background: #ffffff;
  border-color: rgba(86,132,255,0.40);
  box-shadow: 0 12px 32px -10px rgba(86,132,255,0.35);
}

/* ── Mobile galleries: keep light surfaces (beat !important rules) ── */
@media (max-width: 700px) {
  html[data-theme="light"] #servicios .service-card {
    background: linear-gradient(180deg, #ffffff, #f5f7fc) !important;
    border-color: var(--border);
  }
  html[data-theme="light"] #servicios .service-icon {
    background: rgba(86,132,255,0.12) !important;
    border-color: rgba(86,132,255,0.28) !important;
  }
  html[data-theme="light"] #proceso .workflow-step {
    background: linear-gradient(180deg, #ffffff, #eef1f8);
    border-color: var(--border);
  }
  html[data-theme="light"] #proceso .workflow-node {
    background: rgba(86,132,255,0.12);
    border-color: rgba(86,132,255,0.28);
  }
}
