/* =========================================================
   HW Consulting MX — Estilos
   ========================================================= */

:root {
  --bg:        #060b1c;
  --bg-2:      #0a1128;
  --surface:   #0d1631;
  --surface-2: #121d3e;
  --line:      rgba(120,170,255,.14);
  --text:      #e9effc;
  --muted:     #9aa9cf;
  --muted-2:   #5f6e96;

  --c1: #33a4ff;   /* azul cyber */
  --c2: #7c6bff;   /* violeta */
  --c3: #22e3d6;   /* cyan */
  --green: #a2c614;            /* verde HW (acento de marca) */
  --green-soft: rgba(162,198,20,.14);
  --grad: linear-gradient(120deg, var(--c1), var(--c2) 55%, var(--c3));
  --grad-text: linear-gradient(115deg, var(--c1), var(--c2) 34%, var(--c3) 64%, var(--green));
  --grad-soft: linear-gradient(120deg, rgba(51,164,255,.16), rgba(124,107,255,.16));
  --shadow:      0 14px 40px rgba(0,0,0,.45);
  --shadow-lg:   0 26px 60px rgba(0,0,0,.62);
  --glow:        0 0 26px rgba(51,164,255,.38);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,.84,.34,1);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(51,164,255,.07), transparent 60%),
    radial-gradient(55% 45% at 0% 100%, rgba(124,107,255,.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: 'Sora', sans-serif; line-height: 1.1; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ===== Cursor glow ===== */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(51,164,255,.16), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity .3s; opacity: 0;
  mix-blend-mode: screen;
}
@media (hover:hover) and (pointer:fine){ .cursor-glow{ opacity: 1; } }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 200; transition: width .1s linear;
  box-shadow: 0 0 12px rgba(91,140,255,.6);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 18px 0; transition: padding .35s var(--ease), background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 11px 0;
  background: rgba(6,11,28,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 44px; width: auto; display: block; flex-shrink: 0; transition: transform .3s var(--ease); }
.brand:hover .brand-logo { transform: translateY(-1px) scale(1.05); }
/* (chip ya no se usa, se conserva por compatibilidad) */
.brand-logo-chip {
  width: 42px; height: 42px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 4px; flex-shrink: 0;
  border: 1px solid var(--line);
}
.brand-logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; align-items: center; gap: 8px; font-family: 'Sora'; font-weight: 800; font-size: 1.15rem; }
.brand-name { letter-spacing: -.5px; }
.brand-name em { font-style: normal; color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 9px 16px; border-radius: 10px; font-size: .94rem; font-weight: 500;
  color: var(--muted); transition: color .25s, background .25s; position: relative;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--text); }
