/* ═══════════════════════════════════════════════════════════
   éxodo bpo — HOME CINEMÁTICA
   Sistema: actos alternados tinta/hueso · tipografía gigante
   Outfit (estructura) · Instrument Serif itálica (acento) · JetBrains Mono (metadata)
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0a0a0b;
  --ink-soft: #131316;
  --bone: #f3f1ec;
  --bone-soft: #ebe8e1;
  --fg: #f2f0eb;
  --mut: #8a8782;
  --mut-d: #56544f;
  --hair-d: rgba(243, 241, 236, 0.08);
  --hair-l: rgba(10, 10, 11, 0.1);
  --grain-o: 0.05;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(24px, 6vw, 96px);
}
html { overflow-x: clip; background: var(--ink); }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--ink);
  color: var(--fg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(242, 240, 235, 0.92); color: #0a0a0b; }
.act-light ::selection { background: rgba(10, 10, 11, 0.9); color: #f3f1ec; }
canvas { display: block; }

/* acento editorial — sans liviana itálica sintética (igual al original) */
em, .em {
  font-family: 'Outfit', sans-serif;
  font-style: italic;
  font-weight: 200;
  letter-spacing: -0.02em;
  padding-right: 0.12em; margin-right: -0.04em;
}
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ═ GRANO DE PELÍCULA (global) ═ */
#grain {
  position: fixed; inset: -100px; z-index: 12000; pointer-events: none;
  opacity: var(--grain-o);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 250px;
}
@media (prefers-reduced-motion: no-preference) {
  #grain { animation: grain-jitter 0.9s steps(3) infinite; }
}
@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 25px); }
  66% { transform: translate(30px, -35px); }
  100% { transform: translate(0, 0); }
}

/* ═ CURSOR ═ */
#cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: #fff; border-radius: 50%;
  z-index: 13000; pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.3s;
  opacity: 0;
}
#cursor.on { opacity: 1; }
#cursor.big { width: 56px; height: 56px; }
#cursor.solid {
  mix-blend-mode: normal;
  background: transparent;
  backdrop-filter: invert(1) hue-rotate(180deg);
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg);
}
#cursor.solid.big { opacity: 1; }
@media (hover: none), (max-width: 768px) { #cursor { display: none; } }

/* ═ LOADER ═ */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.ld-name {
  font-size: clamp(56px, 11vw, 150px); font-weight: 800;
  letter-spacing: -0.045em; overflow: hidden; padding-bottom: 0.12em; padding-top: 0.14em; line-height: 1;
  padding-right: 0.08em; padding-left: 0.04em;
}
#loader { will-change: clip-path; flex-direction: column; gap: clamp(20px, 3.5vh, 34px); }
.ld-line { width: clamp(120px, 16vw, 220px); height: 1px; background: rgba(242, 240, 235, 0.1); overflow: hidden; }
.ld-line i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
.ld-name span { display: inline-block; transform: translateY(118%); opacity: 0; will-change: transform, filter, opacity; }
.ld-name .em { font-weight: 400; padding-right: 0.05em; }
/* wrappers de líneas animadas: que el glifo final (y la oblicua) no se recorte */
.hl { padding-right: 0.12em !important; margin-right: -0.06em; }
.ld-count {
  position: absolute; bottom: 40px; right: var(--pad);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; color: var(--mut-d);
  font-variant-numeric: tabular-nums;
}
.ld-meta {
  position: absolute; bottom: 40px; left: var(--pad);
  color: var(--mut-d);
}
#loader .ld-panel {
  position: absolute; inset: 0; background: var(--ink); z-index: -1;
}

