/* ==========================================================================
   Elicore — hoja de estilos
   Dirección: "plano de precisión". Papel claro, tinta azul marino, un solo
   acento azul eléctrico, líneas finas y anotaciones en monoespaciada.
   ========================================================================== */

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

:root {
  /* Superficies claras */
  --paper: oklch(98.6% 0.004 250);
  --paper-2: oklch(96.6% 0.007 250);
  --white: #fff;
  --line: oklch(89.5% 0.012 255);
  --line-strong: oklch(80% 0.016 255);

  /* Tinta */
  --ink: oklch(15% 0.03 258);
  --ink-2: oklch(36% 0.025 258);
  --ink-3: oklch(49% 0.02 258);

  /* Acento (todo lo demás se deriva de aquí, así un cambio de marca es una línea) */
  --accent: oklch(52% 0.22 255);
  --accent-deep: color-mix(in oklch, var(--accent) 86%, black);
  --accent-bright: color-mix(in oklch, var(--accent) 58%, white);
  --accent-soft: color-mix(in oklch, var(--accent) 9%, white);

  /* Superficies oscuras */
  --night: oklch(15% 0.03 258);
  --night-2: oklch(19% 0.035 258);
  --night-line: oklch(28% 0.035 258);
  --night-text: oklch(76% 0.02 255);
  --night-mute: oklch(62% 0.025 255);

  /* Plano (cianotipo) */
  --bp: oklch(33% 0.15 260);
  --bp-grid: oklch(100% 0 0 / 0.07);
  --bp-rule: oklch(88% 0.07 250 / 0.55);
  --bp-line: oklch(90% 0.06 250);
  --bp-bar: oklch(90% 0.06 250 / 0.3);

  --serif: 'DM Serif Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 72px;
  --gutter: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { font-weight: 400; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.night :focus-visible, .footer :focus-visible { outline-color: var(--accent-bright); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: 14px; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Isotipo ---------------------------------------------------------------- */
.mk-fill { fill: var(--mark, var(--accent)); opacity: 0.15; }
.mk-core { stroke: var(--mark, var(--accent)); }
.mk-dot { fill: var(--mark, var(--accent)); }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; transition: rotate 0.9s var(--ease-out); }
.logo-word { font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; line-height: 1; }
.logo-word span { color: var(--mark, var(--accent)); }

/* Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 10px;
  font: 500 15px/1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              box-shadow 0.3s ease, scale 0.16s var(--ease-out), translate 0.5s var(--ease-out);
}
.btn:active { scale: 0.97; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 9px; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-arrow { width: 16px; height: 16px; flex: none; transition: translate 0.35s var(--ease-out); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost { border-color: var(--night-line); color: var(--night-text); background: transparent; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding-block: 12px;
  transition: color 0.2s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: translate 0.35s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--accent); box-shadow: 0 10px 28px -10px var(--accent); }
  .btn-accent:hover { background: var(--accent-deep); box-shadow: 0 14px 34px -12px var(--accent); }
  .btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .btn-ghost:hover { border-color: var(--night-mute); color: #fff; }
  .btn:hover .btn-arrow, .link-arrow:hover svg { translate: 4px 0; }
  .link-arrow:hover { color: var(--ink); }
  .logo:hover .logo-mark { rotate: 90deg; }
}

/* Etiquetas en monoespaciada --------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .idx {
  display: inline-grid; place-items: center; height: 24px; padding: 0 8px;
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent); border-radius: 6px;
  letter-spacing: 0.06em;
}
.night .eyebrow { color: var(--accent-bright); }
.night .eyebrow .idx { border-color: color-mix(in oklch, var(--accent-bright) 40%, transparent); }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(3.2); opacity: 0; } }

/* Navegación ------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.is-scrolled {
  background: color-mix(in oklch, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-in {
  height: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  background: var(--accent); rotate: 45deg; translate: -50% 0; scale: 0;
  transition: scale 0.3s var(--ease-out);
}
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { scale: 1; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.nav-end { display: flex; align-items: center; gap: 10px; }

/* Sobre las secciones oscuras la barra cambia de piel */
.nav .logo { transition: color 0.35s ease; }
:root:not(.menu-open) .nav.is-dark {
  --mark: var(--accent-bright);
  background: color-mix(in oklch, var(--night) 74%, transparent);
  border-bottom-color: oklch(100% 0 0 / 0.09);
}
:root:not(.menu-open) .nav.is-dark .logo { color: #fff; }
:root:not(.menu-open) .nav.is-dark .nav-links a { color: var(--night-text); }
:root:not(.menu-open) .nav.is-dark .nav-links a.is-active { color: #fff; }
:root:not(.menu-open) .nav.is-dark .nav-links a::after { background: var(--accent-bright); }
:root:not(.menu-open) .nav.is-dark .btn-ink { background: #fff; color: var(--ink); }
:root:not(.menu-open) .nav.is-dark .burger { border-color: var(--night-line); }
:root:not(.menu-open) .nav.is-dark .burger i { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  :root:not(.menu-open) .nav.is-dark .nav-links a:hover { color: #fff; }
  :root:not(.menu-open) .nav.is-dark .btn-ink:hover { background: var(--accent-bright); box-shadow: none; }
}

.burger {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; cursor: pointer;
}
.burger i {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  background: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open .nav { background: var(--paper); border-bottom-color: var(--line); }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(32px, 9vw, 44px); line-height: 1.1;
  color: var(--ink); text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.menu-links a span { font: 500 12px var(--mono); letter-spacing: 0.08em; color: var(--accent); }
.menu-open .menu-links a { opacity: 1; transform: none; }
.menu-open .menu-links a:nth-child(2) { transition-delay: 40ms; }
.menu-open .menu-links a:nth-child(3) { transition-delay: 80ms; }
.menu-open .menu-links a:nth-child(4) { transition-delay: 120ms; }
.menu-open .menu-links a:nth-child(5) { transition-delay: 160ms; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 5.2vw, 72px)) 0 clamp(56px, 7vw, 96px); isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--accent) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--accent) 10%, transparent) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 72% 22%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 75% 62% at 72% 22%, #000 0%, transparent 72%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; top: -12%; right: -8%;
  width: min(760px, 70vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--accent) 13%, transparent), transparent);
  pointer-events: none;
}