.nav-cta {
  background: var(--grad); color: #fff !important; font-weight: 600;
  box-shadow: 0 6px 20px rgba(91,140,255,.3);
}
.nav-cta:hover { background: var(--grad); filter: brightness(1.08); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 3px; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 120px 24px 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb-1 { width: 480px; height: 480px; background: #1c6dff; top: -120px; left: -80px; animation: float1 16s ease-in-out infinite; }
.orb-2 { width: 420px; height: 420px; background: #6b3bff; bottom: -100px; right: -60px; animation: float2 19s ease-in-out infinite; }
.orb-3 { width: 360px; height: 360px; background: #16d8c8; top: 40%; left: 55%; animation: float1 22s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(40px,-50px); } }
@keyframes float2 { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-50px,40px); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(120,170,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120,170,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 880px; }

/* ===== Cyber / circuitos ===== */
.circuit-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .5; pointer-events: none; }
.circuit-layer .trace { fill: none; stroke: var(--c1); stroke-width: 1.2; opacity: .3; }
.circuit-layer .flow {
  fill: none; stroke: var(--c3); stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 16 218; filter: drop-shadow(0 0 4px var(--c3)); animation: flow 4.5s linear infinite;
}
.circuit-layer .flow.f2 { stroke: var(--c1); animation-duration: 6s; animation-delay: -2s; }
.circuit-layer .flow.f3 { stroke: var(--c2); animation-duration: 7s; animation-delay: -1s; }
@keyframes flow { to { stroke-dashoffset: -234; } }
.circuit-layer .node { fill: var(--c3); filter: drop-shadow(0 0 5px var(--c3)); animation: nodePulse 2.4s ease-in-out infinite; }
.circuit-layer .node:nth-child(3n) { animation-delay: -.8s; fill: var(--c1); }
.circuit-layer .node:nth-child(3n+1) { animation-delay: -1.6s; fill: var(--c2); }
.circuit-layer .node:nth-child(4n) { fill: var(--green); filter: drop-shadow(0 0 5px var(--green)); }
@keyframes nodePulse { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

/* emblema central: escudo + anillos */
.cyber-emblem {
  position: absolute; top: 46%; left: 50%; width: min(560px, 92vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); z-index: 0; opacity: .55; pointer-events: none;
}
.cyber-emblem svg { width: 100%; height: 100%; overflow: visible; }

/* Red de nodos (digitalización) */
.net-edge { stroke: var(--c1); stroke-width: 1.2; opacity: .22; }
.net-edge.ring { stroke: var(--c2); opacity: .16; }
.net-flow {
  stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 8 72;
  filter: drop-shadow(0 0 4px currentColor); animation: netflow 3.6s linear infinite;
}
.net-flow.a { stroke: var(--c3); color: var(--c3); }
.net-flow.b { stroke: var(--c1); color: var(--c1); animation-duration: 4.6s; animation-delay: -1.5s; }
.net-flow.c { stroke: var(--green); color: var(--green); animation-duration: 5.2s; animation-delay: -2.5s; }
@keyframes netflow { to { stroke-dashoffset: -80; } }

.net-node { fill: var(--c1); filter: drop-shadow(0 0 5px var(--c1)); animation: nodePulse 2.6s ease-in-out infinite; }
.net-node.c { fill: var(--c3); filter: drop-shadow(0 0 5px var(--c3)); animation-delay: -.9s; }
.net-node.g { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); animation-delay: -1.7s; }
.net-node.hub {
  fill: var(--c3); filter: drop-shadow(0 0 16px var(--c3));
  transform-origin: center; transform-box: fill-box; animation: hubPulse 3s ease-in-out infinite;
}
@keyframes hubPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.18); opacity: 1; } }

.bit {
  fill: var(--green); font-family: 'Sora', monospace; font-size: 13px; font-weight: 600;
  transform-box: fill-box; transform-origin: center; opacity: 0; animation: bitFloat 5s ease-in-out infinite;
}
.bit.b2 { animation-delay: -1s; fill: var(--c3); }
.bit.b3 { animation-delay: -2s; }
.bit.b4 { animation-delay: -3s; fill: var(--c3); }
.bit.b5 { animation-delay: -4s; }
@keyframes bitFloat {
  0% { opacity: 0; transform: translateY(8px); }
  30% { opacity: .75; } 70% { opacity: .45; }
  100% { opacity: 0; transform: translateY(-14px); }
}

.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 52% 46% at 50% 46%, rgba(6,11,28,.74), transparent 70%);
}

/* fondo cyber tenue en todo el sitio */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(rgba(120,170,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 92%);
}

/* ===== Fondo digital FIJO en todo el sitio ===== */
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.site-bg .circuit-layer { opacity: .26; }
.sb-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .16; }
.sb-orb-1 { width: 520px; height: 520px; background: #1c6dff; top: 10%; left: -130px; animation: float1 24s ease-in-out infinite; }
.sb-orb-2 { width: 460px; height: 460px; background: #6b3bff; bottom: 6%; right: -110px; animation: float2 28s ease-in-out infinite; }

/* destellos en porcentajes: visibles en cualquier pantalla (incl. móvil) */
.sb-dot {
  position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--c3);
  box-shadow: 0 0 10px var(--c3); opacity: .5; animation: nodePulse 2.6s ease-in-out infinite;
}
.sb-dot.d1 { top: 14%; left: 12%; }
.sb-dot.d2 { top: 27%; right: 15%; background: var(--c1); box-shadow: 0 0 10px var(--c1); animation-delay: -1s; }
.sb-dot.d3 { top: 46%; left: 20%; background: var(--green); box-shadow: 0 0 10px var(--green); animation-delay: -1.6s; }
.sb-dot.d4 { top: 61%; right: 17%; animation-delay: -.6s; }
.sb-dot.d5 { top: 77%; left: 15%; background: var(--c1); box-shadow: 0 0 10px var(--c1); animation-delay: -2.2s; }
.sb-dot.d6 { top: 88%; right: 22%; background: var(--green); box-shadow: 0 0 10px var(--green); animation-delay: -1.2s; }

/* streams de datos cayendo (solo móvil) */
.sb-stream { display: none; }
@keyframes streamFall {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: .8; }
  85% { opacity: .8; }
  100% { transform: translateY(150vh); opacity: 0; }
}

