/* ==========================================================================
   INCUBATECH PERÚ — Design System
   Colores de marca: amarillo #ffd92a / #ffcc00 · azul #00739e / #41729b
   ========================================================================== */

:root{
  --bg: #05070c;
  --bg-alt: #0a0e16;
  --surface: #0f1520;
  --surface-2: #141b28;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f3f5f8;
  --text-dim: #9aa3b5;
  --text-faint: #5d6679;

  --yellow: #ffd92a;
  --gold: #ffcc00;
  --blue: #00739e;
  --blue-bright: #2bb3ea;
  --steel: #41729b;

  --grad: linear-gradient(110deg, #ffd92a 0%, #2bb3ea 100%);
  --grad-text: linear-gradient(100deg, #ffd92a 0%, #2bb3ea 100%);
  --grad-btn: linear-gradient(120deg, #ffe45c 0%, #ffcc00 100%);
  --grad-blue: linear-gradient(120deg, #00739e 0%, #2bb3ea 100%);

  --ease: cubic-bezier(.16,1,.3,1);
  --ease-2: cubic-bezier(.65,0,.35,1);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

@supports (background: linear-gradient(in oklch 90deg, red, blue)){
  :root{
    --grad-text: linear-gradient(in oklch 100deg, #ffd92a 0%, #2bb3ea 100%);
    --grad: linear-gradient(in oklch 110deg, #ffd92a 0%, #2bb3ea 100%);
  }
}

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

html{ scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 80px; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-cursor, body.has-cursor a, body.has-cursor button{ cursor: none; }

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

:focus-visible{ outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
::selection{ background: var(--yellow); color:#05070c; }

/* ==========================================================================
   Noise + cursor + progress
   ========================================================================== */

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

.cursor-dot, .cursor-ring{
  position: fixed; top:0; left:0; z-index:9999;
  pointer-events:none; border-radius:50%;
  transform: translate(-50%,-50%);
  display:none;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring{ display:block; }
.cursor-dot{ width:6px; height:6px; background: var(--yellow); box-shadow: 0 0 10px rgba(255,217,42,.8); }
.cursor-ring{
  width:34px; height:34px; border:1px solid var(--border-strong);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, background .25s;
}
.cursor-ring.hovered{
  width:58px; height:58px;
  background: rgba(43,179,234,0.10);
  border-color: var(--blue-bright);
}

.progress-bar{
  position: fixed; top:0; left:0; height:2px; width:100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--grad); z-index: 9997;
  box-shadow: 0 0 12px rgba(255,217,42,.5);
}

#bgCanvas{
  position: fixed; inset:0; z-index:0; width:100%; height:100%;
  opacity: .6; pointer-events:none;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  padding: 20px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  padding: 12px 0;
  background: rgba(5,7,12,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner{
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
}
.logo{
  font-family: var(--font-display); font-weight:600; font-size: 1.1rem;
  letter-spacing: 0.02em; display:flex; align-items:center; gap:10px;
}
.logo-img{ width:40px; height:40px; object-fit: contain; transition: transform .8s var(--ease); }
.logo:hover .logo-img{ transform: rotate(180deg); }
.logo-word{ color: var(--text); }
.logo-word b{ font-weight: 600; color: var(--blue-bright); }

.nav-links{ display:flex; gap: 34px; }
.nav-links a{ position:relative; font-size: 0.88rem; color: var(--text-dim); transition: color .25s; }
.nav-links a span{ position:relative; }
.nav-links a span::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:1px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a:hover span::after, .nav-links a.active span::after{ transform: scaleX(1); }

.nav-cta{
  font-size: 0.85rem; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03);
  transition: border-color .3s, background .3s, color .3s;
}
.nav-cta:hover{ border-color: var(--yellow); background: rgba(255,217,42,0.1); color: var(--yellow); }

.burger{ display:none; flex-direction:column; gap:5px; width:26px; padding: 6px 0; z-index:501; }
.burger span{ display:block; height:1.5px; background:var(--text); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity:0; }
.burger.open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset:0; z-index:499; background: rgba(5,7,12,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 28px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.mobile-menu.open{ transform: translateY(0); visibility: visible; transition: transform .5s var(--ease); }
.mobile-menu a{ font-family: var(--font-display); font-size: 1.6rem; color: var(--text); }
.mobile-menu .mobile-cta{
  margin-top: 12px; padding: 12px 28px; border-radius: 999px; background: var(--grad-btn); color:#05070c; font-weight:600; font-size: 1.1rem;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

main, .footer{ position: relative; z-index: 1; }

.section{ max-width: 1280px; margin: 0 auto; padding: 150px 32px; position: relative; }
.section-head{ max-width: 680px; margin-bottom: 56px; }

.tag{
  display:inline-block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yellow); font-weight: 600; margin-bottom: 18px;
  padding: 6px 14px; border: 1px solid rgba(255,217,42,0.2); border-radius: 999px;
  background: rgba(255,217,42,0.06);
}

.section-title{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 20px;
}
.section-sub{ color: var(--text-dim); font-size: 1.05rem; max-width: 560px; line-height: 1.65; }

.gradient-text{
  background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.italic{ font-style: italic; font-weight: 300; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:10px; padding: 15px 26px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; position: relative; overflow:hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s, background .3s;
}
.btn svg{ transition: transform .3s var(--ease); flex-shrink: 0; }
.btn:hover svg{ transform: translateX(3px); }
.btn-primary{
  background: var(--grad-btn); color: #05070c;
  box-shadow: 0 8px 30px -8px rgba(255,204,0,0.55);
}
.btn-primary::after{
  content:''; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover::after{ transform: translateX(120%); }
.btn-primary:hover{ box-shadow: 0 14px 44px -8px rgba(255,204,0,0.75); }
.btn-primary:active{ transform: scale(.97); }
.btn-ghost{
  border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,0.02);
}
.btn-ghost:hover{ border-color: var(--blue-bright); background: rgba(43,179,234,0.08); box-shadow: 0 10px 34px -12px rgba(43,179,234,0.55); }
.btn-ghost:active{ transform: scale(.97); }
.btn-lg{ padding: 18px 32px; font-size: 1rem; }

/* Reveal animation */
.reveal-up{
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-up.in-view{ opacity:1; transform: translateY(0); }
.reveal-up[data-delay="1"]{ transition-delay: .08s; }
.reveal-up[data-delay="2"]{ transition-delay: .16s; }
.reveal-up[data-delay="3"]{ transition-delay: .24s; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  position: relative; min-height: 100vh; min-height: 100svh;
  display:flex; align-items:center; justify-content:center;
  padding: 130px 32px 110px; overflow:hidden;
}
.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 75%);
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift{ to{ background-position: 64px 64px; } }

.hero-glow{
  position:absolute; top: -12%; left:50%; translate: -50% 0;
  width: 1000px; height: 760px; pointer-events:none;
  background:
    radial-gradient(circle at 35% 45%, rgba(0,115,158,0.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 40%, rgba(255,217,42,0.14) 0%, transparent 50%);
  filter: blur(40px);
  animation: glow-pulse 8s ease-in-out infinite;
}
@keyframes glow-pulse{
  0%,100%{ opacity:.75; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.08); }
}

.hero-inner{
  position: relative; z-index:2; width:100%; max-width: 1280px;
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items:center;
}
.hero-content{ max-width: 700px; min-width: 0; }
.hero-visual{ min-width: 0; }

.eyebrow{
  display:inline-flex; align-items:center; gap: 10px;
  font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text-dim);
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px;
  margin-bottom: 30px; background: rgba(255,255,255,0.02);
  font-family: var(--font-mono); max-width: 100%; text-align: left;
}
.dot-pulse{
  width:7px; height:7px; border-radius:50%; background: var(--yellow); flex-shrink:0;
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,217,42,0.55); }
  70%{ box-shadow: 0 0 0 8px rgba(255,217,42,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,217,42,0); }
}

.hero-title{
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title .line{ display:block; overflow:hidden; padding-bottom: .06em; }
.hero-title .word{
  display:inline-block; transform: translateY(110%);
  animation: word-in 1s var(--ease) forwards;
}
.hero-title .line[data-line="1"] .word{ animation-delay: .15s; }
.hero-title .line[data-line="2"] .word{ animation-delay: .28s; }
.hero-title .line[data-line="3"] .word{ animation-delay: .40s; }
.hero-title .line[data-line="4"] .word{ animation-delay: .52s; }
.hero-title .line[data-line="4"] .word:nth-child(3){ animation-delay: .62s; }
@keyframes word-in{ to{ transform: translateY(0); } }

.rotator{ min-width: 1ch; }
.rotator.swap{ animation: rot-out .35s var(--ease-2) forwards; }
.rotator.swap-in{ animation: rot-in .5s var(--ease) forwards; }
@keyframes rot-out{ to{ transform: translateY(-100%); opacity: 0; } }
@keyframes rot-in{ from{ transform: translateY(100%); opacity: 0; } to{ transform: translateY(0); opacity:1; } }

.hero-sub{
  font-size: 1.08rem; color: var(--text-dim); max-width: 540px;
  margin-bottom: 38px; line-height: 1.7;
}
.hero-actions{ display:flex; gap: 14px; flex-wrap:wrap; margin-bottom: 56px; }

.hero-stats{
  display:flex; align-items:center; gap: 32px;
  padding-top: 30px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.hstat-num{
  font-family: var(--font-display); font-size: 2rem; font-weight:600;
  background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hstat-suffix{ font-family: var(--font-display); font-size: 1.4rem; font-weight:600; color: var(--blue-bright); }
.hstat p{ font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }
.hstat-sep{ width:1px; height: 34px; background: var(--border); }

/* Hero visual */
.hero-visual{ position: relative; display:flex; flex-direction:column; align-items:center; perspective: 1000px; }

.orbit{
  position: relative; width: 300px; height: 300px; margin-bottom: -60px;
  display:flex; align-items:center; justify-content:center;
}
.orbit-logo{
  width: 150px; height: auto; position: relative; z-index: 2;
  filter: drop-shadow(0 0 30px rgba(43,179,234,.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

.orbit-ring{
  position:absolute; border-radius:50%; border: 1px solid rgba(255,255,255,0.08);
  animation: spin linear infinite;
}
.orbit-ring i{
  position:absolute; width: 8px; height: 8px; border-radius:50%;
  top: -4px; left: calc(50% - 4px);
}
.orbit-ring.r1{ inset: 50px; animation-duration: 14s; border-color: rgba(255,217,42,0.25); }
.orbit-ring.r1 i{ background: var(--yellow); box-shadow: 0 0 14px var(--yellow); }
.orbit-ring.r2{ inset: 18px; animation-duration: 22s; animation-direction: reverse; border-style: dashed; border-color: rgba(43,179,234,0.25); }
.orbit-ring.r2 i{ background: var(--blue-bright); box-shadow: 0 0 14px var(--blue-bright); }
.orbit-ring.r2 i:nth-child(2){ top: auto; bottom: -4px; }
.orbit-ring.r3{ inset: -14px; animation-duration: 36s; }
.orbit-ring.r3 i{ width: 5px; height: 5px; background: #fff; box-shadow: 0 0 10px #fff; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.console{
  position: relative; z-index: 3; width: 100%; max-width: 440px;
  border-radius: 18px; border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(20,27,40,.85), rgba(10,14,22,.9));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px rgba(0,115,158,.55), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.console::before{
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(180deg, transparent 0%, rgba(43,179,234,.07) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: scan 4s linear infinite;
}
@keyframes scan{ from{ background-position: 0 -100%; } to{ background-position: 0 100%; } }

.console-bar{
  display:flex; align-items:center; gap: 6px; padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .7rem; color: var(--text-faint);
}
.console-bar span{ width: 9px; height: 9px; border-radius: 50%; background: #2a3243; }
.console-bar span:nth-child(1){ background: #ff5f57; opacity: .7; }
.console-bar span:nth-child(2){ background: var(--gold); opacity: .7; }
.console-bar span:nth-child(3){ background: #28c840; opacity: .7; }
.console-bar em{ font-style: normal; margin-left: 8px; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-bar .live{
  margin-left: auto; color: var(--yellow); font-weight: 500; font-size: .62rem; letter-spacing: .12em;
  display:flex; align-items:center; gap: 6px;
}
.console-bar .live::before{
  content:''; width:6px; height:6px; border-radius:50%; background: var(--yellow);
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink{ 50%{ opacity: .2; } }

.flow{ display:block; width: 100%; height: auto; padding: 8px 10px 0; }
.flow-path{
  stroke: url(#flowGrad); stroke-width: 1.3; opacity: .45;
  stroke-dasharray: 4 5; animation: dash 1.4s linear infinite;
}
@keyframes dash{ to{ stroke-dashoffset: -18; } }
.pulse-dot{ fill: var(--blue-bright); filter: drop-shadow(0 0 4px #2bb3ea); }
.pulse-dot.y{ fill: var(--yellow); filter: drop-shadow(0 0 4px #ffd92a); }
.node rect{ fill: #0d131e; stroke: rgba(255,255,255,.14); }
.node text{ fill: var(--text-dim); font-family: var(--font-mono); font-size: 8.5px; text-anchor: middle; }
.node.core rect{ stroke: var(--yellow); fill: rgba(255,217,42,.06); animation: core-glow 2.4s ease-in-out infinite; }
.node.core text{ fill: var(--yellow); font-size: 9.5px; font-weight: 500; }
@keyframes core-glow{ 50%{ fill: rgba(255,217,42,.16); } }

.console-log{
  font-family: var(--font-mono); font-size: .72rem; line-height: 1.75;
  padding: 10px 16px 16px; height: 118px; overflow: hidden;
  color: var(--text-dim);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  display:flex; flex-direction: column; justify-content: flex-end;
}
.console-log p{ white-space: nowrap; overflow:hidden; text-overflow: ellipsis; animation: log-in .4s var(--ease); }
.console-log .t{ color: var(--text-faint); margin-right: 8px; }
.console-log .ok{ color: #3ddc97; }
.console-log .ai{ color: var(--yellow); }
.console-log .sys{ color: var(--blue-bright); }
@keyframes log-in{ from{ opacity:0; transform: translateY(8px); } }

.scroll-cue{
  position:absolute; bottom: 30px; left:50%; translate: -50% 0;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: var(--text-faint); font-size: 0.7rem; letter-spacing: 0.14em; text-transform:uppercase;
  animation: fade-in-late 1.2s var(--ease) forwards; opacity:0; animation-delay: 1.1s;
}
@keyframes fade-in-late{ to{ opacity:1; } }
.scroll-line{ width:1px; height: 40px; background: var(--border); position:relative; overflow:hidden; }
.scroll-line i{
  position:absolute; inset:0; background: var(--grad);
  transform: translateY(-100%);
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down{ 0%{ transform: translateY(-100%); } 50%{ transform: translateY(0); } 100%{ transform: translateY(100%); } }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee-section{ padding: 56px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); position:relative; z-index:1; background: rgba(5,7,12,.6); }
.marquee-label{
  text-align:center; font-size: 0.75rem; letter-spacing:0.14em; text-transform:uppercase;
  color: var(--text-faint); margin-bottom: 26px;
}
.marquee{ overflow:hidden; mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent); }
.marquee-track{ display:flex; gap: 72px; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{
  font-family: var(--font-display); font-size: 1.45rem; font-weight:600; color: var(--text-faint);
  letter-spacing: 0.02em; white-space:nowrap; transition: color .3s;
  display:flex; align-items:center; gap: 72px;
}
.marquee-track span::after{ content:'◆'; font-size: .6rem; color: rgba(255,217,42,.4); }
.marquee-track span:hover{ color: var(--text); }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   Filters + service cards
   ========================================================================== */

.filters{
  position: relative; display:inline-flex; gap: 4px; padding: 5px; margin-bottom: 36px;
  border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.02);
  flex-wrap: wrap;
}
.filter{
  position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--text-dim);
  transition: color .3s;
}
.filter:hover{ color: var(--text); }
.filter.active{ color: #05070c; }
.filter-indicator{
  position:absolute; z-index: 0; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 999px; background: var(--grad-btn);
  box-shadow: 0 6px 20px -6px rgba(255,204,0,.6);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

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

.service-card{
  position: relative; padding: 32px 28px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); overflow:hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), opacity .4s var(--ease);
}
.service-card:hover{ border-color: var(--border-strong); transform: translateY(-6px); }
.service-card.is-hidden{ display:none; }
.service-card.is-dim{ opacity: 0; transform: scale(.96); }
.service-card::before{
  content:''; position:absolute; inset:0; border-radius: inherit; padding: 1px; pointer-events:none;
  background: radial-gradient(260px circle at var(--mx,50%) var(--my,0%), rgba(255,217,42,.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.service-card:hover::before{ opacity: 1; }
.card-glow{
  position:absolute; inset:0; opacity:0; transition: opacity .4s;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,0%), rgba(43,179,234,0.14), transparent 70%);
  pointer-events:none;
}
.service-card:hover .card-glow{ opacity:1; }

.card-icon{
  width: 46px; height:46px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  background: rgba(43,179,234,0.1); border:1px solid rgba(43,179,234,0.2); color: var(--blue-bright);
  margin-bottom: 20px; position:relative; z-index:1;
}
.card-icon.ia{ background: rgba(255,217,42,0.08); border-color: rgba(255,217,42,0.22); color: var(--yellow); }
.card-icon svg{ width: 22px; height: 22px; }
.card-chip{
  display:inline-block; position: relative; z-index: 1; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-bright);
}
.card-chip.ia{ color: var(--yellow); }
.service-card h3{
  font-family: var(--font-display); font-size: 1.2rem; font-weight:600; margin-bottom: 10px; position:relative; z-index:1;
}
.service-card p{ color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; position:relative; z-index:1; }
.card-index{
  position:absolute; top: 28px; right: 28px; font-family: var(--font-mono);
  font-size: 0.72rem; color: var(--text-faint);
}

/* ==========================================================================
   Sistema + IA (split)
   ========================================================================== */

.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items:center; }
.checklist{ margin-top: 30px; display:grid; gap: 14px; }
.checklist li{ display:flex; align-items:center; gap: 14px; color: var(--text); font-size: .98rem; }
.checklist li span{
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; position: relative;
  background: rgba(255,217,42,.1); border: 1px solid rgba(255,217,42,.3);
}
.checklist li span::after{
  content:''; position:absolute; left: 7px; top: 3.5px; width: 5px; height: 10px;
  border: solid var(--yellow); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}

.stack{ position: relative; display:flex; flex-direction:column; gap: 16px; perspective: 900px; padding-left: 28px; }
.stack-layer{
  position: relative; display:grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items:center;
  padding: 24px 26px; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(120deg, var(--surface), var(--bg-alt));
  transform: rotateX(18deg) rotateZ(-2deg);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .4s;
}
.stack-layer:hover{ transform: rotateX(0) rotateZ(0) translateX(8px); }
.stack-layer span{
  grid-row: span 2; font-family: var(--font-mono); font-size: .75rem; color: var(--text-faint);
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
}
.stack-layer strong{ font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.stack-layer em{ font-style: normal; font-size: .88rem; color: var(--text-dim); }
.stack-layer.l1{ border-color: rgba(43,179,234,.3); box-shadow: 0 20px 50px -24px rgba(0,115,158,.6); }
.stack-layer.l1 span{ color: var(--blue-bright); border-color: rgba(43,179,234,.4); }
.stack-layer.l2{ margin-left: 24px; }
.stack-layer.l2 span{ color: #8fd0c4; }
.stack-layer.l3{ margin-left: 48px; border-color: rgba(255,217,42,.3); box-shadow: 0 20px 50px -24px rgba(255,204,0,.45); }
.stack-layer.l3 span{ color: var(--yellow); border-color: rgba(255,217,42,.4); }
.stack-beam{
  position:absolute; left: 6px; top: 10%; bottom: 10%; width: 2px; border-radius: 2px;
  background: linear-gradient(to top, var(--blue-bright), var(--yellow));
  overflow: hidden;
}
.stack-beam::after{
  content:''; position:absolute; left:-3px; width: 8px; height: 30px; border-radius: 4px;
  background: #fff; filter: blur(3px);
  animation: beam 2.6s var(--ease-2) infinite;
}
@keyframes beam{ from{ top: 100%; } to{ top: -30px; } }

/* ==========================================================================
   Equipo
   ========================================================================== */

.team-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card{
  position: relative; padding: 30px 28px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-alt) 100%);
  transition: transform .4s var(--ease), border-color .4s;
}
.team-card::after{
  content:''; position:absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.team-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); }
.team-card:hover::after{ transform: scaleX(1); }
.team-icon{
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 20px;
  display:flex; align-items:center; justify-content:center; position: relative;
  color: var(--blue-bright); background: rgba(43,179,234,0.1); border: 1px solid rgba(43,179,234,0.25);
}
.team-icon::before{
  content:''; position:absolute; inset: -6px; border-radius: 18px;
  border: 1px dashed rgba(43,179,234,.3); animation: spin 18s linear infinite;
}
.team-icon.ia{ color: var(--yellow); background: rgba(255,217,42,0.08); border-color: rgba(255,217,42,0.25); }
.team-icon.ia::before{ border-color: rgba(255,217,42,.3); }
.team-icon svg{ width: 24px; height: 24px; }
.team-card h3{ font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.team-card p{ color: var(--text-dim); font-size: .92rem; line-height: 1.6; margin-bottom: 18px; }
.team-tags{ display:flex; flex-wrap: wrap; gap: 6px; }
.team-tags li{
  font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.02);
}

/* ==========================================================================
   Clientes
   ========================================================================== */

.clients-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 90px; }
.client-card{
  position: relative; border-radius: 20px; padding: 12px; overflow: hidden;
  border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.client-card:hover{ transform: translateY(-6px); border-color: rgba(255,217,42,.35); box-shadow: 0 20px 50px -24px rgba(255,204,0,.35); }
.client-plate{
  position: relative; height: 130px; border-radius: 14px; overflow: hidden;
  display:flex; align-items:center; justify-content:center; padding: 18px;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #eef2f7 100%);
}
.client-plate img{
  max-width: 100%; max-height: 94px; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .78;
  transition: filter .5s var(--ease), opacity .5s, transform .5s var(--ease);
}
.client-card:hover .client-plate img{ filter: none; opacity: 1; transform: scale(1.05); }
.client-plate::after{
  content:''; position:absolute; left:0; right:0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(43,179,234,.22), transparent);
  opacity: 0; pointer-events:none;
}
.client-card:hover .client-plate::after{ opacity: 1; animation: plate-scan 1.2s var(--ease-2); }
@keyframes plate-scan{ from{ top: -40%; } to{ top: 100%; } }
.client-card figcaption{ padding: 14px 6px 4px; }
.client-card strong{ display:block; font-family: var(--font-display); font-size: .92rem; font-weight: 600; line-height: 1.3; }
.client-card figcaption span{ font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-bright); }

.subhead{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em; margin-bottom: 28px;
}

@media (hover: none){
  .client-plate img{ filter: none; opacity: 1; }
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline{ position:relative; display:grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 28px; }
.timeline-line{ position:absolute; top: 0; left:0; right:0; height:2px; background: var(--border); }
.timeline-fill{
  height:100%; width:100%; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s var(--ease-2);
  box-shadow: 0 0 12px rgba(255,217,42,.4);
}
.timeline-fill.filled{ transform: scaleX(1); }
.step{ position:relative; padding-top: 8px; }
.step::before{
  content:''; position:absolute; top: -34px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--yellow); box-shadow: 0 0 12px rgba(255,217,42,.5);
}
.step-num{ font-family: var(--font-mono); font-size: 0.8rem; font-weight:500; color: var(--yellow); margin-bottom: 14px; }
.step h3{ font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 10px; font-weight:600; }
.step p{ color: var(--text-dim); font-size: 0.92rem; line-height: 1.6; }

/* ==========================================================================
   Stats
   ========================================================================== */

.stats-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card{
  position: relative; overflow:hidden;
  padding: 40px 26px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent);
  text-align:center;
  transition: transform .4s var(--ease), border-color .4s;
}
.stat-card:hover{ transform: translateY(-6px); border-color: rgba(255,217,42,.25); }
.stat-card::after{
  content:''; position:absolute; left: 20%; right: 20%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}
.stat-num{
  font-family: var(--font-display); font-size: 2.8rem; font-weight:700;
  background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-suffix{ font-family: var(--font-display); font-size: 1.6rem; font-weight:700; color: var(--blue-bright); }
.stat-card p{ margin-top: 12px; color: var(--text-dim); font-size: 0.86rem; line-height: 1.5; }

.sectors{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 36px; justify-content:center; }
.sectors span{
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  font-size: .85rem; color: var(--text-dim); background: rgba(255,255,255,.02);
  transition: color .3s, border-color .3s;
}
.sectors span:hover{ color: var(--yellow); border-color: rgba(255,217,42,.35); }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section{
  position:relative; max-width: 1040px; margin: 20px auto 140px; padding: 96px 32px;
  text-align:center; border-radius: 32px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  overflow:hidden;
}
.cta-section::before{
  content:''; position:absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events:none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--yellow) 80%, var(--blue-bright) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 6s linear infinite;
}
@property --angle{ syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes border-spin{ to{ --angle: 360deg; } }
.cta-glow{
  position:absolute; top:-35%; left:50%; translate:-50% 0; width: 760px; height:520px;
  background: radial-gradient(circle at 40% 50%, rgba(0,115,158,0.4), transparent 60%), radial-gradient(circle at 65% 50%, rgba(255,217,42,0.16), transparent 60%);
  filter: blur(50px); pointer-events:none;
}
.cta-grid{
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, black, transparent 70%);
}
.cta-title{
  font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight:600;
  letter-spacing:-0.02em; line-height:1.15; margin-bottom: 22px; position:relative;
}
.cta-section .section-sub{ margin: 0 auto 36px; position: relative; }
.cta-section .tag{ position:relative; }
.cta-actions{ position: relative; display:flex; gap: 14px; justify-content:center; flex-wrap: wrap; }

  position: relative; display:inline-flex; align-items:center; gap: 14px; margin-top: 44px;
  padding: 10px 22px 10px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); text-align:left;
}

/* ==========================================================================
   Footer + WhatsApp float
   ========================================================================== */

.footer{ border-top: 1px solid var(--border); padding: 44px 32px; background: rgba(5,7,12,.7); }
.footer-inner{
  max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap: 20px;
}
.footer-inner p{ color: var(--text-faint); font-size: 0.82rem; }
.footer-links{ display:flex; gap: 24px; flex-wrap: wrap; }
.footer-links a{ font-size: 0.82rem; color: var(--text-dim); transition: color .25s; }
.footer-links a:hover{ color: var(--yellow); }

.wa-float{
  position: fixed; right: 24px; bottom: 24px; z-index: 600;
  width: 58px; height: 58px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .35s var(--ease);
}
.wa-float::before{
  content:''; position:absolute; inset:0; border-radius: 50%;
  border: 2px solid #25d366; animation: ring 2.4s ease-out infinite;
}
@keyframes ring{ from{ transform: scale(1); opacity: .7; } to{ transform: scale(1.6); opacity: 0; } }
.wa-float:hover{ transform: scale(1.08); }
.wa-tip{
  position:absolute; right: 70px; white-space: nowrap;
  padding: 8px 14px; border-radius: 10px; font-size: .82rem; font-weight: 500;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.wa-float:hover .wa-tip{ opacity: 1; transform: translateX(0); }

.not-found{ position: relative; z-index: 2; display:flex; flex-direction:column; align-items:center; text-align:center; gap: 8px; }
.not-found .orbit-logo{ width: 120px; margin-bottom: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 1080px){
  .hero-inner{ grid-template-columns: 1fr; gap: 40px; }
  .hero-content{ max-width: 720px; margin: 0 auto; text-align: center; }
  .hero-actions, .hero-stats{ justify-content:center; }
  .hero-sub{ margin-left: auto; margin-right: auto; }
  .hero-visual{ max-width: 460px; margin: 0 auto; width: 100%; }
}

@media (max-width: 980px){
  .cards-grid, .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .clients-grid{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; gap: 56px; }
  .timeline{ grid-template-columns: repeat(2, 1fr); row-gap: 48px; padding-top: 0; }
  .timeline-line, .step::before{ display:none; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .nav-inner{ padding: 0 16px; }
  .section{ padding: 100px 16px; }
  .hero{ padding: 110px 16px 90px; }
  .hero-title{ font-size: 2.15rem; }
  .eyebrow{ font-size: .7rem; padding: 7px 12px; }
  .hero-actions .btn{ width: 100%; justify-content: center; }
  .cards-grid, .team-grid, .timeline, .stats-grid{ grid-template-columns: 1fr; }
  .clients-grid{ gap: 12px; margin-bottom: 64px; }
  .client-card{ padding: 8px; border-radius: 16px; }
  .client-plate{ height: 96px; padding: 12px; }
  .client-plate img{ max-height: 70px; }
  .client-card strong{ font-size: .8rem; }
  .client-card figcaption{ padding: 10px 4px 2px; }
  .hero-stats{ gap: 20px; }
  .hstat-sep{ display:none; }
  .orbit{ width: 240px; height: 240px; margin-bottom: -50px; }
  .orbit-logo{ width: 120px; }
  .stack{ padding-left: 20px; }
  .stack-layer.l2{ margin-left: 12px; }
  .stack-layer.l3{ margin-left: 24px; }
  .cta-section{ margin: 0 16px 110px; padding: 64px 20px; border-radius: 24px; }
  .btn-lg{ width: 100%; justify-content: center; padding: 16px 20px; font-size: .92rem; }
  .filters{ display:flex; border-radius: 20px; }
  .filter{ flex: 1 1 auto; }
  .wa-float{ right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .footer{ padding: 36px 16px 96px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html{ scroll-behavior: auto; }
  .reveal-up{ opacity: 1; transform: none; }
  .hero-title .word{ transform: none; }
}