.hero-title {
  margin-top: 28px; max-width: 13.5em;
  font-family: var(--serif);
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 1.01; letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero-title em, .hero-title .em { font-style: italic; color: var(--accent); }
/* Cada palabra sube desde su propia máscara al cargar */
.hero-title .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0.1em 0.07em 0.16em; margin: -0.1em -0.07em -0.16em;
}
.hero-title .wi {
  display: inline-block; transform: translateY(118%);
  transition: transform 1.1s var(--ease-out) calc(var(--i) * 60ms + 80ms);
}
.is-ready .hero-title .wi { transform: none; }

.hero-row {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 28px 48px; margin-top: clamp(28px, 3.4vw, 44px);
}
.hero-lede { max-width: 31em; font-size: clamp(17px, 1.45vw, 20px); font-weight: 350; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; }

.js .hero-fade {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(0.45s + var(--d, 0) * 110ms);
}
.js.is-ready .hero-fade { opacity: 1; transform: none; }

/* Figura: del plano al producto ------------------------------------------ */
.fig { position: relative; margin-top: clamp(44px, 6vw, 80px); }

.reg { position: absolute; width: 15px; height: 15px; pointer-events: none;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) center / 100% 1px no-repeat; }
.reg-tl { top: -24px; left: -24px; } .reg-tr { top: -24px; right: -24px; }
.reg-bl { top: calc(100% - 58px); left: -24px; } .reg-br { top: calc(100% - 58px); right: -24px; }

.stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  container-type: inline-size;
  border-radius: 16px;
  background: var(--bp);
  box-shadow:
    0 0 0 1px color-mix(in oklch, var(--ink) 16%, transparent),
    0 36px 60px -44px color-mix(in oklch, var(--ink) 55%, transparent),
    0 14px 28px -20px color-mix(in oklch, var(--ink) 30%, transparent);
}

/* La maqueta se dibuja toda en em: escala con el ancho del contenedor */
.app {
  position: absolute; inset: 0; display: flex; flex-direction: column; isolation: isolate;
  font-family: var(--sans); font-size: clamp(4px, 1.262cqw, 15.5px); line-height: 1.3;
  background: var(--white); color: var(--ink);
  -webkit-user-select: none; user-select: none;
}
.js .app:not(.is-wire) { clip-path: inset(0 100% 0 0); will-change: clip-path; }

.app .t { display: inline-block; white-space: nowrap; }
.app .mute { color: var(--ink-3); }