/* brillo cyber al pasar el cursor por las tarjetas */
.service-card:hover, .stat-card:hover, .step:hover, .demo-card:hover, .client-logo:hover {
  box-shadow: var(--shadow-lg), var(--glow);
}

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 100px; background: rgba(51,164,255,.08);
  font-size: .85rem; color: var(--text); margin-bottom: 28px; backdrop-filter: blur(8px);
  box-shadow: inset 0 0 16px rgba(51,164,255,.12);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(162,198,20,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(162,198,20,.6);} 70%{ box-shadow: 0 0 0 10px rgba(162,198,20,0);} 100%{ box-shadow:0 0 0 0 rgba(162,198,20,0);} }

.hero-title { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); max-width: 680px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 12px; font-family: 'Sora'; font-weight: 600;
  font-size: .98rem; cursor: pointer; border: 0; transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(91,140,255,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(91,140,255,.45); filter: brightness(1.06); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); box-shadow: var(--glow); }
.btn-green { background: var(--green); color: #0b1020; box-shadow: 0 10px 30px rgba(162,198,20,.30); }
.btn-green:hover { transform: translateY(-3px); box-shadow: 0 16px 42px rgba(162,198,20,.45); filter: brightness(1.06); }
.btn-block { width: 100%; margin-top: 8px; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: floatHint 2.4s ease-in-out infinite;
}
@keyframes floatHint { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.scroll-text {
  font-style: normal; font-family: 'Sora'; font-size: .76rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.scroll-hint span {
  display: block; width: 26px; height: 42px; border: 2px solid var(--c1); border-radius: 16px; position: relative;
  box-shadow: 0 0 14px rgba(51,164,255,.4);
}
.scroll-hint span::after {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--c3); animation: scrolldot 1.8s infinite;
}
@keyframes scrolldot { 0%{ opacity: 0; top: 8px;} 40%{ opacity:1;} 80%{ opacity:0; top: 22px;} 100%{ opacity:0;} }

/* ===== Tech marquee ===== */
.tech-marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(9,15,35,.72); overflow: hidden; padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  animation: marquee 32s linear infinite; font-family: 'Sora'; font-weight: 600;
  color: var(--muted); font-size: 1.05rem;
}
.marquee-track span:nth-child(even){ color: var(--c2); }
@keyframes marquee { from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: rgba(9,15,35,.72); }
.eyebrow {
  display: inline-block; font-family: 'Sora'; font-weight: 600; font-size: .82rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -1px; margin-bottom: 18px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ===== Nosotros ===== */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.point { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.point svg { color: var(--green); flex-shrink: 0; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .35s;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(77,124,255,.45); box-shadow: var(--shadow-lg); }
.stat-card:hover::before { opacity: 1; }
.stat-card > * { position: relative; }
.stat-num { font-family: 'Sora'; font-weight: 800; font-size: 2.6rem; }
.stat-plus { font-family: 'Sora'; font-weight: 800; font-size: 1.6rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ===== Servicios ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(124,77,255,.4); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--c1); margin-bottom: 20px;
  transition: transform .35s var(--ease);
}
.service-card:hover .svc-icon { transform: scale(1.08) rotate(-4deg); color: var(--green); }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .94rem; }

/* ===== Proceso / timeline ===== */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; position: relative; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(15,182,166,.45); box-shadow: var(--shadow-lg); }
.step-num {
  font-family: 'Sora'; font-weight: 800; font-size: 2.6rem;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px; opacity: .85;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; }

/* ===== Demos ===== */
.section-demos {
  background:
    radial-gradient(60% 70% at 85% 0%, rgba(124,77,255,.07), transparent 60%),
    radial-gradient(50% 60% at 5% 100%, rgba(77,124,255,.07), transparent 60%),
    rgba(6,11,28,.6);
}
.demos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.demo-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.demo-card:hover { transform: translateY(-8px); border-color: rgba(77,124,255,.4); box-shadow: var(--shadow-lg); }

