/* Zurkware · Landing page
   Fuente de verdad: ../brand.json y ../zurkware-manual-identidad.html
   Paleta: Ink Navy · Bright Gray/blanco · Deep Blue · Ocean Blue; Zurkware Blue como acento.
   Las secciones alternan claro y oscuro, y cada oscura usa un tono distinto:
   portada Ink Navy · tecnología Deep Blue · proceso casi negro · contacto Ocean Blue. */

@font-face { font-family: 'Zurkware'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/Zurkware-Regular.woff2?v=ed1fbe5d2c) format('woff2'); }
@font-face { font-family: 'Zurkware'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/Zurkware-Medium.woff2?v=bf90e18619) format('woff2'); }
@font-face { font-family: 'Zurkware'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/Zurkware-SemiBold.woff2?v=fcc52d891f) format('woff2'); }
@font-face { font-family: 'Zurkware'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/Zurkware-Bold.woff2?v=264261e2f8) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(assets/fonts/InstrumentSans-Variable.woff2?v=82868ac1cc) format('woff2'); }

:root {
  --ink: #131C2D;
  --ink-2: #0E1522;
  --night: #0A101B;
  --bright: #E6EBF0;
  --blue: #2292CB;
  --ocean: #26739D;
  --deep: #1A4669;
  --slate: #546676;
  --mist: #A9B1BC;
  --sky: #8DCBEA;              /* tinte claro de Zurkware Blue, sólo sobre fondo oscuro */
  --white: #FFFFFF;
  --line: rgba(19, 28, 45, 0.12);
  --line-strong: rgba(19, 28, 45, 0.2);
  --frame: rgba(84, 102, 118, 0.26);
  --line-dark: rgba(230, 235, 240, 0.1);
  --line-dark-strong: rgba(230, 235, 240, 0.2);
  --grad-accent: linear-gradient(90deg, var(--deep), var(--ocean) 45%, var(--blue));
  --head: 'Zurkware', 'Segoe UI', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Consolas, 'DejaVu Sans Mono', monospace;
  --pad: clamp(20px, 5vw, 80px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-ligatures: no-contextual; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { position: relative; width: 100%; max-width: calc(1280px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 16px; background: var(--white); color: var(--ink); font: 600 14px var(--head); text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Tipografía de sistema ─────────────────────────────── */
.label { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.label .n { font-family: var(--mono); font-weight: 400; letter-spacing: 0; color: var(--ocean); }
.label::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: 0.5; }
.sub { font: 600 13px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.title { font: 600 clamp(36px, 4.8vw, 64px)/1.05 var(--head); letter-spacing: -0.024em; text-wrap: balance; max-width: 18ch; }
.title > span:not(.dot) { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.dot { display: inline-block; width: 0.22em; height: 0.22em; margin-left: 0.12em; border-radius: 50%; background: var(--blue); }
.lead { max-width: 60ch; font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(40px, 5vw, 64px); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 54px; padding: 0 28px; border: 1px solid transparent; font: 600 15px/1 var(--head); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color 0.3s, border-color 0.3s, box-shadow 0.4s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform 0.5s var(--ease); }
.btn:hover::before { transform: none; }
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg:not(.btn-ic) { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: var(--ink); box-shadow: 0 12px 32px -14px rgba(34, 146, 203, 0.85); }
.btn-primary::before { background: var(--bright); }
.btn-ghost { border-color: var(--line-dark-strong); color: var(--bright); background: rgba(19, 28, 45, 0.35); }
.btn-ghost::before { background: rgba(34, 146, 203, 0.16); }
.btn-ghost:hover { border-color: var(--blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
.btn-light::before { background: var(--bright); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; box-shadow: none; }

/* ── Encabezado ────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color 0.4s, border-color 0.4s; }
.site-header.is-solid { background: rgba(14, 21, 34, 0.86); border-color: var(--line-dark); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.brand img { width: 156px; }
.js .site-header:not(.show-brand) .brand { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.nav { display: flex; gap: clamp(20px, 2.4vw, 36px); margin-left: auto; margin-right: 8px; }
.nav a { position: relative; padding: 10px 0; font: 600 14px/1 var(--head); color: var(--bright); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--grad-accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ── Aurora: luz de fondo que se desplaza despacio ─────── */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; display: block; width: 60vmax; height: 60vmax; border-radius: 50%; will-change: transform; }
.blob.b1 { top: -30vmax; right: -16vmax; background: radial-gradient(circle, rgba(34, 146, 203, 0.22) 0%, rgba(34, 146, 203, 0) 62%); }
.blob.b2 { bottom: -36vmax; left: -20vmax; background: radial-gradient(circle, rgba(38, 115, 157, 0.3) 0%, rgba(38, 115, 157, 0) 64%); }

/* ── Portada ───────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh; padding-top: var(--header-h); color: var(--bright); text-align: center; overflow: hidden;
  background:
    radial-gradient(55% 50% at 50% 40%, rgba(26, 70, 105, 0.8) 0%, rgba(26, 70, 105, 0) 72%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(var(--line-dark) 1px, transparent 1px) 50% 0 / 72px 72px,
  linear-gradient(90deg, var(--line-dark) 1px, transparent 1px) 50% 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 42%, #000 0%, transparent 75%); }
.hero-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: clamp(20px, 4vh, 48px) clamp(12px, 2vh, 24px); }
.hero-stage { position: relative; width: min(640px, 78vw, calc((100svh - 400px) * 1.62)); min-width: 260px; aspect-ratio: 1640 / 1014; perspective: 1400px; }
.particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.flow { position: absolute; left: 50%; top: 50%; z-index: -1; width: 100vw; height: 190%; translate: -50% -50%; pointer-events: none; }
#fl-lines path { stroke: url(#fl-stroke); stroke-width: 1; stroke-opacity: 0.3; }
#fl-lines path.fl-edge { stroke: var(--blue); stroke-width: 1.3; stroke-opacity: 0.6; }
.logo { position: relative; display: block; width: 100%; height: auto; overflow: visible; transition: filter 0.7s var(--ease); }
.wm { fill: var(--white); }
.wm-dot { fill: var(--blue); transform-box: fill-box; transform-origin: center; }
.wm-ring { fill: none; stroke: var(--blue); stroke-width: 8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cinta { transform-box: fill-box; transform-origin: center; }
/* Hover del logotipo: una franja de luz sutil sobre las cintas que sigue al puntero (--hx/--hy, de -0.5 a 0.5) y una sombra corta */
.logo mask { mask-type: alpha; }
.shine { opacity: 0; mix-blend-mode: soft-light; pointer-events: none; transition: opacity 0.8s var(--ease); }
.shine-band { opacity: 0.7; transform: translate(calc(var(--hx, 0) * -900px), calc(var(--hy, 0) * -360px)); transition: transform 0.9s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .hero-stage:hover .shine { opacity: 1; }
  .hero-stage:hover .logo { filter: drop-shadow(0 14px 18px rgba(4, 9, 18, 0.5)); }
}
.h1 { margin-top: clamp(22px, 3.6vh, 44px); font: 600 clamp(30px, 3.6vw, 54px)/1.1 var(--head); letter-spacing: -0.026em; color: var(--white); text-wrap: balance; }
.h1 > span { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.h1-b, .h1-b [data-word] { color: var(--blue); }
.h1-c { white-space: nowrap; }
@media (min-width: 640px) { .h1 { white-space: nowrap; } }
/* El punto va arriba a la derecha de la «s», como en el logotipo: diámetro 0.3 de la altura x, centro a 1.03 */
.h1 .dot { width: 0.3ex; height: 0.3ex; margin-left: 0.05em; vertical-align: 0.88ex; }
.hero-sub { margin-top: 18px; font: 500 12.5px/1.6 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.hero-sub i { margin: 0 0.6em; font-style: normal; color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.8vh, 38px); }
.hero .actions { justify-content: center; }

.hero-foot { display: flex; align-items: flex-end; justify-content: flex-end; gap: 24px; padding-bottom: clamp(20px, 3.2vh, 32px); text-align: left; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font: 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); text-decoration: none; }
.scroll-line { position: relative; width: 1px; height: 44px; overflow: hidden; background: var(--line-dark-strong); }
.scroll-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--blue); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-14px); } to { transform: translateY(44px); } }

/* ── Bandas ────────────────────────────────────────────── */
.band { position: relative; isolation: isolate; padding: clamp(84px, 10vw, 136px) 0; overflow: hidden; }
/* Claras */
.band.light { color: var(--ink); background:
  radial-gradient(50% 50% at 100% 0%, rgba(34, 146, 203, 0.14) 0%, rgba(34, 146, 203, 0) 70%),
  linear-gradient(180deg, var(--bright) 0%, #EDF1F4 100%); }
.band.white { color: var(--ink); background:
  radial-gradient(45% 45% at 0% 0%, rgba(38, 115, 157, 0.08) 0%, rgba(38, 115, 157, 0) 70%),
  var(--white); }
/* Oscuras: cada una en un tono distinto */
.band.stack, .band.process, .band.deep { color: var(--bright); }
.band.stack .label, .band.process .label { color: var(--mist); }
.band.stack .label .n, .band.process .label .n { color: var(--blue); }
.band.stack .title, .band.process .title, .band.deep .title { color: var(--white); }
.band.stack .lead, .band.process .lead { color: var(--mist); }
.band.deep .label { color: var(--bright); }
.band.deep .label .n { color: var(--white); }
.band.deep .lead { color: var(--bright); }

/* ── 01 · Qué hacemos ──────────────────────────────────── */
.svc { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.svc-list { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.svc-ind { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; background: linear-gradient(90deg, rgba(34, 146, 203, 0.14), rgba(34, 146, 203, 0) 85%); box-shadow: inset 3px 0 0 var(--blue); pointer-events: none; }
.svc-tab { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; align-content: center; gap: 10px; width: 100%; padding: 24px 12px 24px 22px; border: 0; border-bottom: 1px solid var(--line-strong); background: none; text-align: left; cursor: pointer; color: var(--slate); transition: color 0.3s; }
.svc-tab:hover { color: var(--ink); }
.svc-tab .num { font: 13px/1 var(--mono); color: var(--ocean); }
.svc-tab .t { font: 500 clamp(17px, 1.5vw, 21px)/1.28 var(--head); text-wrap: balance; }
.svc-tab[aria-selected="true"] { color: var(--ink); }
.svc-tab .prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad-accent); transform: scaleX(0); transform-origin: 0 50%; }

.svc-stage { position: relative; display: grid; background: var(--white); border: 1px solid var(--frame); box-shadow: 0 40px 80px -48px rgba(19, 28, 45, 0.4); }
.svc-stage::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; z-index: 2; background: var(--grad-accent); }
.svc-panel { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3.6vw, 52px); visibility: hidden; }
.svc-panel.is-active { visibility: visible; }
.svc-panel.is-leaving { visibility: visible; pointer-events: none; }
.glyph { position: absolute; top: clamp(26px, 3.6vw, 52px); right: clamp(24px, 3.6vw, 52px); width: 84px; height: 84px; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; overflow: visible; }
.glyph .g-dot { fill: var(--blue); stroke: none; transform-box: fill-box; transform-origin: center; }
.svc-body { margin-bottom: clamp(28px, 3vw, 40px); }
.svc-body h3 { padding-right: 108px; font: 600 clamp(26px, 2.6vw, 36px)/1.12 var(--head); letter-spacing: -0.014em; text-wrap: balance; }
.svc-body h3 > span { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.svc-body .desc { max-width: 58ch; padding-right: 108px; margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.svc-sub { margin: 30px 0 12px; font: 600 12px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.items li { display: grid; grid-template-columns: minmax(170px, 0.3fr) 1fr; gap: 6px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.items li:last-child { border-bottom: 1px solid var(--line); }
.items b { font: 600 16px/1.3 var(--head); }
.items span { font-size: 15px; line-height: 1.5; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 14px; border: 1px solid var(--frame); background: #F4F7FA; font: 13.5px/1 var(--mono); color: var(--ink); cursor: default; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.chips li:hover { background: #D7ECF8; border-color: var(--blue); color: var(--deep); }
.svc-next { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: auto; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line-strong); background: none; text-align: left; cursor: pointer; color: var(--ink); }
.svc-next .k { font: 600 11px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.svc-next .n { font: 13px/1 var(--mono); color: var(--ocean); }
.svc-next .t { flex: 1; font: 500 16px/1.3 var(--head); }
.svc-next svg { flex: none; transition: transform 0.35s var(--ease); }
.svc-next:hover svg, .svc-next:focus-visible svg { transform: translateX(4px); }
.svc-next:hover .t { color: var(--ocean); }

/* ── 02 · Tecnología (Deep Blue) ───────────────────────── */
.stack { padding-bottom: clamp(72px, 8vw, 112px); background:
  radial-gradient(45% 70% at 85% 15%, rgba(34, 146, 203, 0.24) 0%, rgba(34, 146, 203, 0) 70%),
  linear-gradient(135deg, var(--deep) 0%, #173E5E 55%, #12324E 100%); }
.stack::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(230, 235, 240, 0.045) 0 1px, transparent 1px 120px); }
.stack-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.stack-head .head { margin-bottom: clamp(36px, 4vw, 56px); }
.stack-count { flex: none; margin-bottom: clamp(36px, 4vw, 56px); }
.stack-count > span { display: grid; justify-items: end; gap: 8px; }
.stack-count .count { font: 600 clamp(64px, 7.5vw, 112px)/0.85 var(--head); letter-spacing: -0.04em; color: var(--white); font-variant-numeric: tabular-nums; }
.stack-count .count + span { font: 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.marquees { display: grid; gap: 14px; }
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: max-content; max-width: 100%; margin: 0 auto; padding: 0 var(--pad); }
.js:not(.reduce):not(.no-anim) .track { flex-wrap: nowrap; max-width: none; margin: 0; padding: 0; will-change: transform; backface-visibility: hidden; }
.tech { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px 0 20px; border: 1px solid rgba(230, 235, 240, 0.16); background: rgba(14, 21, 34, 0.28); white-space: nowrap; cursor: default; transition: border-color 0.5s, background-color 0.5s; }
.tech svg { flex: none; width: 26px; height: 26px; fill: rgba(230, 235, 240, 0.8); transition: fill 0.5s; }
.tech span { font: 600 15.5px/1 var(--head); color: var(--bright); }
.tech span { transition: color 0.5s; }
.tech:hover, .tech.is-lit { border-color: var(--white); background-color: #F4F7FA; }
.tech:hover span, .tech.is-lit span { color: var(--ink); }
.tech:hover svg, .tech.is-lit svg { fill: var(--c); }

/* ── 03 · Impacto · antes y después ────────────────────── */
.ba { position: relative; height: clamp(420px, 44vw, 540px); overflow: hidden; border: 1px solid var(--frame); user-select: none; -webkit-user-select: none; --ba: 50%; box-shadow: 0 40px 90px -50px rgba(19, 28, 45, 0.5); }
.ba-pane { position: absolute; inset: 0; padding: clamp(24px, 3.4vw, 44px); }
.ba-before { background: linear-gradient(180deg, var(--bright) 0%, #DCE3EA 100%); color: var(--ink); }
.ba-after { background: radial-gradient(60% 80% at 100% 0%, rgba(34, 146, 203, 0.22), rgba(34, 146, 203, 0) 70%), linear-gradient(140deg, var(--ink) 0%, #182C47 55%, var(--deep) 100%); color: var(--bright); clip-path: inset(0 0 0 var(--ba)); }
.ba-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-copy { position: relative; max-width: min(44%, 500px); }
.ba-after .ba-copy { margin-left: auto; }
.ba-tag { font: 600 12px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.ba-after .ba-tag { color: var(--blue); }
.ba-head { margin-top: 16px; font: 600 clamp(22px, 2.5vw, 34px)/1.14 var(--head); letter-spacing: -0.012em; text-wrap: balance; }
.ba-after .ba-head { color: var(--white); }
.ba-list { margin-top: 20px; display: grid; gap: 10px; }
.ba-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.45; }
.ba-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border: 1.5px solid var(--slate); }
.ba-after .ba-list li::before { border: 0; border-radius: 50%; background: var(--blue); }
.ba-note { position: absolute; right: clamp(16px, 2.4vw, 28px); bottom: 14px; font: 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--slate); }
.ba-after .ba-note { color: var(--mist); }
.ba-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 56px; display: flex; align-items: center; justify-content: center; cursor: ew-resize; touch-action: pan-y; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--blue); }
.ba-knob { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--white); border: 2px solid var(--blue); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-knob { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--blue); }

.sizes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(48px, 5.5vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.sizes-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sizes-text { font-size: 17px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.sizes-link { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--head); color: var(--ocean); text-decoration: none; }
.sizes-link svg { transition: transform 0.35s var(--ease); }
.sizes-link:hover svg { transform: translateX(4px); }
.sizes-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sizes-list li { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 24px; background: #F4F7FA; border: 1px solid var(--line); border-top: 3px solid var(--blue); }
.sizes-n { font: 12px/1 var(--mono); color: var(--ocean); }
.sizes-list b { font: 600 18px/1.2 var(--head); }
.sizes-list li > span:last-child { font-size: 15px; line-height: 1.55; color: var(--slate); }
.outcomes { margin-top: clamp(40px, 4.5vw, 60px); }
.outcomes ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); margin-top: 18px; }
.outcomes li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-strong); font: 500 clamp(16px, 1.35vw, 18px)/1.3 var(--head); text-wrap: balance; }
.outcomes li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 0.42em; border-radius: 50%; background: var(--blue); }

/* ── 04 · Proceso (casi negro) ─────────────────────────── */
.process { background:
  radial-gradient(40% 60% at 100% 100%, rgba(38, 115, 157, 0.22) 0%, rgba(38, 115, 157, 0) 70%),
  linear-gradient(180deg, var(--ink-2) 0%, var(--night) 100%); }
.steps { position: relative; --p: 0; }
.steps-line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-dark-strong); }
.steps-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ocean), var(--blue) 70%, var(--sky)); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.steps-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 44px); }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 44px; }
.step-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(230, 235, 240, 0.4); background: var(--night); transition: background-color 0.6s, border-color 0.6s, box-shadow 0.8s; }
.step.is-on .step-dot { background: var(--blue); border-color: var(--sky); box-shadow: 0 0 0 6px rgba(34, 146, 203, 0.16); }
.step-n { align-self: flex-start; font: 600 clamp(52px, 5.4vw, 76px)/0.9 var(--head); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(230, 235, 240, 0.32); transition: color 0.8s, -webkit-text-stroke-color 0.8s; }
.step.is-on .step-n { color: var(--white); -webkit-text-stroke-color: transparent; }
.step h3 { margin-top: 6px; font: 600 clamp(20px, 1.8vw, 24px)/1.2 var(--head); color: var(--white); text-wrap: balance; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--mist); text-wrap: pretty; }
/* Cada etapa se muestra al encenderse: título, texto y etiqueta en cascada */
.js:not(.reduce):not(.no-anim) .step > :is(h3, p, .step-tag) { opacity: 0.16; transform: translateY(10px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.js:not(.reduce):not(.no-anim) .step.is-on > :is(h3, p, .step-tag) { opacity: 1; transform: none; }
.js:not(.reduce):not(.no-anim) .step.is-on > p { transition-delay: 0.08s; }
.js:not(.reduce):not(.no-anim) .step.is-on > .step-tag { transition-delay: 0.16s; }
.step-tag { align-self: flex-start; margin-top: 6px; padding: 7px 10px; border: 1px solid var(--line-dark-strong); font: 12px/1 var(--mono); color: var(--sky); }

/* ── 05 · Proyectos ────────────────────────────────────── */
.pj-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pj-filter button { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.7); font: 600 14px/1 var(--head); color: var(--slate); cursor: pointer; transition: background-color 0.35s, color 0.35s, border-color 0.35s; }
.pj-filter button span { font: 12px/1 var(--mono); color: var(--ocean); transition: color 0.35s; }
.pj-filter button:hover { border-color: var(--ink); color: var(--ink); }
.pj-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pj-filter button[aria-pressed="true"] span { color: var(--sky); }
.pj-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
.pj { grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--white); border: 1px solid var(--frame); box-shadow: 0 24px 48px -40px rgba(19, 28, 45, 0.45); transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s; }
.pj[hidden] { display: none; }
.pj::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; z-index: 1; background: var(--pc, var(--blue)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); }
.pj:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--pc, var(--blue)) 35%, var(--frame)); box-shadow: 0 32px 60px -36px rgba(19, 28, 45, 0.5); }
.pj:hover::before { transform: none; }
.pj:has(.pj-cover) { padding: 0; overflow: hidden; }
.pj-feature { grid-column: span 3; }
.is-filtered .pj-feature { grid-column: span 2; }
.pj-cover { position: relative; display: flex; flex-direction: column; overflow: hidden; aspect-ratio: 16 / 10.4; background: var(--ink-2); border-bottom: 1px solid var(--frame); }
.pj-cover.is-portrait { background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 70%), var(--ink); }
.pj-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; background: #1B2638; }
.pj-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(230, 235, 240, 0.28); }
.pj-cover img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 0; transition: transform 1.2s var(--ease); transform-origin: 50% 0; }
.pj-cover.is-portrait .pj-bar { display: none; }
.pj-cover.is-portrait img { width: auto; height: 100%; margin: 7% auto 0; object-fit: contain; box-shadow: 0 0 0 6px #0B111C, 0 20px 40px -10px rgba(0, 0, 0, 0.7); border-radius: 14px; }
.pj:hover .pj-cover img { transform: scale(1.03); }
.pj:hover .pj-cover.is-portrait img { transform: translateY(-6px); }
.pj-body { display: flex; flex-direction: column; flex: 1; gap: 14px; }
.pj:has(.pj-cover) .pj-body { padding: 22px 24px 24px; }
.pj-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.pj-more { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--head); color: var(--ocean); }
.pj-more svg { transition: transform 0.35s var(--ease); }
.pj:hover .pj-more svg { transform: translateX(4px); }
.pj-soon { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid color-mix(in srgb, var(--pc, var(--blue)) 55%, var(--frame)); background: var(--white); font: 600 12px/1 var(--head); letter-spacing: 0.03em; color: var(--ink); cursor: not-allowed; }
.pj-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, var(--blue)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, var(--blue)) 22%, transparent); }
.pj-open { position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pj-open:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

/* Galería de capturas */
.pjm { width: min(1320px, calc(100vw - 32px)); max-width: none; height: min(840px, calc(100svh - 32px)); max-height: none; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.pjm::backdrop { background: rgba(10, 16, 27, 0.84); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pjm-panel { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; background: var(--white); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7); overflow: hidden; }
.pjm-view { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--pc, var(--blue)) 22%, transparent), transparent 75%), var(--ink-2); }
/* La captura se ajusta al visor sin importar su orientación */
.pjm-stage { position: relative; flex: 1; min-height: 0; }
.pjm-img { position: absolute; inset: 24px 72px 12px; width: auto; height: auto; max-width: calc(100% - 144px); max-height: calc(100% - 36px); margin: auto; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8); }
.pjm-nav { position: absolute; top: calc(50% - 64px); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(230, 235, 240, 0.22); background: rgba(14, 21, 34, 0.72); color: var(--white); cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.pjm-nav:hover { border-color: var(--blue); background: rgba(34, 146, 203, 0.25); }
.pjm-prev { left: 16px; }
.pjm-next { right: 16px; }
.pjm-thumbs { flex: none; display: flex; justify-content: center; gap: 8px; padding: 10px 16px 18px; overflow-x: auto; }
.pjm-thumbs button { flex: none; width: 92px; height: 58px; padding: 0; border: 1px solid rgba(230, 235, 240, 0.16); background: #000; opacity: 0.5; cursor: pointer; overflow: hidden; transition: opacity 0.3s, border-color 0.3s; }
.pjm-thumbs button:hover { opacity: 0.85; }
.pjm-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--blue); }
.pjm-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.pjm-info { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 34px 28px 28px; overflow-y: auto; border-top: 3px solid var(--pc, var(--blue)); }
.pjm-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; transition: border-color 0.3s; }
.pjm-close:hover { border-color: var(--ink); }
.pjm-info .pj-top { padding-right: 44px; }
.pjm-desc { font-size: 15px; line-height: 1.55; color: var(--slate); }
.pjm-shot { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; background: #F4F7FA; border-left: 3px solid var(--pc, var(--blue)); }
.pjm-count { font: 12px/1 var(--mono); color: var(--ocean); }
.pjm-shot h4 { margin: 0; font: 600 19px/1.2 var(--head); }
.pjm-shot p:last-child { font-size: 15px; line-height: 1.55; color: var(--ink); }
.pjm-info .pj-plat { margin-top: auto; }
.pjm-info .pj-soon { align-self: flex-start; }
.pj-top { display: flex; align-items: center; gap: 14px; }
.pj-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 8px 18px -10px rgba(19, 28, 45, 0.6); }
.pj h3 { font: 600 21px/1.15 var(--head); letter-spacing: -0.01em; }
.pj-cat { margin-top: 5px; font: 12px/1.2 var(--mono); letter-spacing: 0.04em; color: var(--ocean); }
.pj-desc { font-size: 15px; line-height: 1.55; color: var(--slate); text-wrap: pretty; }
.pj-plat { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font: 12px/1.4 var(--mono); color: var(--ink); }
.pj-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-stack li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); background: #F4F7FA; font: 12px/1 var(--mono); color: var(--ink); }
.pj-stack svg { width: 14px; height: 14px; fill: var(--slate); }