.app-bar { flex: none; display: flex; align-items: center; height: 2.9em; padding: 0 1.1em; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.app-dots { display: flex; gap: 0.45em; width: 6em; }
.app-dots i { width: 0.72em; height: 0.72em; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); }
.app-url { display: flex; align-items: center; justify-content: center; width: 24em; height: 1.75em; margin-inline: auto; border-radius: 0.5em; border: 1px solid var(--line); background: var(--white); }
.app-url .t { font-family: var(--mono); font-size: 0.76em; color: var(--ink-3); }
.app-bar::after { content: ''; width: 6em; }

.app-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 14.5em minmax(0, 1fr); }

.app-side { position: relative; display: flex; flex-direction: column; gap: 1.6em; padding: 1.4em 1em 1.1em; border-right: 1px solid var(--line); background: var(--paper); }
.app-brand { display: flex; align-items: center; gap: 0.65em; padding: 0 0.6em; }
.app-brand i { width: 1.35em; height: 1.35em; border-radius: 0.38em; border: 1px solid var(--ink); background: var(--ink); }
.app-brand .t { font-size: 0.95em; font-weight: 600; letter-spacing: -0.005em; }
.app-nav { display: flex; flex-direction: column; gap: 0.2em; }
.app-nav div { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.6em; border-radius: 0.55em; border: 1px solid transparent; color: var(--ink-2); }
.app-nav i { width: 0.95em; height: 0.95em; border-radius: 0.28em; border: 1px solid var(--line-strong); }
.app-nav .t { font-size: 0.9em; }
.app-nav .on { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px oklch(15% 0.03 258 / 0.05); }
.app-nav .on i { background: var(--accent); border-color: var(--accent); }
.app-nav .on .t { font-weight: 500; }
.app-user { margin-top: auto; display: flex; align-items: center; gap: 0.65em; padding: 0.5em 0.6em 0; border-top: 1px solid var(--line); padding-top: 1em; }
.app-user .t { font-size: 0.86em; font-weight: 500; }

.av { flex: none; display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; border: 1px solid transparent; background: var(--accent-soft); color: var(--accent); }
.av b { font-size: 0.68em; font-weight: 600; letter-spacing: 0.02em; }

