/* Kapix 2026 — estilos del sitio (línea corporativa). Las figuras usan css/iso.css (generado)
   y el demo del ERP usa css/erp-demo.css. */

/* ---------- Tokens ---------- */
:root {
  --green: #01C38D;
  --green-ink: #00805C;
  --green-soft: rgba(1, 195, 141, .1);
  --navy: #132D46;
  --navy-900: #0A1A2A;
  --navy-800: #0E2236;
  --navy-700: #163452;
  --bg: #FFFFFF;
  --bg-2: #F5F7FA;
  --bg-3: #EDF1F5;
  --card: #FFFFFF;
  --card-2: #F8FAFC;
  --line: #E3E8EE;
  --line-2: #CFD8E2;
  --text: #0B1B2B;
  --muted: #4B5C6D;
  --faint: #8492A2;
  --primary: #132D46;
  --primary-hover: #0C2135;
  --on-primary: #FFFFFF;
  --danger: #C8423A;
  --warn: #B7791F;
  --shadow-sm: 0 1px 2px rgba(11, 27, 43, .06), 0 1px 3px rgba(11, 27, 43, .05);
  --shadow: 0 2px 4px rgba(11, 27, 43, .04), 0 12px 32px -8px rgba(11, 27, 43, .14);
  --shadow-lg: 0 4px 8px rgba(11, 27, 43, .04), 0 32px 64px -16px rgba(11, 27, 43, .28);
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --green-ink: #2ED3A2;
  --green-soft: rgba(1, 195, 141, .13);
  --bg: #08131E;
  --bg-2: #0B1825;
  --bg-3: #0F1F2F;
  --card: #0F1E2D;
  --card-2: #122334;
  --line: rgba(205, 222, 235, .1);
  --line-2: rgba(205, 222, 235, .18);
  --text: #E6EDF3;
  --muted: #9AABBB;
  --faint: #66798B;
  --primary: #01C38D;
  --primary-hover: #19D49E;
  --on-primary: #04261C;
  --danger: #F0726B;
  --warn: #E2A93B;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 12px 32px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Paleta de las figuras anatomy: grises técnicos con tinte navy, verde de marca como acento. */
html.iso, html.iso[data-theme="light"] {
  --anatomy-page: var(--bg-2); --anatomy-card: #FFFFFF; --anatomy-paper: #FFFFFF;
  --anatomy-text: #4F6272; --anatomy-strong: #0B1B2B; --anatomy-muted: #8494A1;
  --anatomy-face: #FFFFFF; --anatomy-top: #FFFFFF;
  --anatomy-shade-0: #D3DCE3; --anatomy-shade-1: #DDE5EA; --anatomy-shade-2: #E7EDF1; --anatomy-shade-3: #EFF3F6;
  --anatomy-lit-top: #FFFFFF; --anatomy-lit-shade: #E3F3EC;
  --anatomy-hi: #132D46; --anatomy-mid: #7D8D9A; --anatomy-lo: #ABB8C1; --anatomy-faint: #CED7DD;
  --anatomy-lit: #00976c; --anatomy-halo: #7A8A8C; --anatomy-halo-opacity: .3; --anatomy-dot: #2C3D4A;
  --anatomy-green: #00976c;
  --anatomy-mono: var(--mono);
}
html.iso[data-theme="dark"] {
  --anatomy-page: var(--bg-2); --anatomy-card: #0D1C2B; --anatomy-paper: #0D1C2B;
  --anatomy-text: #9FB1C0; --anatomy-strong: #E6EDF3; --anatomy-muted: #61778A;
  --anatomy-face: #10283C; --anatomy-top: #122B40;
  --anatomy-shade-0: #08192A; --anatomy-shade-1: #0A1C2D; --anatomy-shade-2: #0C1F31; --anatomy-shade-3: #0E2335;
  --anatomy-lit-top: #15344A; --anatomy-lit-shade: #0F2B3A;
  --anatomy-hi: #CDDAE4; --anatomy-mid: #5E7487; --anatomy-lo: #354B5E; --anatomy-faint: #213547;
  --anatomy-lit: #01C38D; --anatomy-halo: #01070D; --anatomy-halo-opacity: .9; --anatomy-dot: #CDDAE4;
  --anatomy-green: #01C38D;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.02em; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.muted { color: var(--muted); }
::selection { background: var(--navy); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green-ink); font: 600 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--muted); font: 500 12.5px/1 var(--sans);
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); justify-items: start; max-width: 760px; }
.section-head.center { justify-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 24px 64px; }
.section-head.split > div { display: grid; gap: 16px; justify-items: start; }
.section-title { margin: 0; font: 600 clamp(32px, 4vw, 48px)/1.12 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
.section-sub { margin: 0; max-width: 62ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }
.lead { margin: 0; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 15px/1 var(--sans); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-accent { background: var(--green); color: #04261C; }
.btn-accent:hover { background: #19D49E; }
.btn-ghost { border-color: var(--line-2); background: var(--card); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra superior + navegación ---------- */
.topbar { background: var(--navy-900); color: #B5C3D0; font-size: 13px; }
.topbar .container { display: flex; align-items: center; gap: 24px; height: 38px; }
.topbar a:hover { color: #fff; }
.topbar .tb-note { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.topbar .tb-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.topbar .tb-link { color: #01C38D; font-weight: 500; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background-color .4s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-logo img { height: 34px; width: auto; }
:root[data-theme="dark"] .nav-logo img, :root[data-theme="dark"] .footer-brand > img:first-child { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-links a { position: relative; padding: 8px 12px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -23px; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--card); transition: border-color .2s;
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease); }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { opacity: 0; transform: scale(.6); }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 17px; } .nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 72px 0 0; z-index: 90; display: flex; flex-direction: column; gap: 24px;
  padding: 16px var(--gutter) 32px; background: var(--bg); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 500 20px/1.2 var(--sans); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow-x: clip; color: #E6EDF3; background: var(--bg);
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
}
/* El fondo navy termina antes del final: la ventana del demo cae sobre el blanco de la página. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 clamp(180px, 22vw, 320px) 0; z-index: -1;
  background:
    radial-gradient(1000px 520px at 85% -10%, rgba(1, 195, 141, .16), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(36, 92, 140, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy) 100%);
}
/* Sin cuadrícula en el fondo del hero. */
.hero-grid-bg { display: none; }
/* Portada sin demo: el navy llega hasta el final del hero. */
.hero.hero-solo::before { inset: 0; }
.hero-inner { position: relative; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero .tag { background: rgba(255, 255, 255, .06); border-color: rgba(205, 222, 235, .18); color: #CFDAE4; }
.hero-title { margin: 22px 0 0; font: 600 clamp(38px, 5vw, 64px)/1.06 var(--sans); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.hero-title .hl { color: #01C38D; }
.hero-lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(17px, 1.4vw, 19px); color: #B5C3D0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(205, 222, 235, .3); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-proof { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 32px; margin: 40px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(205, 222, 235, .14); }
.hero-proof li { min-width: 0; }
.hero-proof strong { display: block; font: 600 22px/1.1 var(--sans); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-proof span { display: block; max-width: 18ch; margin-top: 6px; font-size: 13px; line-height: 1.4; color: #93A6B8; }

/* Fondo de partículas (js/particles.js): más denso alrededor de la galaxia, se apaga hacia el texto. */
.hero-particles {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  mask-image: radial-gradient(90% 95% at 76% 38%, #000 22%, rgba(0, 0, 0, .4) 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 95% at 76% 38%, #000 22%, rgba(0, 0, 0, .4) 62%, transparent 100%);
}
.hero-particles canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* Láser del hero (js/hero-laser.js): la luz corre por el borde del navbar y el haz baja hasta el fondo del hero,
   detrás del texto y de la galaxia. El láser se dibuja volteado (su piso queda arriba); al aparecer, una cortina lo
   descubre de arriba hacia abajo y la parte de abajo se desvanece. */
.hero-laser {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  animation: hero-laser-drop 1.6s cubic-bezier(.5, 0, .2, 1) .3s both;
}
.hero-laser[hidden] { display: none; }
.hero-laser-flip { position: absolute; inset: 0; transform: scaleY(-1); }
@keyframes hero-laser-drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { .hero-laser { animation: none; } }
/* Binary Orbits (js/hero-galaxy.js): la galaxia en WebGL es el arte del hero, a la derecha del texto;
   baja un poco más lento que la página (--gx-drift). El resplandor de abajo le da cuerpo al núcleo y al disco. */
.hero-galaxy { position: absolute; z-index: -1; top: clamp(80px, 9vw, 140px); right: max(-30px, calc(50% - 730px)); width: clamp(420px, 42vw, 600px); aspect-ratio: 16 / 10; pointer-events: none; transform: translateY(var(--gx-drift, 0px)); }
.hero-galaxy::before { content: ""; position: absolute; inset: 18% 8%; z-index: -1; border-radius: 50%; transform: rotate(-19deg) scaleY(.42); background: radial-gradient(closest-side, rgba(255, 228, 196, .3), rgba(110, 112, 230, .2) 40%, rgba(110, 112, 230, .06) 75%, transparent); filter: blur(16px); }
.hero-galaxy canvas { position: absolute; inset: -20% -16%; width: 132%; height: 140%; -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 72%, transparent); mask-image: radial-gradient(50% 50% at 50% 50%, #000 72%, transparent); }

/* La ventana del demo nace en el hero y lo desborda hacia la sección siguiente. */
.hero-demo { position: relative; margin-top: clamp(48px, 6vw, 72px); }
.hero-demo::before { content: ""; position: absolute; inset: 6% 10% auto; height: 70%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 195, 141, .2), transparent); filter: blur(48px); pointer-events: none; }
.hero-demo-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; color: #93A6B8; font-size: 13.5px; }
.hero-demo-label strong { color: #fff; font-weight: 500; }
.hero-demo-label .live { display: inline-flex; align-items: center; gap: 8px; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--green); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.hero-demo > .erp-app { position: relative; }
.fig-slot { min-width: 0; }

/* ---------- Clientes ---------- */
.clients { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.clients-head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; color: var(--muted); font-size: 14.5px; }
.clients-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.logo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-grid figure {
  margin: 0; min-width: 0; display: grid; place-items: center; aspect-ratio: 1.6; padding: 14px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card);
}
.logo-grid img { width: 70%; height: 78%; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.logo-grid figure:hover img { filter: none; opacity: 1; }
:root[data-theme="dark"] .logo-grid figure { background: #F4F6F8; }

/* ---------- ERP: capacidades ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cap { display: grid; align-content: start; gap: 10px; padding: 26px 24px; background: var(--card); transition: background-color .25s; }
.cap:hover { background: var(--card-2); }
.cap-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); margin-bottom: 6px; }
.cap-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap h3, .cap h4 { margin: 0; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.cap p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cap.wide { grid-column: span 2; }

.fig-row { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(72px, 9vw, 120px); }
.fig-copy { display: grid; gap: 16px; justify-items: start; }
.fig-copy h3, .fig-copy h4 { margin: 0; font: 600 clamp(26px, 2.8vw, 36px)/1.15 var(--sans); letter-spacing: -.02em; }
.fig-copy p { margin: 0; color: var(--muted); max-width: 44ch; }
.steps-mini { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps-mini li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: baseline; font-size: 15px; counter-increment: s; }
.steps-mini li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg-3); color: var(--text); font: 600 12px/1 var(--mono); }
.fig-row.flip { grid-template-columns: 1.4fr .8fr; margin-top: clamp(40px, 5vw, 64px); }
.mobile-caps { margin-top: clamp(48px, 6vw, 80px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--green-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.text-link:hover .arrow { transform: translateX(3px); }
.text-link .arrow { transition: transform .2s; }

/* Placas anatomy dentro del sitio */
.fig-wrap .iso-figure { margin: 0; }
.fig-wrap .iso-plate { border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.fig-wrap .iso-stage { outline: none; cursor: ew-resize; }
.fig-wrap .iso-stage:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; border-radius: 10px; }
.fig-wrap .iso-legend { padding: 0 6px; }
.fig-wrap .iso-plate-corner[data-corner="readout"] { color: var(--green-ink); }

/* ---------- Servicios ---------- */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative; display: grid; align-content: start; gap: 12px;
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.service:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service .num { color: var(--faint); font: 500 12.5px/1 var(--mono); }
.service h3, .service h4 { margin: 6px 0 0; font-size: 21px; line-height: 1.25; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }
.service.feature { grid-row: span 2; background: var(--navy); border-color: var(--navy); color: #E6EDF3; }
.service.feature p { color: #B5C3D0; }
.service.feature .num { color: #7F93A6; }
.service.feature .cap-ico { background: rgba(1, 195, 141, .16); color: #01C38D; }
.service.feature .chips li { border-color: rgba(205, 222, 235, .22); color: #CFDAE4; }
.service.feature .btn { margin-top: 12px; justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0 0; list-style: none; }
.chips li { padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--muted); }
.tech { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.tech > span { margin-right: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.tech li { list-style: none; padding: 6px 11px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font: 500 12.5px/1 var(--mono); color: var(--muted); }
.tech ul { display: contents; }

/* Portada: una tarjeta por servicio; cada una lleva a su página. */
.svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-card {
  display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 12px; padding: 28px; color: inherit; text-decoration: none;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.svc-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-card:hover .text-link .arrow { transform: translateX(3px); }
.svc-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.svc-card-top .cap-ico { margin: 0; }
.svc-card-top .mono { color: var(--faint); font-size: 12.5px; }
.svc-card h3 { margin: 0; font: 600 24px/1.2 var(--sans); letter-spacing: -.015em; }
.svc-card p { margin: 0; color: var(--muted); font-size: 15px; }
.svc-card .chips { margin: 4px 0 0; }
.svc-card .text-link { margin-top: 8px; }

/* Brillo de borde (BorderGlow, React Bits) en las tarjetas de servicios; js/border-glow.js mueve el cono. */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --glow-padding: 40px;
  --cone-spread: 25;
  --fill-opacity: .5;
  --glow-blend: plus-lighter;
  --fill-blend: soft-light;
  /* Malla con los colores de Kapix: verde, azul y verde claro. */
  --mesh-1: #01C38D; --mesh-2: #5FA8D3; --mesh-3: #2ED3A2;
  --glow-h: 163deg; --glow-s: 85%; --glow-l: 62%;
  position: relative;
  isolation: isolate;
}
:root:not([data-theme="dark"]) .border-glow-card {
  --mesh-3: #00976C;
  --glow-s: 99%; --glow-l: 38%;
  --glow-blend: normal;
  --fill-blend: normal;
  --fill-opacity: .12;
}
.border-glow-card {
  --glow-color: hsl(var(--glow-h) var(--glow-s) var(--glow-l) / 100%);
  --glow-color-60: hsl(var(--glow-h) var(--glow-s) var(--glow-l) / 60%);
  --glow-color-50: hsl(var(--glow-h) var(--glow-s) var(--glow-l) / 50%);
  --glow-color-40: hsl(var(--glow-h) var(--glow-s) var(--glow-l) / 40%);
  --glow-color-30: hsl(var(--glow-h) var(--glow-s) var(--glow-l) / 30%);
  --glow-color-20: hsl(var(--glow-h) var(--glow-s) var(--glow-l) / 20%);
  --glow-color-10: hsl(var(--glow-h) var(--glow-s) var(--glow-l) / 10%);
  --mesh:
    radial-gradient(at 80% 55%, var(--mesh-1) 0px, transparent 50%),
    radial-gradient(at 69% 34%, var(--mesh-2) 0px, transparent 50%),
    radial-gradient(at 8% 6%, var(--mesh-3) 0px, transparent 50%),
    radial-gradient(at 41% 38%, var(--mesh-1) 0px, transparent 50%),
    radial-gradient(at 86% 85%, var(--mesh-2) 0px, transparent 50%),
    radial-gradient(at 82% 18%, var(--mesh-3) 0px, transparent 50%),
    radial-gradient(at 51% 4%, var(--mesh-2) 0px, transparent 50%),
    linear-gradient(var(--mesh-1) 0 100%);
}
.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity .25s ease-out;
  z-index: -1;
}
.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity .75s ease-in-out;
}
/* Borde de color: la malla solo en el anillo del borde, recortada a un cono hacia el puntero. */
.border-glow-card::before {
  border: 1px solid transparent;
  background: linear-gradient(var(--card) 0 100%) padding-box, var(--mesh);
  background-origin: border-box;
  background-clip: padding-box, border-box, border-box, border-box, border-box, border-box, border-box, border-box, border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
}
/* Relleno tenue de la malla cerca del borde. */
.border-glow-card::after {
  border: 1px solid transparent;
  background: var(--mesh);
  background-clip: padding-box;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: var(--fill-blend);
}
/* Halo exterior que sigue al puntero. */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1 - 1px);
  z-index: 1;
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: var(--glow-blend);
}
.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30),
    inset 0 0 25px 2px var(--glow-color-20),
    inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 3px 0 var(--glow-color-50),
    0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30),
    0 0 25px 2px var(--glow-color-20),
    0 0 50px 2px var(--glow-color-10);
}
:root:not([data-theme="dark"]) .border-glow-card > .edge-light::before {
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 6px 0 var(--glow-color-20),
    inset 0 0 15px 0 var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 6px 0 var(--glow-color-30),
    0 0 15px 0 var(--glow-color-20),
    0 0 30px 2px var(--glow-color-10);
}

/* Páginas de servicio: el contenido que antes vivía en las pestañas de la portada. */
.svc-body .fig-row { margin-top: clamp(48px, 6vw, 72px); }
.svc-body .fig-row.flip { margin-top: 0; }
.svc-body .mobile-caps { margin-top: clamp(32px, 4vw, 48px); }
.svc-body .service-list + .tech { margin-top: 32px; }
.svc-body .cap { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 20px 22px; }
.svc-body .cap .cap-ico { grid-row: span 2; margin: 0; }
.svc-body .cap h4 { align-self: center; }

/* ---------- Planes ---------- */
.plans-intro { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 20px; }
.demo-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius); background: var(--navy); color: #E6EDF3; position: relative; overflow: hidden;
}
.demo-card::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -160px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 195, 141, .28), transparent 65%);
}
.demo-card > * { position: relative; }
.demo-card .tag { background: rgba(255, 255, 255, .06); border-color: rgba(205, 222, 235, .2); color: #CFDAE4; }
.demo-card h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.demo-card p { margin: 0; color: #B5C3D0; }
.demo-card small { color: #8FA3B3; font-size: 13px; }
.demo-card .btn { margin-top: auto; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(1, 195, 141, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301C38D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

.calc { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.calc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--faint); transition: color .3s; }
.calc-steps li span {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); font: 600 12px/1 var(--mono); transition: background-color .3s, border-color .3s, color .3s;
}
.calc-steps li.active { color: var(--text); }
.calc-steps li.active span { border-color: var(--navy); background: var(--navy); color: #fff; }
:root[data-theme="dark"] .calc-steps li.active span { border-color: var(--green); background: var(--green); color: #04261C; }
.calc-steps li.completed { color: var(--muted); }
.calc-steps li.completed span { background: var(--green); border-color: var(--green); color: #04261C; }
.calc-progress { height: 3px; margin: 18px 0 clamp(24px, 3vw, 36px); background: var(--bg-3); border-radius: 3px; overflow: hidden; }
.calc-progress i { display: block; height: 100%; width: 25%; background: var(--green); transition: width .6s var(--ease); }
.calc-view { position: relative; }
.calc-step { display: none; }
.calc-step.active { display: block; }
.step-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.step-head h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; max-width: 34ch; }
.step-head p { margin: 0; color: var(--muted); max-width: 70ch; font-size: 15px; }
.step-head strong { color: var(--text); font-weight: 600; }
.billing { position: relative; display: flex; flex: none; padding: 4px; border-radius: var(--radius-sm); background: var(--bg-3); }
.billing button { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.billing button.on { color: var(--text); }
.billing button em { font-style: normal; font: 600 11px/1 var(--mono); margin-left: 4px; color: var(--green-ink); }
.billing-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 6px; background: var(--card); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), width .4s var(--ease); }

.plan-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 18px; text-align: left;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
button.pcard:hover, .pcard.selectable:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard.active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }
.pcard.active::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304261C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pcard-badge { position: absolute; top: -10px; left: 16px; padding: 4px 8px; border-radius: 5px; background: var(--navy); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .02em; }
:root[data-theme="dark"] .pcard-badge { background: var(--green); color: #04261C; }
.pcard h4 { margin: 0; font-size: 17px; }
.pcard-price { font: 600 32px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pcard-price small { font: 400 14px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.pcard-annual { font: 500 11.5px/1.3 var(--mono); color: var(--green-ink); min-height: 14px; }
.pcard-users { font-size: 14px; color: var(--muted); } .pcard-users strong { color: var(--text); }
.pcard-mods { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 13.5px; }
.pcard-mods li { display: flex; gap: 8px; align-items: baseline; }
.pcard-mods li::before { content: "✓"; color: var(--green-ink); font-size: 12px; font-weight: 700; }
.pcard-note { margin: auto 0 0; font-size: 12.5px; color: var(--muted); }
.pcard.custom { background: var(--navy); color: #E6EDF3; border-color: var(--navy); }
.pcard.custom .pcard-badge { background: var(--green); color: #04261C; }
.pcard.custom .pcard-users, .pcard.custom .pcard-note { color: #B5C3D0; } .pcard.custom .pcard-users strong { color: #fff; }
.pcard.custom .pcard-mods { border-color: rgba(205, 222, 235, .16); } .pcard.custom .pcard-mods li::before { color: #01C38D; }
.pcard-actions { display: grid; gap: 6px; }
.pcard-actions .btn { height: 36px; font-size: 13px; padding: 0 12px; }
.pcard.custom .btn-primary { background: var(--green); color: #04261C; }
.pcard.custom .btn-ghost { background: transparent; color: #E6EDF3; border-color: rgba(205, 222, 235, .24); }
.pcard p.opt-note { margin: 0; font-size: 14px; color: var(--muted); }
.hours { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.hours-ctl { display: flex; align-items: center; gap: 6px; }
.hours-ctl button { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); font-size: 18px; }
.hours-ctl input { width: 72px; height: 36px; text-align: center; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: 500 15px var(--mono); }
.step-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.step-nav.center { justify-content: center; }
.alt-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.alt-contact span { margin-right: auto; }

.summary-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.summary-table th { text-align: left; font: 600 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 0 12px 12px; }
.summary-table td { padding: 16px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.summary-table td:first-child { font-weight: 600; }
.summary-table td:nth-child(2) { color: var(--muted); }
.summary-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.totals { display: grid; gap: 10px; margin-top: 16px; margin-left: auto; max-width: 460px; padding: 20px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.totals div b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.totals .grand { padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; color: var(--text); }
.totals .grand b { color: var(--text); font-size: 26px; letter-spacing: -.02em; }

.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.quote-form .step-nav, .quote-form .form-error { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--card); color: var(--text); font: 400 15px var(--sans); transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 45, 70, .12); }
:root[data-theme="dark"] .field input:focus, :root[data-theme="dark"] .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.form-error { margin: 0; color: var(--danger); font-size: 13.5px; }
.success { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 24px 0; }
.success h3 { margin: 8px 0 0; font-size: clamp(24px, 2.6vw, 32px); }
.success p { margin: 0; max-width: 52ch; }
.success-mark svg { width: 60px; height: 60px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 1s var(--ease) forwards; }
.success-mark path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .6s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  margin: 0; display: flex; flex-direction: column; gap: 22px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.stars { display: flex; gap: 3px; color: #E0A526; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 16px/1 var(--sans); flex: none; }

/* ---------- Trabajos ---------- */
.filters { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 28px; border-radius: var(--radius-sm); background: var(--bg-3); }
.filters button { border: 0; background: transparent; padding: 9px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.filters button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { display: grid; gap: 0; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--card); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.work-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.work-card[hidden] { display: none; }
.work-media { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--bg-3); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-view { display: none; }
.work-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; }
.work-info h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.work-info span { flex: none; color: var(--faint); }
.work-info .go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); transition: background-color .2s, color .2s, border-color .2s; }
.work-card:hover .go { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Cifras ---------- */
.stats { background: var(--navy); color: #E6EDF3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: clamp(36px, 5vw, 56px) clamp(16px, 2vw, 28px); border-left: 1px solid rgba(205, 222, 235, .12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font: 600 clamp(40px, 4.6vw, 60px)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; }
.stat strong b { font-weight: 600; }
.stat strong i { font-style: normal; color: #01C38D; }
.stat p { margin: 10px 0 0; color: #93A6B8; font-size: 15px; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-copy { display: grid; gap: 22px; justify-items: start; }
.contact-info { display: grid; gap: 0; margin: 8px 0 0; width: 100%; border-top: 1px solid var(--line); }
.contact-info > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
.contact-info .ci-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-info dt { color: var(--faint); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.contact-info dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; }
.contact-info a:hover { color: var(--green-ink); }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.form-card h3 { margin: 0 0 6px; font-size: 22px; }
.form-card > p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; }
.contact-form legend { font-size: 13.5px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.type-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.type-chips label { display: block; }
.type-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-chips span { display: block; padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); transition: all .2s; cursor: pointer; }
.type-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .type-chips input:checked + span { background: var(--green); border-color: var(--green); color: #04261C; }
.type-chips input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.form-legal { margin: 0; color: var(--faint); font-size: 12.5px; }
.contact-done { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 12px; }
.contact-done[hidden] { display: none; }
.contact-done strong { font-size: 22px; }
.contact-done span { color: var(--muted); }

/* ---------- Footer ---------- */
/* overflow: la superficie invisible del láser (footer-laser.js) baja 480px bajo la línea; sin recorte alargaba la página con una franja blanca. */
.footer { padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--navy-900); color: #B5C3D0; overflow: hidden; overflow: clip; }
/* Banda de aterrizaje: el cohete del inicio baja con el scroll y se posa aquí. */
.footer-landing { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); margin: 0 0 clamp(40px, 5vw, 64px); padding: 0 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid rgba(205, 222, 235, .12); }
.landing-copy { display: grid; gap: 16px; justify-items: start; max-width: 520px; }
.landing-copy .eyebrow { color: #01C38D; }
.landing-copy h2 { margin: 0; color: #fff; font: 600 clamp(28px, 3.2vw, 42px)/1.1 var(--sans); letter-spacing: -.025em; }
.landing-copy p { margin: 0; color: #93A6B8; font-size: 16px; max-width: 46ch; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer-brand > img:first-child { height: 38px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin: 0; color: #93A6B8; max-width: 36ch; font-size: 15px; }
.seal { width: 70px; height: auto; border-radius: 8px; background: #fff; padding: 6px; }
.footer-grid h4 { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 10px; align-content: start; }
.footer-grid a { color: #93A6B8; font-size: 14.5px; transition: color .2s; justify-self: start; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(205, 222, 235, .12); color: #7F93A6; font-size: 13.5px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter); }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 15, 24, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; width: min(1120px, 100%); max-height: calc(100svh - 2 * var(--gutter));
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-lg);
}
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--card); font-size: 22px; line-height: 1; }
.modal-media { display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 14px; background: var(--bg-2); min-height: 0; }
.modal-media > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; }
.modal-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.modal-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border-radius: 6px; border: 2px solid transparent; overflow: hidden; background: none; opacity: .6; transition: opacity .2s, border-color .2s; }
.modal-thumbs button.on { border-color: var(--green); opacity: 1; }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { display: grid; gap: 18px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 40px); overflow-y: auto; overscroll-behavior: contain; }
.modal-body > .mono { color: var(--green-ink); text-transform: uppercase; letter-spacing: .1em; }
.modal-body h3 { margin: 0; padding-right: 40px; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; width: 100%; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-meta .wide { grid-column: 1 / -1; }
.modal-meta dt { color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.modal-meta dd { margin: 0; font-size: 15px; }
.modal-desc { color: var(--muted); font-size: 15px; }
.modal-desc p { margin: 0 0 12px; }
.modal-desc h4 { margin: 16px 0 8px; color: var(--text); }
.modal-desc ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.modal-desc strong { color: var(--text); font-weight: 600; }
.modal-desc a { color: var(--green-ink); }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Entradas al hacer scroll ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 9px; font-size: 14.5px; }
  .plan-cards { grid-template-columns: repeat(3, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap.wide { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .topbar .tb-hide { display: none; }
  .fig-row, .fig-row.flip, .plans-intro, .contact-grid { grid-template-columns: 1fr; }
  .fig-row.flip .fig-copy { order: -1; }
  .hero-galaxy { display: none; }
  .footer-landing { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .landing-copy { justify-items: center; }
  .hero-copy { max-width: none; }
  .section-head.split { grid-template-columns: 1fr; }
  .svc-cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topbar .container { gap: 14px; font-size: 12.5px; }
  .topbar .tb-note span { display: none; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 32px; }
  .hero-proof strong { font-size: 20px; }
  .hero-demo-label .hint { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap.wide { grid-column: auto; }
  .service-list { grid-template-columns: 1fr; }
  .svc-body .cap { padding: 18px; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-cards { grid-template-columns: 1fr; }
  .step-head { flex-direction: column; align-items: stretch; }
  .billing { align-self: flex-start; }
  .calc-steps li { font-size: 0; gap: 0; justify-content: center; }
  .calc-steps li.active { font-size: 13px; gap: 8px; }
  .summary-table th:nth-child(2), .summary-table td:nth-child(2) { display: none; }
  .quote-form, .contact-form { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-left: 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(205, 222, 235, .12); }
  .alt-contact span { flex-basis: 100%; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { grid-template-columns: 1fr; max-height: 92svh; border-radius: 16px 16px 0 0; overflow-y: auto; }
  .modal-media { grid-template-rows: auto auto; }
  .modal-media > img { height: auto; max-height: 40svh; }
  .modal-body { overflow: visible; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

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

/* ---------- Clientes: carrusel de logos (FlexCarousel, React Bits) ---------- */
.logo-carousel, .logo-carousel.flex-carousel { height: clamp(300px, 31vw, 430px); margin-top: -8px; color: var(--text); }
.logo-carousel.flex-carousel { border-radius: 0; }
.logo-carousel[hidden], .clients.has-carousel .logo-grid { display: none; }
.flex-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: contain; outline: none; border-radius: var(--radius); }
.flex-carousel[data-hover="open"] { cursor: zoom-in; }
.flex-carousel[data-hover="close"] { cursor: zoom-out; }
.flex-carousel[data-dragging] { cursor: grabbing; }
.flex-carousel:focus-visible { box-shadow: inset 0 0 0 2px var(--green, rgba(128, 128, 140, .55)); }
.flex-carousel__caption {
  position: absolute; left: 0; right: 0; top: calc(50% + var(--flex-carousel-half) * var(--flex-carousel-lift, 1) + 18px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px; pointer-events: none; text-align: center;
  animation: flex-carousel-reveal 900ms ease both;
}
.flex-carousel__caption[hidden] { display: none; }
.flex-carousel__title { display: flex; flex-direction: column; align-items: center; max-width: 100%; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--text); animation: flex-carousel-title 520ms cubic-bezier(.22, 1, .36, 1); }
.flex-carousel__subtitle { font-weight: 400; color: var(--muted); }
.flex-carousel__count { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--muted); transition: opacity 400ms ease; }
.flex-carousel__count[data-hidden] { opacity: 0; }
.flex-carousel__digits { display: inline-flex; }
.flex-carousel__digit { display: inline-block; height: 1em; line-height: 1; overflow: hidden; vertical-align: -0.12em; }
.flex-carousel__reel { display: flex; flex-direction: column; transition: transform 600ms cubic-bezier(.22, 1, .36, 1); }
.flex-carousel__reel span { display: block; height: 1em; line-height: 1; }
.flex-carousel__slash { opacity: .6; }
.flex-carousel__live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes flex-carousel-title { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flex-carousel-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .flex-carousel__caption, .flex-carousel__title { animation: none; }
  .flex-carousel__reel { transition: none; }
}

/* ---------- Trabajos en acordeón (home): adaptado de AccordionGallery de React Bits ---------- */
.work-grid.ag { display: flex; gap: 10px; height: 460px; perspective: 1400px; --ag-media-size: 320px; }
.ag .ag-panel { --ag-gray: 1; --ag-dim: .35; position: relative; flex: 1 1 0; min-width: 0; min-height: 0; display: block; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); color: #fff; text-align: left; cursor: pointer; transform-style: preserve-3d; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); will-change: flex-grow, transform; -webkit-tap-highlight-color: transparent; }
.ag .ag-panel[hidden] { display: none; }
.ag .ag-panel:hover { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.ag .ag-panel:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.ag-frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ag-media { position: absolute; top: 50%; left: 50%; width: var(--ag-media-size); height: 100%; transform: translate(-50%, -50%); filter: grayscale(var(--ag-gray)); will-change: transform, filter; }
.ag--vertical .ag-media { width: 100%; height: var(--ag-media-size); }
.ag-media img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.ag-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 42%, rgba(10, 26, 42, .88) 100%), rgba(10, 26, 42, var(--ag-dim)); }
.ag-num { position: absolute; top: 14px; left: 16px; z-index: 2; font-size: 12px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
/* El rótulo tiene el ancho del panel abierto, así no se reacomoda mientras el panel crece. */
.ag-label { position: absolute; left: 22px; bottom: 22px; z-index: 2; width: calc(var(--ag-media-size) / 1.22 - 44px); display: flex; align-items: center; gap: 14px; pointer-events: none; }
.ag--vertical .ag-label { width: auto; right: 18px; left: 18px; bottom: 18px; }
.ag-bar { flex: none; width: 3px; height: 40px; border-radius: 3px; background: var(--green); box-shadow: 0 0 12px rgba(1, 195, 141, .6); opacity: 0; }
.ag-text { flex: 1; min-width: 0; display: grid; gap: 4px; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); opacity: 0; }
.ag-text strong { font-size: clamp(16px, 1.5vw, 21px); font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-text .mono { font-size: 12px; color: rgba(255, 255, 255, .74); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag .go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--navy-900); font-weight: 600; opacity: 0; }
/* Sin GSAP: el panel abierto se muestra igual, sin animación. */
.ag-static .ag-panel.is-active { --ag-gray: 0; --ag-dim: 0; }
.ag-static .is-active .ag-bar, .ag-static .is-active .ag-text, .ag-static .is-active .go { opacity: 1; }
@media (max-width: 640px) {
  .work-grid.ag { flex-direction: column; height: 580px; gap: 8px; perspective: none; }
  .ag .ag-panel { min-height: 64px; }
}

/* ---------- Ir arriba ---------- */
.to-top {
  position: fixed; right: 27px; bottom: 88px; z-index: 79; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--text); box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--green); }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }
.to-top:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.to-top-progress { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.to-top-ring { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.to-top-arrow { position: relative; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top-arrow { transition: none; } }