/* ═ NAV ═ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px var(--pad);
  transition: padding 0.5s var(--ease), background 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
  mix-blend-mode: difference; color: #fff;
}
#nav.scrolled { padding: 14px var(--pad); }
.n-logo { font-size: 19px; font-weight: 800; letter-spacing: -0.04em; }
.n-logo span { font-weight: 300; opacity: 0.5; }
.n-links { display: flex; gap: 34px; list-style: none; align-items: center; }
.n-links a {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.45; transition: opacity 0.3s; position: relative;
}
.n-links a:hover { opacity: 1; }
.n-links li:not(.n-cta) a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.n-links li:not(.n-cta) a:hover::after { transform: scaleX(1); transform-origin: left; }
.n-cta a {
  padding: 9px 22px; border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px; opacity: 0.8; transition: all 0.3s;
}
.n-cta a:hover { background: #fff; color: #000; border-color: #fff; opacity: 1; }
.n-mob { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.n-mob span { width: 22px; height: 1.5px; background: #fff; }
.n-mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 9500;
  flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  opacity: 0; transition: opacity 0.4s;
}
.n-mobile-menu.open { display: flex; opacity: 1; }
.n-mobile-menu a { font-size: 19px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0.65; }
.n-mobile-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; opacity: 0.5; }

/* ═ ACTO I — HERO ═ */
.hero {
  height: 100vh; height: 100svh; position: relative;
  display: flex; align-items: flex-end; overflow: hidden;
}
#heroCanvas { position: absolute; inset: 0; z-index: 0; }
.hero-vig {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 110%, rgba(10, 10, 11, 0.55), transparent 55%),
    radial-gradient(ellipse 140% 110% at 50% 50%, transparent 40%, rgba(10, 10, 11, 0.82) 100%);
}
.hero-ct {
  position: relative; z-index: 3; width: 100%;
  padding: 0 var(--pad) clamp(72px, 13vh, 150px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--mut); margin-bottom: clamp(20px, 3vh, 36px);
  opacity: 0; transform: translateY(14px);
}
.hero-badge i {
  width: 6px; height: 6px; background: var(--fg); border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.25; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.15); } }
.hero-h {
  font-size: clamp(44px, min(10.5vw, 14.5svh), 168px);
  font-weight: 760; letter-spacing: -0.045em; line-height: 0.94;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.hero-h .hl { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-h .hl-in { display: block; transform: translateY(112%); will-change: transform; }
.hero-h .em { font-size: 1.04em; line-height: 0.85; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.hero-p {
  font-size: clamp(14px, 1.15vw, 17px); font-weight: 300; line-height: 1.85;
  color: var(--mut); max-width: 400px;
  opacity: 0; transform: translateY(16px);
}
.hero-btns { display: flex; gap: 18px; align-items: center; opacity: 0; transform: translateY(16px); }
.btn-main {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; background: var(--fg); color: var(--ink);
  border-radius: 100px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap;
  transition: box-shadow 0.4s var(--ease); will-change: transform;
}
.btn-main:hover { box-shadow: 0 18px 60px rgba(242, 240, 235, 0.14); }
.btn-main svg { transition: transform 0.3s; }
.btn-main:hover svg { transform: translateX(4px); }
.btn-ghost {
  font-size: 12px; color: var(--mut); letter-spacing: 0.06em; white-space: nowrap;
  transition: color 0.3s; will-change: transform;
}
.btn-ghost:hover { color: var(--fg); }
.hero-meta {
  position: absolute; z-index: 3; top: 50%; right: var(--pad);
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  color: var(--mut-d); opacity: 0;
}
.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0;
}
.hero-scroll .mono { font-size: 8px; color: var(--mut-d); letter-spacing: 0.3em; }
.sc-line { width: 1px; height: 44px; background: var(--hair-d); position: relative; overflow: hidden; }
.sc-line::after {
  content: ''; position: absolute; top: -100%; width: 100%; height: 100%;
  background: var(--mut); animation: scrl 2.2s ease-in-out infinite;
}
@keyframes scrl { to { top: 100%; } }

/* ═ CINTA DE SECTORES — texto gigante delineado ═ */
.belt { padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--hair-d); border-bottom: 1px solid var(--hair-d); overflow: hidden; position: relative; }
.belt-label { text-align: center; color: var(--mut-d); margin-bottom: 26px; }
.belt-rail { display: flex; white-space: nowrap; will-change: transform; }
.belt-seg { display: flex; align-items: baseline; flex-shrink: 0; }
.belt-it {
  font-size: clamp(40px, 5.5vw, 84px); font-weight: 750; letter-spacing: -0.03em;
  line-height: 1.1; color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 235, 0.32);
  padding: 0 0.45em; transition: color 0.5s var(--ease);
}
.belt-it:hover { color: var(--fg); -webkit-text-stroke-color: transparent; }
.belt-dot { color: var(--mut-d); font-size: clamp(16px, 2vw, 28px); }