.app-main { position: relative; display: flex; flex-direction: column; gap: 1.25em; min-width: 0; min-height: 0; padding: 1.55em 1.9em 1.8em; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.app-h { display: grid; gap: 0.15em; justify-items: start; }
.app-h .title { font-size: 1.5em; font-weight: 600; letter-spacing: -0.015em; }
.app-h .mute { font-size: 0.82em; }
.app-tools { display: flex; align-items: center; gap: 0.9em; }
.app-live { display: flex; align-items: center; gap: 0.5em; height: 2.3em; padding: 0 0.85em; border-radius: 99em; border: 1px solid var(--line); }
.app-live i { width: 0.5em; height: 0.5em; border-radius: 50%; background: oklch(64% 0.17 152); animation: blink 2.4s ease-in-out infinite; }
.app-live .t { font-size: 0.76em; font-weight: 500; color: var(--ink-2); }
@keyframes blink { 50% { opacity: 0.35; } }
.app-btn { display: flex; align-items: center; height: 2.3em; padding: 0 1em; border-radius: 0.6em; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.app-btn .t { font-size: 0.84em; font-weight: 500; }

.app-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; }
.kpi { position: relative; display: grid; gap: 0.3em; justify-items: start; padding: 1em 1.15em 1.05em; border-radius: 0.85em; border: 1px solid var(--line); background: var(--white); }
.kpi-l { font-size: 0.8em; color: var(--ink-3); }
.kpi-v { font-size: 1.75em; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-d { font-size: 0.74em; font-weight: 500; color: oklch(46% 0.13 155); }

.app-row { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1em; }
.card { position: relative; display: flex; flex-direction: column; gap: 0.8em; min-height: 0; padding: 1.05em 1.15em 1.1em; border-radius: 0.85em; border: 1px solid var(--line); background: var(--white); }
.card-h { display: flex; align-items: center; justify-content: space-between; }
.card-h .t { font-size: 0.88em; font-weight: 600; }
.card-h .mute { font-size: 0.76em; font-weight: 400; }
.chart { flex: 1; min-height: 0; width: 100%; overflow: visible; }
.chart path { vector-effect: non-scaling-stroke; fill: none; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: color-mix(in oklch, var(--accent) 9%, transparent); }
.chart .ln { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.rows { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
.row { display: flex; align-items: center; gap: 0.75em; padding: 0.55em 0; border-top: 1px solid var(--line); }
.row-m { flex: 1; min-width: 0; display: grid; gap: 0.05em; justify-items: start; }
.row-m .t { font-size: 0.84em; font-weight: 500; }
.row-m .mute { font-size: 0.72em; font-weight: 400; }
.pill { font-size: 0.7em; font-weight: 500; padding: 0.3em 0.75em; border-radius: 99em; border: 1px solid transparent; }
.pill.ok { background: oklch(95% 0.045 155); color: oklch(38% 0.1 155); }
.pill.go { background: var(--accent-soft); color: var(--accent); }
.pill.wait { background: oklch(95.5% 0.045 85); color: oklch(40% 0.09 70); }

.anno { display: none; }

/* Capa de plano: el mismo DOM, sólo contornos y cotas */
.app.is-wire {
  color: var(--bp-line);
  background:
    linear-gradient(to right, var(--bp-grid) 1px, transparent 1px) 0 0 / 2.4em 2.4em,
    linear-gradient(to bottom, var(--bp-grid) 1px, transparent 1px) 0 0 / 2.4em 2.4em,
    var(--bp);
}
.is-wire *:not(.anno) {
  background: transparent !important; box-shadow: none !important; animation: none !important;
  border-color: var(--bp-rule) !important;
  color: var(--bp-line) !important;
}
/* Sólo las cajas con borde completo van punteadas; las reglas de un lado quedan continuas */
.is-wire :is(.kpi, .card, .app-url, .app-nav div, .app-nav i, .app-brand i, .app-dots i, .app-live, .app-btn, .pill, .av) { border-style: dashed; }
.is-wire .t {
  color: transparent !important;
  background: linear-gradient(var(--bp-bar), var(--bp-bar)) left center / 100% 0.62em no-repeat !important;
  border-radius: 0.2em;
}
.is-wire .av b { visibility: hidden; }
.is-wire .chart .gl { stroke: var(--bp-grid); stroke-dasharray: 2 4; }
.is-wire .chart .area { fill: none; }
.is-wire .chart .ln { stroke: var(--bp-line); stroke-width: 1.25; stroke-dasharray: 5 4; }
.is-wire .anno {
  display: block; position: absolute; top: -0.8em; right: 1.2em; z-index: 1;
  padding: 0 0.7em; background: var(--bp);
  font: 500 0.7em/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bp-line); white-space: nowrap;
}
.is-wire .app-side > .anno { top: auto; bottom: 5.4em; right: auto; left: 1.4em; }

.stage-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.stage-range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100vh; }
.stage-range::-moz-range-thumb { width: 56px; height: 100vh; border: 0; }
.stage-handle { display: none; position: absolute; top: 0; bottom: 0; left: 0; z-index: 3; width: 0; pointer-events: none; will-change: transform; }
.js .stage-handle { display: block; }
.stage-handle::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: var(--white); box-shadow: 0 0 0 1px oklch(15% 0.03 258 / 0.18), 0 0 18px oklch(15% 0.03 258 / 0.25);
}
.stage-knob {
  position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--white); color: var(--ink);
  box-shadow: 0 0 0 1px oklch(15% 0.03 258 / 0.14), 0 10px 28px -6px oklch(15% 0.06 258 / 0.55);
  transition: scale 0.3s var(--ease-out);
}
.stage-knob svg { width: 40px; height: 40px; }
.knob-core { fill: var(--accent); }
.stage-range:active ~ .stage-handle .stage-knob { scale: 0.92; }
.stage-range:focus-visible ~ .stage-handle .stage-knob { outline: 2px solid var(--accent); outline-offset: 4px; }

.fig-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px;
  font: 400 12px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-3);
}
.fig-cap > span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.fig-cap .fig-mid { white-space: normal; text-align: center; }
.key { width: 9px; height: 9px; rotate: 45deg; }
.key-ship { background: var(--white); box-shadow: 0 0 0 1px var(--line-strong); }
.key-bp { background: var(--bp); }

/* Datos clave ------------------------------------------------------------ */
.specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line);
}
.specs > div { padding: 26px 24px 0 0; }
.specs > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.specs dt { font-family: var(--serif); font-size: clamp(24px, 2.35vw, 33px); line-height: 1.1; letter-spacing: -0.01em; }
.specs dd { margin-top: 8px; font: 400 12.5px/1.5 var(--mono); letter-spacing: 0.03em; color: var(--ink-3); }