/* ── 06 · Contacto (Ocean Blue) ────────────────────────── */
.band.deep { background:
  radial-gradient(45% 70% at 100% 30%, rgba(34, 146, 203, 0.45) 0%, rgba(34, 146, 203, 0) 70%),
  linear-gradient(120deg, var(--deep) 0%, var(--ocean) 100%); }
.cta-rings { position: absolute; z-index: -1; right: -9vw; top: 40%; width: min(820px, 84vw); height: auto; transform: translateY(-50%); }
.cta-rings :is(.core, .halo) { transform-box: fill-box; transform-origin: center; }
.cta-inner { display: grid; gap: clamp(48px, 6vw, 88px); }
.cta-copy { display: flex; flex-direction: column; gap: 22px; max-width: 800px; }
.cta .title { max-width: 17ch; }
.cta .actions { margin-top: 10px; }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); border-top: 1px solid rgba(230, 235, 240, 0.32); }
.contact > div { display: grid; gap: 10px; padding: 20px 0 0; }
.contact dt { font: 600 12px/1 var(--head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--bright); }
.contact dd { font: 16px/1.3 var(--mono); color: var(--white); overflow-wrap: anywhere; }

/* ── Pie ───────────────────────────────────────────────── */
.foot { background: var(--night); color: var(--mist); padding: clamp(56px, 8vw, 104px) 0 28px; overflow: hidden; }
.foot-mark { display: block; width: min(100%, 900px); height: auto; overflow: visible; }
.fm-path { fill: var(--white); }
.fm-dot { fill: var(--blue); transform-box: fill-box; transform-origin: center; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: clamp(40px, 7vw, 96px); padding-top: 20px; border-top: 1px solid var(--line-dark-strong); font-size: 14px; }
.foot-row a { text-decoration: none; color: var(--bright); }
.foot-row a:hover { color: var(--blue); }