/* ═ ACTO II — DECLARACIÓN (pinned, hueso) ═ */
.stmt-w { height: 380vh; position: relative; }
.stmt {
  height: 100vh; height: 100svh; position: sticky; top: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bone); color: var(--ink); overflow: hidden;
}
.stmt-idx { position: absolute; top: 110px; left: var(--pad); color: rgba(10, 10, 11, 0.3); }
.stmt-phrase {
  position: absolute; text-align: center; max-width: 1000px; padding: 0 32px;
  font-size: clamp(38px, 6.2vw, 96px); font-weight: 750; letter-spacing: -0.04em;
  line-height: 1.04; opacity: 0; will-change: transform, opacity, filter;
}
.stmt-phrase em { font-size: 1.06em; }
.stmt-counter { position: absolute; bottom: 48px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.stmt-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(10, 10, 11, 0.14); transition: background 0.4s, transform 0.4s; }
.stmt-dot.active { background: rgba(10, 10, 11, 0.75); transform: scale(1.25); }
.stmt-sub {
  background: var(--bone); color: var(--ink); text-align: center;
  padding: 0 var(--pad) clamp(90px, 12vh, 160px);
}
.stmt-sub p {
  font-size: clamp(17px, 1.8vw, 26px); font-weight: 300; line-height: 1.75;
  color: #6e6b65; max-width: 700px; margin: 0 auto; letter-spacing: -0.01em;
  text-wrap: pretty;
}
.stmt-sub strong { font-weight: 600; color: var(--ink); }