/* Clientes --------------------------------------------------------------- */
.clients { border-block: 1px solid var(--line); background: var(--paper); }
.clients-in { display: flex; align-items: center; gap: 24px 56px; flex-wrap: wrap; padding-block: 34px; }
.clients-label { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.clients-logos { flex: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 40px; list-style: none; }
.clients-logos li { font-family: var(--serif); font-size: 23px; letter-spacing: -0.01em; color: var(--ink-3); transition: color 0.25s ease; cursor: default; }
@media (hover: hover) and (pointer: fine) { .clients-logos li:hover { color: var(--ink); } }

/* Secciones -------------------------------------------------------------- */
.sec { padding-block: clamp(84px, 11vw, 152px); }
.tint { background: var(--paper-2); }
.night { position: relative; background: var(--night); color: #fff; isolation: isolate; }
.night::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(100% 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(100% 0 0 / 0.035) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; gap: 24px 64px; }
.sec-title {
  margin-top: 22px; max-width: 12.5em;
  font-family: var(--serif); font-size: clamp(36px, 4.9vw, 70px);
  line-height: 1.04; letter-spacing: -0.018em; text-wrap: balance;
}
.sec-sub { font-size: clamp(16px, 1.3vw, 18px); font-weight: 350; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; padding-bottom: 0.5em; }
.night .sec-sub { color: var(--night-text); }

/* Revelado al hacer scroll */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Servicios -------------------------------------------------------------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(44px, 5.5vw, 76px);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--line);
}
.svc {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 2.8vw, 40px) clamp(26px, 2.8vw, 40px) clamp(30px, 3.2vw, 48px);
  background: var(--white);
}
/* Luz que sigue al cursor */
.svc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--accent) 11%, transparent), transparent 62%);
  opacity: 0; transition: opacity 0.45s ease;
}
.svc > * { position: relative; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: clamp(40px, 5vw, 72px); }
.svc-icon { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.svc-icon > * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js [data-reveal] .svc-icon > * { stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease-in-out) calc(var(--d, 0) * 90ms + 0.25s); }
.js [data-reveal].is-in .svc-icon > *, .js .svc:not([data-reveal]) .svc-icon > * { stroke-dashoffset: 0; }
.svc-num { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); transition: color 0.3s ease; }
.svc h3 { font-family: var(--serif); font-size: clamp(23px, 2vw, 27px); line-height: 1.12; letter-spacing: -0.01em; }
.svc p { margin-top: 12px; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

/* Servicio principal: celda oscura a todo lo ancho */
.svc-lead {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; gap: 36px clamp(32px, 6vw, 96px);
  padding-block: clamp(30px, 3.6vw, 52px);
  background: var(--night); color: #fff; isolation: isolate; overflow: hidden;
}
.svc-lead::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--accent-bright) 14%, transparent), transparent 62%); }
.svc-lead::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px circle at 100% 0%, color-mix(in oklch, var(--accent) 42%, transparent), transparent 70%),
    linear-gradient(to right, oklch(100% 0 0 / 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, oklch(100% 0 0 / 0.045) 1px, transparent 1px) 0 0 / 40px 40px;
}
.svc-lead .svc-top { margin-bottom: clamp(36px, 5vw, 80px); }
.svc-lead .svc-icon { width: 48px; height: 48px; stroke: var(--accent-bright); }
.svc-lead > .svc-num { position: absolute; top: clamp(30px, 3.6vw, 52px); right: clamp(26px, 2.8vw, 40px); color: var(--night-mute); }
.svc-lead h3 { max-width: 11em; font-size: clamp(32px, 3.7vw, 52px); line-height: 1.04; letter-spacing: -0.018em; text-wrap: balance; }
.svc-lead p { margin-top: 18px; max-width: 31em; font-size: 16.5px; color: var(--night-text); }
.svc-lead .link-arrow { margin-top: 12px; color: #fff; }
.svc-lead .link-arrow svg { color: var(--accent-bright); }
.svc-points { list-style: none; border-bottom: 1px solid var(--night-line); }
.svc-points li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4px 24px; padding: 17px 0; border-top: 1px solid var(--night-line); }
.svc-points strong { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; font-weight: 500; line-height: 1.45; color: #fff; }
.svc-points strong::before { content: ''; flex: none; width: 7px; height: 7px; rotate: 45deg; translate: 0 -1px; background: var(--accent-bright); }
.svc-points span { font-size: 14.5px; line-height: 1.55; color: var(--night-text); text-wrap: pretty; }

@media (hover: hover) and (pointer: fine) {
  .svc-lead:hover .svc-num { color: var(--accent-bright) !important; }
  .svc-lead .link-arrow:hover { color: var(--accent-bright); }
  .svc:hover::before { opacity: 1; }
  .svc:hover .svc-num { color: var(--accent); }
}

/* Proceso ---------------------------------------------------------------- */
.steps { position: relative; margin-top: clamp(56px, 7vw, 96px); --p: 0; }
.rail { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--night-line); }
.rail i {
  position: absolute; inset: -0.5px 0; background: var(--accent-bright);
  transform-origin: left center; transform: scaleX(var(--p));
  box-shadow: 0 0 14px color-mix(in oklch, var(--accent-bright) 70%, transparent);
}
.steps ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.step { position: relative; padding-top: 60px; }
.step-node {
  position: absolute; top: 0; left: 0; width: 13px; height: 13px; rotate: 45deg;
  background: var(--night); border: 1.5px solid oklch(44% 0.04 258);
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.6s ease;
}
.step-num {
  display: block; font-family: var(--serif); font-size: clamp(88px, 10.5vw, 156px); line-height: 0.86; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px oklch(42% 0.045 258);
  transition: color 0.8s ease, -webkit-text-stroke-color 0.8s ease;
}
.step h3 { margin-top: 30px; font-family: var(--serif); font-size: clamp(25px, 2.3vw, 32px); line-height: 1.12; letter-spacing: -0.01em; }
.step p { margin-top: 12px; max-width: 26em; font-size: 15.5px; line-height: 1.65; color: var(--night-text); text-wrap: pretty; }
.step-meta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font: 400 12.5px/1 var(--mono); letter-spacing: 0.05em; color: var(--night-mute);
  transition: color 0.6s ease;
}
.step-meta::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.step.is-on .step-node { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent-bright) 20%, transparent); }
.step.is-on .step-num { color: color-mix(in oklch, var(--accent-bright) 16%, transparent); -webkit-text-stroke-color: var(--accent-bright); }
.step.is-on .step-meta { color: var(--accent-bright); }