.demo-thumb {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
  padding: 28px; background: linear-gradient(135deg, #eef2ff, #f6f0ff 50%, #e9fbf8);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.demo-thumb img { max-height: 90px; max-width: 75%; width: auto; object-fit: contain; position: relative; z-index: 1; transition: transform .4s var(--ease); }
.demo-card:hover .demo-thumb img { transform: scale(1.06); }
.demo-thumb::after {
  content: attr(data-name); position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center; font-family: 'Sora'; font-weight: 800;
  font-size: 1.7rem; letter-spacing: 1px;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo-thumb.no-img::after { display: flex; }
.demo-status {
  position: absolute; top: 12px; left: 12px; z-index: 2; font-family: 'Sora'; font-weight: 600;
  font-size: .72rem; letter-spacing: .5px; text-transform: uppercase; padding: 5px 11px;
  border-radius: 100px; background: rgba(255,255,255,.85); color: var(--c2);
  border: 1px solid var(--line); backdrop-filter: blur(4px);
}
.demo-status--live { color: #0a9d6e; }
.demo-status--live::before { content: '●'; margin-right: 5px; font-size: .7em; vertical-align: middle; }
.demo-status--soon { color: var(--muted); }
.demo-body { padding: 24px 24px 26px; }
.demo-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.demo-body p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tags span {
  font-size: .76rem; font-weight: 600; font-family: 'Sora'; padding: 5px 12px; border-radius: 100px;
  background: var(--grad-soft); color: var(--c1); border: 1px solid var(--line);
}

/* tarjeta "ver todos" */
.demo-card--all {
  background: var(--grad); color: #fff; border: 0; align-items: center; justify-content: center;
  text-align: center; min-height: 240px;
}
.demo-card--all:hover { filter: brightness(1.05); }
.demo-all-inner { padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.demo-all-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); color: #fff; margin-bottom: 8px;
}
.demo-card--all h3 { font-size: 1.3rem; }
.demo-card--all p { color: rgba(255,255,255,.85); font-size: .93rem; max-width: 240px; }
.demo-all-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: 'Sora';
  font-weight: 600; padding: 11px 20px; border-radius: 100px; background: rgba(255,255,255,.16);
  transition: background .25s, gap .25s;
}
.demo-card--all:hover .demo-all-cta { background: rgba(255,255,255,.28); gap: 12px; }

.demos-cta { text-align: center; margin-top: 44px; }

/* botón/enlace de demo (deshabilitado por ahora) */
.demo-foot { margin-top: 18px; }
.demo-link {
  display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center;
  padding: 12px 18px; border-radius: 11px; font-family: 'Sora'; font-weight: 600; font-size: .92rem;
  background: var(--grad); color: #fff; transition: transform .25s var(--ease), filter .25s;
}
.demo-link:hover { transform: translateY(-2px); filter: brightness(1.06); }
.demo-link.is-disabled {
  background: var(--surface-2); color: var(--muted-2); border: 1px dashed var(--line);
  cursor: not-allowed; pointer-events: none;
}

/* ===== Subpágina (hero compacto) ===== */
.subhero {
  position: relative; overflow: hidden; text-align: center;
  padding: 150px 24px 70px;
  background:
    radial-gradient(50% 80% at 80% 0%, rgba(124,77,255,.10), transparent 60%),
    radial-gradient(50% 80% at 10% 20%, rgba(77,124,255,.10), transparent 60%),
    rgba(6,11,28,.55);
  border-bottom: 1px solid var(--line);
}
.subhero .container { position: relative; z-index: 1; }
.subhero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -1px; margin-bottom: 16px; }
.subhero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.back-home {
  display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem;
  font-weight: 500; margin-bottom: 22px; transition: color .2s, gap .2s;
}
.back-home:hover { color: var(--c1); gap: 10px; }

.group-head { margin: 0 0 28px; display: flex; align-items: center; gap: 14px; }
.group-head h2 { font-size: 1.5rem; white-space: nowrap; }
.group-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.group-head .group-pill {
  font-family: 'Sora'; font-weight: 600; font-size: .74rem; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; background: var(--grad-soft); color: var(--c1); border: 1px solid var(--line);
}
.demos-group + .demos-group { margin-top: 70px; }

/* ===== Clientes ===== */
.clients-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
.client-logo {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; min-height: 130px; box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.client-logo:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(77,124,255,.35); box-shadow: var(--shadow-lg); }
.client-logo img { max-height: 78px; width: auto; object-fit: contain; }

/* ===== Contacto ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-info p { color: var(--muted); margin-bottom: 30px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a:hover { color: var(--green); }
.ci-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line); color: var(--c1); flex-shrink: 0;
}

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: .96rem;
  transition: border-color .25s, box-shadow .25s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--c1); box-shadow: 0 0 0 3px rgba(91,140,255,.18);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select { cursor: pointer; }
.field select option { background: var(--bg-2); }

.btn-spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; display: none; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading .btn-label { opacity: .6; }
.btn.loading .btn-spinner { display: inline-block; }

.form-status { font-size: .92rem; text-align: center; min-height: 20px; }
.form-status.ok { color: var(--c3); }
.form-status.err { color: #e23d54; }

/* ===== Footer ===== */
.footer { background: rgba(9,15,35,.8); border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; padding-bottom: 44px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 380px; font-size: .94rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-cols h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: .92rem; padding: 4px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 22px 24px; max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted-2); font-size: .85rem;
}

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,.45);
  transition: transform .3s var(--ease); animation: waPop .5s var(--ease) .8s both;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes waPop { from{ transform: scale(0); } to{ transform: scale(1); } }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.services-grid .reveal.visible,