/* ── Sin JavaScript: contenido completo y legible ──────── */
html:not(.js) .flow, html:not(.js) .particles, html:not(.js) .ba-handle, html:not(.js) .cta-rings { display: none; }
html:not(.js) .svc { grid-template-columns: 1fr; }
html:not(.js) .svc-list, html:not(.js) .pj-filter { display: none; }
html:not(.js) .svc-stage { display: block; }
html:not(.js) .svc-panel { visibility: visible; border-bottom: 1px solid var(--line-strong); }
html:not(.js) .svc-panel:last-child { border-bottom: 0; }
html:not(.js) .svc-next { display: none; }
html:not(.js) .steps { --p: 1; }
html:not(.js) .step-dot { background: var(--blue); border-color: var(--sky); }
html:not(.js) .step-n { color: var(--white); -webkit-text-stroke-color: transparent; }

/* ── Estados iniciales de animación ────────────────────── */
.js [data-in], .js [data-reveal], .js .tech, .js .pj, .js .cinta { opacity: 0; }
.js .h1, .js [data-split] { visibility: hidden; }
.js .wm { fill-opacity: 0; stroke: var(--white); stroke-width: 9; }
.js .wm-dot { transform: scale(0); }
.js .fm-path { fill-opacity: 0; stroke: var(--white); stroke-width: 7; }
.js .fm-dot { transform: scale(0); }
.js .foot-row { opacity: 0; }
:is(.reduce, .no-anim) :is([data-in], [data-reveal], .tech, .pj, .cinta) { opacity: 1 !important; transform: none !important; }
:is(.reduce, .no-anim) :is(.h1, [data-split]) { visibility: visible !important; }
:is(.reduce, .no-anim) .wm { fill-opacity: 1 !important; stroke: none !important; }
:is(.reduce, .no-anim) .wm-dot { transform: none !important; }
:is(.reduce, .no-anim) .fm-path { fill-opacity: 1 !important; stroke: none !important; }
:is(.reduce, .no-anim) .fm-dot { transform: none !important; }
:is(.reduce, .no-anim) .foot-row, .no-anim .svc-panel :is([data-p], [data-word], .g-dot) { opacity: 1 !important; transform: none !important; }
:is(.reduce, .no-anim) .steps { --p: 1 !important; }
.no-anim .site-header .brand { opacity: 1; transform: none; pointer-events: auto; }
.no-anim .svc-tab[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--blue); }