/* Formas de trabajar ----------------------------------------------------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.eng-group { margin-top: clamp(48px, 6vw, 84px); }
.eng-group + .eng-group { margin-top: clamp(64px, 8vw, 112px); }
.eng-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.eng-label > span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; translate: 0 -3px;
  border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent); border-radius: 6px;
  font: 500 12px/1 var(--mono); color: var(--accent);
}
.eng-label h3 { font-family: var(--serif); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.1; letter-spacing: -0.012em; }
.eng-label p { margin-left: auto; max-width: 30em; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.eng-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; margin-top: 30px; }
.eng {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 2.8vw, 40px);
  border: 1px solid var(--line); border-radius: 20px; background: var(--white);
  transition: translate 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.3s ease;
}
.eng-tag { font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eng-name { margin-top: 24px; font-family: var(--serif); font-size: clamp(30px, 2.75vw, 39px); line-height: 1.02; letter-spacing: -0.02em; }
.eng-note { margin-top: 12px; font: 400 12.5px/1.4 var(--mono); letter-spacing: 0.03em; color: var(--ink-3); }
.eng-desc { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* Medidor de alcance: qué etapas cubre cada modalidad */
.scope { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.scope li { padding-top: 10px; border-top: 3px solid var(--line); font: 400 11.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.scope .is-on { border-top-color: var(--accent); font-weight: 500; color: var(--ink); }

.eng-list { list-style: none; display: grid; align-content: start; gap: 13px; margin-block: 28px 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.eng-list li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.eng-list li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 16px; height: 16px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eng-out { margin-top: auto; padding: 16px 18px 17px; border-radius: 12px; background: var(--paper-2); font-size: 15px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.eng-out span { display: block; margin-bottom: 7px; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eng .btn { margin-top: 20px; width: 100%; }

.eng-featured { background: var(--night); border-color: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.eng-featured::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, oklch(100% 0 0 / 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(100% 0 0 / 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 85% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 85% 0%, #000, transparent 75%);
}
.eng-featured::after {
  content: ''; position: absolute; z-index: -1; top: -140px; right: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklch, var(--accent) 55%, transparent), transparent);
}
.eng-featured .eng-tag { color: var(--accent-bright); }
.eng-featured .eng-note { color: var(--night-mute); }
.eng-featured .eng-desc { color: var(--night-text); }
.eng-featured .scope li { border-top-color: var(--night-line); color: var(--night-mute); }
.eng-featured .scope .is-on { border-top-color: var(--accent-bright); color: #fff; }
.eng-featured .eng-list { border-top-color: var(--night-line); }
.eng-featured .eng-list li { color: var(--night-text); }
.eng-featured .eng-list li::before { background: var(--accent-bright); }
.eng-featured .eng-out { background: oklch(100% 0 0 / 0.07); color: #fff; }
.eng-featured .eng-out span { color: var(--accent-bright); }

.eng-foot { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; font: 400 12.5px/1.6 var(--mono); letter-spacing: 0.02em; color: var(--ink-3); }
.eng-foot::before { content: ''; flex: none; width: 7px; height: 7px; rotate: 45deg; translate: 0 -1px; background: var(--accent); }

/* Software a la medida: filas compactas en lugar de otra tanda de tarjetas */
.eng-rows { margin-top: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); overflow: hidden; }
.eng-row {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr) minmax(130px, auto); align-items: center; gap: 20px clamp(28px, 4vw, 56px);
  padding: clamp(24px, 2.6vw, 36px) clamp(26px, 2.8vw, 40px);
  transition: background-color 0.3s ease;
}
.eng-row + .eng-row { border-top: 1px solid var(--line); }
.eng-row h4 { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.012em; }
.eng-row-head p { margin-top: 9px; font: 400 12.5px/1.5 var(--mono); letter-spacing: 0.03em; color: var(--ink-3); }
.eng-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 28px; margin: 0; padding: 0; border: 0; }
.eng-row .link-arrow { justify-self: end; color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .eng:hover { translate: 0 -6px; box-shadow: 0 30px 60px -34px color-mix(in oklch, var(--ink) 40%, transparent); border-color: var(--line-strong); }
  .eng-featured:hover { border-color: var(--night); box-shadow: 0 34px 70px -30px color-mix(in oklch, var(--accent) 55%, transparent); }
  .eng-row:hover { background: color-mix(in oklch, var(--accent) 3%, var(--white)); }
}

/* Testimonios ------------------------------------------------------------ */
.quotes { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(44px, 5.5vw, 76px); }
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(26px, 2.8vw, 40px);
  border: 1px solid var(--line); border-radius: 20px; background: var(--white);
}
.quote blockquote { font-size: 17px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.quote-lead { grid-row: span 2; padding: clamp(30px, 4vw, 60px); }
.quote-lead blockquote { font-family: var(--serif); font-size: clamp(26px, 2.9vw, 42px); line-height: 1.2; letter-spacing: -0.012em; }
.quote-mark { display: block; height: 0.5em; font-family: var(--serif); font-size: clamp(88px, 9vw, 136px); line-height: 1; color: var(--accent); }
.quote-lead blockquote { margin-top: auto; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 500 13px var(--mono); letter-spacing: 0.04em; }
.quote figcaption strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.quote figcaption span span { display: block; font-size: 13.5px; color: var(--ink-3); }

/* FAQ -------------------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; align-items: flex-start; }
.faq-head .link-arrow { margin-top: 26px; color: var(--accent); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 26px 0;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.25; letter-spacing: -0.005em; color: var(--ink);
  transition: color 0.25s ease;
}
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.3s ease, border-color 0.3s ease, rotate 0.5s var(--ease-out); }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px;
  background: var(--ink-2); transition: background-color 0.3s ease, rotate 0.5s var(--ease-out);
}
.faq-icon::after { rotate: 90deg; }
.faq-item.is-open .faq-icon { background: var(--accent); border-color: var(--accent); rotate: 180deg; }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: #fff; }
.faq-item.is-open .faq-icon::after { rotate: 0deg; }
.faq-a { display: grid; grid-template-rows: 1fr; }
.js .faq-a { grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { min-height: 0; overflow: hidden; }
.faq-a p { max-width: 38em; padding-bottom: 28px; font-size: 16.5px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.js .faq-a p { opacity: 0; transition: opacity 0.35s ease; }
.js .faq-item.is-open .faq-a p { opacity: 1; transition-delay: 0.12s; }
@media (hover: hover) and (pointer: fine) {
  .faq-q:hover { color: var(--accent); }
  .faq-item:not(.is-open) .faq-q:hover .faq-icon { border-color: var(--accent); }
}

/* CTA -------------------------------------------------------------------- */
.cta { overflow: hidden; padding-block: clamp(110px, 15vw, 210px); text-align: center; }
.cta-mark {
  position: absolute; z-index: -1; top: 50%; left: 50%; width: min(980px, 150vw); aspect-ratio: 1;
  translate: -50% -50%; pointer-events: none;
}
.cta-mark .ring { stroke: var(--night-line); stroke-width: 1; vector-effect: non-scaling-stroke; transform-origin: 400px 400px; }
.ring-a { stroke-dasharray: 2 10; animation: spin 140s linear infinite; }
.ring-b { stroke: oklch(32% 0.05 258) !important; }
.ring-c { stroke-dasharray: 1 7; animation: spin 90s linear infinite reverse; }
.cta-diamond { stroke: color-mix(in oklch, var(--accent-bright) 42%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; fill: color-mix(in oklch, var(--accent) 8%, transparent); }
.cta-hair { stroke: oklch(36% 0.05 258); stroke-width: 1; vector-effect: non-scaling-stroke; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-in { position: relative; }
.cta h2 { max-width: 10em; margin-inline: auto; font-family: var(--serif); font-size: clamp(46px, 8vw, 116px); line-height: 1; letter-spacing: -0.024em; text-wrap: balance; }
.cta h2 em { font-style: italic; color: var(--accent-bright); }
.cta p { max-width: 30em; margin: 30px auto 0; font-size: clamp(17px, 1.45vw, 20px); font-weight: 350; line-height: 1.6; color: var(--night-text); text-wrap: pretty; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

/* Pie -------------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; background: oklch(11.5% 0.026 258); color: var(--night-text); padding-top: clamp(56px, 7vw, 88px); --mark: var(--accent-bright); }
.footer .logo { color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.footer-brand p { margin-top: 18px; max-width: 22em; font-size: 14.5px; line-height: 1.65; color: var(--night-mute); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col h4 { margin-bottom: 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-mute); }
.footer-col a { padding-block: 5px; font-size: 14.5px; color: var(--night-text); text-decoration: none; transition: color 0.2s ease; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: #fff; } }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(44px, 6vw, 72px); padding-top: 26px; border-top: 1px solid oklch(22% 0.03 258); font: 400 12.5px/1.5 var(--mono); letter-spacing: 0.02em; color: var(--night-mute); }
.footer-word {
  margin: clamp(20px, 3vw, 40px) auto -0.26em; text-align: center; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(110px, 27.5vw, 440px); line-height: 0.9; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px oklch(35% 0.055 258);
  -webkit-user-select: none; user-select: none; pointer-events: none;
}

/* Adaptación ------------------------------------------------------------- */
@media (max-width: 1320px) { .reg { display: none; } }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .sec-head { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-lead { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .eng-grid { grid-template-columns: minmax(0, 1fr); }
  .eng-label p { margin-left: 0; flex-basis: 100%; }
  .eng-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .eng-row .link-arrow { justify-self: start; padding-block: 4px; }
  .quotes { grid-template-columns: 1fr; }
  .quote-lead { grid-row: auto; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }

  /* Riel del proceso en vertical */
  .rail { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .rail i { inset: 0 -0.5px; transform-origin: center top; transform: scaleY(var(--p)); }
  .steps ol { grid-template-columns: 1fr; gap: 56px; }
  .step { padding: 0 0 0 44px; }
  .step-num { font-size: 96px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div { padding: 22px 16px 22px 0; }
  .specs > div + div { padding-left: 0; border-left: 0; }
  .specs > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .specs > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fig-cap .fig-mid { display: none; }
  .clients-in { flex-direction: column; align-items: flex-start; gap: 18px; }
  .clients-logos { justify-content: flex-start; gap: 10px 28px; }
  .clients-logos li { font-size: 20px; }

  /* Maqueta simplificada para que siga siendo legible en el teléfono */
  .stage { aspect-ratio: 4 / 3.5; border-radius: 12px; }
  .app { font-size: clamp(6px, 2.5cqw, 14px); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side, .card-list, .app-live, .app-dots, .app-bar::after { display: none; }
  .app-url { width: 70%; }
  .app-row { grid-template-columns: minmax(0, 1fr); }
  .app-main { padding: 1.3em 1.3em 1.4em; gap: 1em; }
  .kpi { padding: 0.8em 0.85em; }
  .kpi-v { font-size: 1.4em; }
  .kpi-d { display: none !important; }
  .stage-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .stage-knob svg { width: 34px; height: 34px; }
}

@media (max-width: 560px) {
  .nav-end .btn { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-top { margin-bottom: 36px; }
  .svc-points li { grid-template-columns: minmax(0, 1fr); }
  .svc-points span { padding-left: 19px; }
  .eng-list-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal], .js .hero-fade, .hero-title .wi, .menu-links a { transform: none !important; }
  .js [data-reveal], .js .hero-fade { transition-duration: 0.4s; }
  .btn, .eng, .logo-mark { transition-property: background-color, color, border-color, box-shadow; }
}