.timeline .reveal.visible { transition-delay: var(--d, 0s); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .demos-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80%, 320px);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 8px; padding: 100px 24px 40px; background: var(--surface);
    border-left: 1px solid var(--line); transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.6);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { padding: 14px 18px; font-size: 1.05rem; }
  .nav-toggle { display: flex; z-index: 101; }

  /* Hero móvil: sin huecos grandes arriba/abajo */
  .hero { min-height: auto; justify-content: flex-start; padding: 96px 22px 48px; }
  .hero .badge { margin-bottom: 22px; }
  .scroll-hint { position: static; transform: none; margin: 24px auto 0; animation: floatHintM 2.4s ease-in-out infinite; }
  @keyframes floatHintM { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

  /* Fondo digital fijo más visible en móvil (el SVG ancho se recorta) */
  .site-bg .circuit-layer { opacity: .42; }
  .sb-orb { opacity: .24; filter: blur(80px); }
  .sb-orb-1 { width: 340px; height: 340px; left: -70px; top: 8%; }
  .sb-orb-2 { width: 320px; height: 320px; right: -70px; bottom: 12%; }
  body::after { opacity: .85; background-size: 46px 46px; }

  /* En móvil: fuera los puntos tipo estrella, entran los streams de datos */
  .sb-dot { display: none; }
  .sb-stream {
    display: block; position: absolute; top: -28vh; width: 2px; height: 26vh; border-radius: 2px;
    background: linear-gradient(to bottom, transparent, var(--c3) 65%, #ffffff);
    filter: drop-shadow(0 0 6px var(--c3)); opacity: 0;
    animation: streamFall linear infinite;
  }
  .sb-stream.s1 { left: 12%; animation-duration: 7s;  animation-delay: -1s;  }
  .sb-stream.s2 { left: 30%; animation-duration: 9.5s; animation-delay: -4s;
    background: linear-gradient(to bottom, transparent, var(--c1) 65%, #fff); filter: drop-shadow(0 0 6px var(--c1)); }
  .sb-stream.s3 { left: 50%; animation-duration: 6s;  animation-delay: -2.5s; height: 20vh;
    background: linear-gradient(to bottom, transparent, var(--green) 65%, #fff); filter: drop-shadow(0 0 6px var(--green)); }
  .sb-stream.s4 { left: 68%; animation-duration: 10.5s; animation-delay: -6s; }
  .sb-stream.s5 { left: 84%; animation-duration: 8s;  animation-delay: -3s; height: 22vh;
    background: linear-gradient(to bottom, transparent, var(--c1) 65%, #fff); filter: drop-shadow(0 0 6px var(--c1)); }
  .sb-stream.s6 { left: 42%; animation-duration: 12s; animation-delay: -8s;
    background: linear-gradient(to bottom, transparent, var(--green) 65%, #fff); filter: drop-shadow(0 0 6px var(--green)); }
  /* bandas un poco más translúcidas para que el fondo se aprecie */
  .section-alt, .footer, .tech-marquee { background: rgba(9,15,35,.6); }
  .section-demos {
    background:
      radial-gradient(60% 70% at 85% 0%, rgba(124,77,255,.07), transparent 60%),
      radial-gradient(50% 60% at 5% 100%, rgba(77,124,255,.07), transparent 60%),
      rgba(6,11,28,.5);
  }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .services-grid, .timeline, .demos-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 26px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