/* ── Responsivo ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cta-rings { top: -4vw; right: -16vw; width: 64vw; transform: none; }
  .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj, .pj-feature { grid-column: span 1; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .svc-list { flex-direction: row; border-top: 0; gap: 8px; }
  .svc-ind { display: none; }
  .svc-tab { flex: 1; justify-content: center; padding: 14px 0 16px; border: 1px solid var(--line-strong); text-align: center; grid-template-columns: 1fr; }
  .svc-tab .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .svc-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .svc-tab[aria-selected="true"] .num { color: var(--white); }
  .svc-tab .prog { background: var(--blue); bottom: 0; }
  .steps-list { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps-line { display: none; }
}
@media (max-width: 900px) {
  .sizes { grid-template-columns: 1fr; }
  .pjm { width: 100vw; height: 100svh; }
  .pjm-panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 52%) minmax(0, 1fr); }
  .pjm-img { inset: 16px 56px 8px; max-width: calc(100% - 112px); max-height: calc(100% - 24px); }
  .pjm-info { padding: 26px 20px 22px; }
  .outcomes ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .outcomes li { padding-bottom: 18px; }
  .stack-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .stack-count > span { justify-items: start; }
}
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .only-wide { display: none; }
  .cta-rings { top: -70px; right: -46vw; width: 104vw; transform: none; }
  .ba-pane { min-height: 360px; }
  .ba-art { top: auto; height: 46%; }
  .ba { height: auto; overflow: visible; display: grid; gap: 16px; border: 0; box-shadow: none; }
  .ba-pane { position: relative; inset: auto; border: 1px solid var(--frame); }
  .ba-after { clip-path: none; border-color: var(--ink); }
  .ba-handle { display: none; }
  .ba-copy, .ba-after .ba-copy { max-width: none; margin-left: 0; }
  .items li { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; row-gap: 36px; padding-left: 36px; }
  .steps-line { display: block; left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .steps-fill { background: linear-gradient(180deg, var(--ocean), var(--blue) 70%, var(--sky)); transform: scaleY(var(--p)); transform-origin: 50% 0; }
  .step { padding-top: 0; }
  .step-dot { left: -36px; top: 2px; }
  .step-n { font-size: 46px; }
  .tech { height: 56px; padding: 0 18px 0 16px; }
  .tech svg { width: 22px; height: 22px; }
  .tech span { font-size: 14.5px; }
  .scroll-cue { display: none; }
}
@media (max-width: 680px) {
  .pj-grid { grid-template-columns: 1fr; }
  .sizes-list { grid-template-columns: 1fr; }
  .pjm-nav { top: calc(50% - 56px); width: 36px; height: 36px; }
  .pjm-prev { left: 8px; }
  .pjm-next { right: 8px; }
  .pjm-img { inset: 12px 52px 8px; max-width: calc(100% - 104px); max-height: calc(100% - 20px); }
}
@media (max-width: 640px) {
  .h1 { font-size: clamp(26px, 7.5vw, 30px); }
  .glyph { width: 60px; height: 60px; }
  .svc-body h3 { min-height: 60px; padding-right: 76px; }
  .svc-body .desc { padding-right: 0; }
  .svc-next .k { display: none; }
  .brand img { width: 140px; }
  .hero .actions { width: 100%; }
  .actions .btn { width: 100%; }
  .hero-sub { letter-spacing: 0.1em; }
  .hero-sub span { display: block; }
  .hero-sub i { display: none; }
  .label::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation: none !important; }
}