/* ═ MÉTRICAS (tinta) ═ */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(70px, 10vh, 130px) var(--pad);
  border-bottom: 1px solid var(--hair-d);
}
.met { padding: 10px clamp(16px, 2.5vw, 44px); border-left: 1px solid var(--hair-d); opacity: 0; transform: translateY(28px); }
.met:first-child { border-left: none; padding-left: 0; }
.met-n {
  font-size: clamp(48px, 6.5vw, 110px); font-weight: 230; letter-spacing: -0.04em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.met-n sup { font-size: 0.4em; font-weight: 300; color: var(--mut); vertical-align: 0.9em; letter-spacing: 0; }
.met-l { margin-top: 18px; color: var(--mut-d); max-width: 180px; line-height: 1.9; }

/* ═ SERVICIOS (hueso) — filas editoriales ═ */
.svc { background: var(--bone); color: var(--ink); padding: clamp(90px, 13vh, 180px) var(--pad); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vh, 90px); }
.sec-tag { color: #a39f97; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.sec-tag::before { content: ''; width: 36px; height: 1px; background: currentColor; opacity: 0.5; }
.act-dark .sec-tag { color: var(--mut-d); }
.sec-h {
  font-size: clamp(34px, 4.6vw, 72px); font-weight: 750; letter-spacing: -0.04em;
  line-height: 1.02; max-width: 760px;
}
.sec-h em { font-size: 1.05em; }
.sec-desc { font-size: 14px; font-weight: 300; color: #8d897f; max-width: 330px; line-height: 1.85; text-wrap: pretty; }
.svc-rows { border-top: 1px solid var(--hair-l); }
.svc-row {
  display: grid; grid-template-columns: 90px 1fr 360px 64px;
  align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: clamp(30px, 4.5vh, 52px) 0;
  border-bottom: 1px solid var(--hair-l);
  position: relative; opacity: 0; transform: translateY(34px);
}
.svc-row::before {
  content: ''; position: absolute; inset: 0 calc(-1 * clamp(14px, 2vw, 36px));
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.svc-row:hover::before { transform: scaleY(1); }
.svc-row > * { position: relative; z-index: 1; }
.svc-num { color: #b3afa6; transition: color 0.45s var(--ease); }
.svc-row:hover .svc-num { color: rgba(243, 241, 236, 0.45); }
.svc-ti {
  font-size: clamp(26px, 3.4vw, 54px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.04;
  transition: transform 0.6s var(--ease), color 0.45s var(--ease);
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.svc-row:hover .svc-ti { transform: translateX(14px); color: var(--bone); }
.svc-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 8px; letter-spacing: 0.22em;
  text-transform: uppercase; padding: 5px 12px; border: 1px solid rgba(10, 10, 11, 0.22);
  border-radius: 100px; color: #8d897f; white-space: nowrap; transform: translateY(-0.4em);
  transition: color 0.45s, border-color 0.45s;
}
.svc-row:hover .svc-badge { color: rgba(243, 241, 236, 0.6); border-color: rgba(243, 241, 236, 0.3); }
.svc-de { font-size: 13px; font-weight: 300; line-height: 1.85; color: #8d897f; text-wrap: pretty; transition: color 0.45s var(--ease); }
.svc-row:hover .svc-de { color: rgba(243, 241, 236, 0.55); }
.svc-arrow {
  width: 52px; height: 52px; border: 1px solid rgba(10, 10, 11, 0.16); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.45s var(--ease), color 0.45s, border-color 0.45s, transform 0.45s var(--ease);
}
.svc-row:hover .svc-arrow { background: var(--bone); color: var(--ink); border-color: var(--bone); transform: rotate(45deg); }

/* ═ TECNOLOGÍA (tinta) ═ */
.tech { padding: clamp(90px, 13vh, 180px) var(--pad); position: relative; overflow: hidden; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 120px); align-items: center; }
.tech-h { font-size: clamp(30px, 3.6vw, 54px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 22px; }
.tech-p { font-size: 14px; font-weight: 300; line-height: 1.85; color: var(--mut); max-width: 420px; margin-bottom: 44px; text-wrap: pretty; }
.u-draw {
  color: var(--fg);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 1.1s var(--ease) 0.35s;
}
.u-draw.on { background-size: 100% 1px; }
.tech-feat {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 0;
  border-top: 1px solid var(--hair-d);
  opacity: 0; transform: translateX(-18px);
  position: relative; cursor: default;
}
.feat-bar {
  position: absolute; top: -1px; left: 0; width: 100%; height: 1px;
  background: rgba(242, 240, 235, 0.55);
  transform: scaleX(0); transform-origin: left; display: block;
}
.tech-feat-n { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--mut-d); letter-spacing: 0.2em; margin-top: 5px; transition: color 0.4s; }
.tech-feat.on .tech-feat-n { color: var(--fg); }
.tech-feat h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.tech-feat p { font-size: 12.5px; font-weight: 300; line-height: 1.75; color: var(--mut); max-width: 380px; }
.term { background: rgba(242, 240, 235, 0.025); border: 1px solid var(--hair-d); border-radius: 14px; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--hair-d); }
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(242, 240, 235, 0.12); }
.term-title { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--mut-d); letter-spacing: 0.15em; }
.term-body { padding: 22px; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 2.25; color: var(--mut); min-height: 310px; }
.tc { color: #4e4c48; } .tk { color: #c9c6bf; } .ts { color: #807d77; } .tv { color: var(--fg); font-weight: 500; }
.t-cursor { display: inline-block; width: 7px; height: 13px; background: var(--fg); vertical-align: text-bottom; margin-left: 2px; animation: bk 1s step-end infinite; }
@keyframes bk { 50% { opacity: 0; } }

/* ═ CLIENTES (hueso) — muro tipográfico ═ */
.cli { background: var(--bone); color: var(--ink); padding: clamp(90px, 13vh, 180px) 0 clamp(70px, 9vh, 130px); overflow: hidden; }
.cli-head { text-align: center; padding: 0 var(--pad); margin-bottom: clamp(50px, 8vh, 100px); }
.cli-h { font-size: clamp(34px, 4.6vw, 72px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.04; }
.cli-h em { font-size: 1.05em; }
.cli-sub { font-size: 14px; font-weight: 300; color: #8d897f; max-width: 460px; margin: 20px auto 0; line-height: 1.85; text-wrap: pretty; }
.cli-rows { display: flex; flex-direction: column; gap: clamp(8px, 1.5vh, 18px); }
.cli-row { display: flex; white-space: nowrap; will-change: transform; }
.cli-seg { display: flex; align-items: baseline; flex-shrink: 0; }
.cli-name {
  font-size: clamp(34px, 4.8vw, 76px); font-weight: 240; letter-spacing: -0.03em;
  line-height: 1.16; color: rgba(10, 10, 11, 0.34); padding: 0 0.42em;
  transition: color 0.45s var(--ease), font-weight 0.45s;
}
.cli-name:hover { color: var(--ink); }
.cli-sep { color: rgba(10, 10, 11, 0.18); font-size: clamp(16px, 2.2vw, 30px); }
.cli-more { text-align: center; margin-top: clamp(44px, 6vh, 70px); }
.cli-more a { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: #8d897f; transition: color 0.3s; }
.cli-more a:hover { color: var(--ink); }

/* ═ PROCESO (tinta) ═ */
.proc { padding: clamp(90px, 13vh, 180px) var(--pad); }
.proc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 130px); align-items: start; }
.proc-left { position: sticky; top: 26vh; }
.proc-p { font-size: 14px; font-weight: 300; color: var(--mut); max-width: 360px; line-height: 1.85; margin-top: 18px; text-wrap: pretty; }
.proc-steps { position: relative; padding-left: clamp(28px, 3vw, 48px); }
.proc-line { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--hair-d); }
.proc-line i { position: absolute; inset: 0; background: var(--fg); transform: scaleY(0); transform-origin: top; display: block; }
.proc-head {
  position: absolute; left: 0.5px; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 0 38px rgba(255, 255, 255, 0.35);
  opacity: 0; transition: opacity 0.3s; will-change: transform;
}
.proc-step { padding: clamp(30px, 4.5vh, 54px) 0; border-bottom: 1px solid var(--hair-d); opacity: 0; transform: translateY(26px); position: relative; }
.proc-step:last-child { border-bottom: none; }
.proc-step::before {
  content: ''; position: absolute; left: calc(-1 * clamp(28px, 3vw, 48px) - 3.5px); top: clamp(40px, 5.5vh, 64px);
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink); border: 1px solid var(--mut-d);
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.proc-step::after {
  content: ''; position: absolute; left: calc(-1 * clamp(28px, 3vw, 48px) - 3.5px); top: clamp(40px, 5.5vh, 64px);
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(242, 240, 235, 0.6);
  opacity: 0; pointer-events: none;
}
.proc-step.lit::before {
  background: var(--fg); border-color: var(--fg);
  box-shadow: 0 0 10px rgba(242, 240, 235, 0.55);
}
.proc-step.lit::after { animation: ringp 0.9s ease-out forwards; }
@keyframes ringp { from { opacity: 0.8; transform: scale(1); } to { opacity: 0; transform: scale(3.6); } }
.proc-sn { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mut-d); letter-spacing: 0.25em; margin-bottom: 16px; transition: color 0.4s; }
.proc-step.lit .proc-sn { color: var(--fg); }
.proc-sh { font-size: clamp(20px, 2.1vw, 30px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; transition: opacity 0.4s; }
.proc-step:not(.lit) .proc-sh { opacity: 0.55; }
.proc-sp { font-size: 13px; font-weight: 300; line-height: 1.85; color: var(--mut); max-width: 420px; text-wrap: pretty; }

/* ═ CTA FINAL (hueso) ═ */
.cta {
  min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; background: var(--bone); color: var(--ink);
  padding: clamp(90px, 12vh, 160px) 32px; position: relative; overflow: hidden;
}
.cta-h {
  font-size: clamp(56px, 9.5vw, 152px); font-weight: 760; letter-spacing: -0.045em;
  line-height: 0.96; margin-bottom: 30px;
}
.cta-h .hl { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.06em; }
.cta-h .hl-in { display: block; }
.cta-h em { font-size: 1.05em; }
.cta-tagline { color: #9b978e; margin-bottom: 52px; line-height: 2.2; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 18px 48px;
  background: var(--ink); color: var(--bone); border-radius: 100px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  transition: box-shadow 0.4s var(--ease); will-change: transform;
}
.cta-btn:hover { box-shadow: 0 24px 70px rgba(10, 10, 11, 0.25); }
.cta-btn svg { transition: transform 0.3s; }
.cta-btn:hover svg { transform: translateX(4px); }

/* ═ FOOTER (tinta) ═ */
.foot { padding: clamp(60px, 8vh, 90px) var(--pad) 36px; border-top: 1px solid var(--hair-d); }
.ft-top { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1.6fr; gap: 40px; margin-bottom: 56px; }
.ft-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 16px; }
.ft-logo span { font-weight: 300; color: var(--mut-d); }
.ft-desc { font-size: 12px; font-weight: 300; color: var(--mut-d); line-height: 1.9; max-width: 250px; }
.ft-addr { font-size: 11px; color: var(--mut-d); line-height: 2.1; margin-top: 18px; font-weight: 300; }
.ft-addr a { color: var(--mut); }
.ft-ct { color: var(--mut-d); margin-bottom: 22px; }
.ft-col a { display: block; font-size: 12px; font-weight: 300; color: var(--mut); margin-bottom: 12px; transition: color 0.3s; }
.ft-col a:hover { color: var(--fg); }
.ft-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--hair-d); gap: 12px; flex-wrap: wrap; }
.ft-cp, .ft-em { font-size: 10px; color: var(--mut-d); font-weight: 300; letter-spacing: 0.04em; }
.ft-em:hover { color: var(--fg); }

/* ═ RESPONSIVE ═ */
@media (max-width: 1100px) {
  .svc-row { grid-template-columns: 56px 1fr 56px; }
  .svc-de { grid-column: 2; grid-row: 2; max-width: 480px; }
  .svc-arrow { width: 44px; height: 44px; }
  .tech-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-left { position: static; margin-bottom: 44px; }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .n-links { display: none; }
  .n-mob { display: flex; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .met:nth-child(odd) { border-left: none; padding-left: 0; }
  .hero-meta { display: none; }
  .ft-top { grid-template-columns: 1fr; }
  .term-body { min-height: 260px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-h .hl-in, .hero-badge, .hero-p, .hero-btns, .hero-scroll,
  .met, .svc-row, .tech-feat, .proc-step { opacity: 1 !important; transform: none !important; }
  .belt-rail, .cli-row { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   GUIÑOS DE COLOR — anticipan el color de cada sección interna.
   Bloque experimental, autocontenido y fácil de quitar para revertir.
   ═══════════════════════════════════════════════════════════ */
:root { --g-rojo: #E31610; --g-azul: #268DB5; --g-amar: #FFB900; --g-verde: #40AC47; }

/* Hero — punto que titila: VERDE */
.hero-badge i { background: var(--g-verde); box-shadow: 0 0 12px rgba(64, 172, 71, 0.55); }

/* Manifiesto — los 3 puntos: ROJO */
.stmt-dot { background: rgba(227, 22, 16, 0.2); }
.stmt-dot.active { background: var(--g-rojo); }

/* Servicios — detalle AZUL (muy limitado: eyebrow + flecha al hover) */
.svc .sec-tag { color: var(--g-azul); }
.svc-row:hover .svc-arrow { background: var(--g-azul); border-color: var(--g-azul); color: #fff; }

/* Tecnología — detalle AMARILLO (eyebrow + línea y nº de feature activa + caret) */
.tech .sec-tag { color: var(--g-amar); }
.feat-bar { background: var(--g-amar); }
.tech-feat.on .tech-feat-n { color: var(--g-amar); }
.t-cursor { background: var(--g-amar); }

/* Clientes — detalle VERDE (nombre al hover + ver todos) */
.cli-name:hover { color: var(--g-verde); }
.cli-more a:hover { color: var(--g-verde); }

/* Cómo trabajamos — detalle AZUL (línea de progreso + nodos encendidos) */
.proc .sec-tag { color: var(--g-azul); }
.proc-line i { background: var(--g-azul); }
.proc-head { background: var(--g-azul); box-shadow: 0 0 14px rgba(38, 141, 181, 0.9), 0 0 38px rgba(38, 141, 181, 0.35); }
.proc-step.lit::before { background: var(--g-azul); border-color: var(--g-azul); box-shadow: 0 0 10px rgba(38, 141, 181, 0.6); }
.proc-step.lit::after { border-color: rgba(38, 141, 181, 0.7); }
.proc-step.lit .proc-sn { color: var(--g-azul); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ═ éXo — asistente flotante · carita neural telemétrica (monocromo) ═ */
.chatw { position: fixed; right: 24px; bottom: 24px; z-index: 11000; }
.chatw-btn {
  position: relative; display: flex; align-items: flex-end; gap: 11px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
/* globo de diálogo telemétrico */
.exo-bubble {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  background: var(--bone); color: var(--ink);
  padding: 10px 15px; border-radius: 14px 14px 4px 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  text-align: left; white-space: nowrap; margin-bottom: 4px;
  transform-origin: bottom right;
  animation: exo-pop 0.6s var(--ease) 0.3s both;
}
.exo-bubble::after {
  content: ''; position: absolute; right: -5px; bottom: 8px;
  width: 11px; height: 11px; background: var(--bone);
  transform: rotate(45deg); border-radius: 0 0 3px 0;
}
.exo-line { display: flex; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.exo-type { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 0; vertical-align: bottom; animation: exo-typing 1s steps(13, end) 0.9s forwards; }
.exo-caret { display: inline-block; width: 2px; height: 13px; background: var(--ink); margin-left: 2px; flex-shrink: 0; animation: exo-blink 1s step-end infinite; }
.exo-line2 { font-size: 10.5px; font-weight: 300; color: #6e6b65; animation: exo-fade 0.5s ease 2s both; }
@keyframes exo-typing { to { max-width: 9em; } }
@keyframes exo-blink { 50% { opacity: 0; } }
@keyframes exo-pop { from { opacity: 0; transform: scale(0.72) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes exo-fade { from { opacity: 0; } to { opacity: 1; } }
/* carita neural — squircle, monocromo */
.exo-face {
  position: relative; flex-shrink: 0; width: 48px; height: 48px; border-radius: 15px;
  background: var(--ink); overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(242, 240, 235, 0.16);
  animation: exo-bob 5s ease-in-out infinite;
  transition: transform 0.35s var(--ease);
}
.chatw-btn:hover .exo-face { transform: translateY(-2px) scale(1.06); }
@keyframes exo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* línea de escaneo telemétrica */
.exo-scan { position: absolute; left: 0; right: 0; height: 9px; top: -9px; background: linear-gradient(180deg, transparent, rgba(242, 240, 235, 0.14), transparent); animation: exo-scanmove 3.4s linear infinite; }
@keyframes exo-scanmove { 0% { top: -9px; } 100% { top: 48px; } }
/* ojos */
.exo-eyes { position: absolute; top: 15px; left: 0; right: 0; display: flex; justify-content: center; gap: 13px; }
.exo-eye { width: 6px; height: 6px; border-radius: 50%; background: var(--bone); transform-origin: center; animation: exo-eye 5.5s infinite; }
@keyframes exo-eye { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(0.12); } }
/* enlace neural con pulso (reemplaza la sonrisa) */
.exo-sig { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: 24px; height: 1px; background: rgba(242, 240, 235, 0.3); }
.exo-pulse { position: absolute; top: 50%; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--bone); transform: translate(-50%, -50%); box-shadow: 0 0 6px rgba(242, 240, 235, 0.9); animation: exo-pulse 2.2s ease-in-out infinite; }
@keyframes exo-pulse { 0% { left: 0; opacity: 0.3; } 50% { left: 100%; opacity: 1; } 100% { left: 0; opacity: 0.3; } }
@media (max-width: 768px) {
  .chatw { right: 16px; bottom: 16px; }
  .exo-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .exo-face, .exo-eye, .exo-bubble, .exo-type, .exo-line2, .exo-scan, .exo-pulse { animation: none !important; }
  .exo-type { max-width: none; }
}
