/* =============================================================
   REDLABS — Sistema v3 · "Atelier"
   Editorial-tech: mucho aire, tipografía fina y chica, una voz
   monoespaciada para la letra técnica (índices, labels, nav).
   El isotipo es un objeto físico que se agarra y gira.
   Rojo #EE2B24 (intocable) · Tinta #0A0908 · Papel #FAF9F7
   ============================================================= */

/* ---------- fuente self-hosted (solo Instrument Sans) ---------- */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/instrument-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/instrument-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/instrument-sans-latin-700-normal.woff2') format('woff2'); }
/* Tomorrow: se usa SOLO para los números del proceso (más cuadrados) */
@font-face { font-family: 'Tomorrow'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/tomorrow-latin-700-normal.woff2') format('woff2'); }

:root {
  --red: #EE2B24;
  --red-hot: #FF4038;
  --ink: #050403;        /* mismo casi-negro del hero en toda la página */
  --ink-deep: #050403;
  --ink-soft: #131010;
  --paper: #FAF9F7;
  --paper-dim: #EFECE6;
  --tx-d: #F7F5F2;
  --tx-d-mut: rgba(247, 245, 242, .62);
  --tx-d-dim: rgba(247, 245, 242, .4);
  --tx-l: #16110F;
  --tx-l-mut: rgba(22, 17, 15, .56);
  --tx-l-dim: rgba(22, 17, 15, .34);
  --hair-d: rgba(247, 245, 242, .11);
  --hair-l: rgba(22, 17, 15, .12);

  --f-head: 'Instrument Sans', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --f-mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, 'Cascadia Code', 'Roboto Mono', monospace;

  /* ---- escala tipográfica · 6 tamaños de texto + 1 label mono ----
     Toda la página usa estos tokens; nada de tamaños sueltos. */
  --t-display: clamp(1.9rem, 4.6vw, 3.4rem);   /* hero · cta */
  --t-title:   clamp(1.6rem, 3.4vw, 2.55rem);  /* títulos de sección */
  --t-sub:     clamp(1.3rem, 2.4vw, 1.85rem);  /* subtítulos */
  --t-lead:    clamp(1.02rem, 1.4vw, 1.2rem);  /* preguntas · nombres */
  --t-body:    1rem;                            /* texto de lectura */
  --t-small:   .875rem;                         /* texto secundario */
  --t-label:   .68rem;                          /* labels monoespaciados */

  --spring: cubic-bezier(.34, 1.36, .64, 1);
  --out-expo: cubic-bezier(.16, 1, .3, 1);
  --smooth: cubic-bezier(.4, 0, .2, 1);

  --cut: 10px;
  --nav-h: 70px;
  --pad-x: clamp(22px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: .95rem;
  line-height: 1.66;
  font-weight: 400;
  letter-spacing: -.006em;
  background: var(--ink);
  color: var(--tx-d);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--red); outline-offset: 3px; }


.wrap { width: 100%; padding-inline: var(--pad-x); }
.mono {
  font-family: var(--f-mono); font-weight: 400;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  font-feature-settings: "tnum" 1;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--red); color: var(--paper); padding: .6em 1.2em;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  transition: top .25s var(--out-expo);
}
.skip-link:focus { top: 12px; }

/* WhatsApp flotante */
.wa-fab {
  position: fixed; z-index: 140;
  right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px);
  width: 54px; height: 54px;
  background: var(--red); color: var(--paper);
  display: grid; place-items: center;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 0 100%, 0 13px);
  box-shadow: 0 12px 30px rgba(238, 43, 36, .32);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: transform .5s var(--spring), background-color .3s ease, box-shadow .3s ease, opacity .4s ease;
}
.wa-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { background: var(--red-hot); transform: translateY(-3px); box-shadow: 0 16px 38px rgba(238, 43, 36, .4); }
.wa-fab:active { transform: translateY(1px) scale(.97); }
.wa-fab svg { width: 27px; height: 27px; fill: currentColor; }
@media (max-width: 560px) { .wa-fab { width: 50px; height: 50px; } .wa-fab svg { width: 25px; height: 25px; } }

/* progreso superior (fallback mobile) */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 150;
  height: 2px; width: 100%; background: var(--red);
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* =============================================================
   ÍNDICE lateral (derecha) — 00…04, minimal
   ============================================================= */
.index {
  position: fixed; z-index: 120;
  right: clamp(16px, 3vw, 34px); top: 50%; transform: translateY(-50%);
  display: none; flex-direction: column; gap: 1.05rem;
}
.index a {
  display: flex; align-items: center; gap: .7em; justify-content: flex-end;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em;
  color: var(--tx-d-mut); transition: color .3s ease;
}
.index a .ix-line { width: 14px; height: 1px; background: currentColor; transition: width .4s var(--out-expo), background-color .3s; opacity: .55; }
.index a .ix-num { font-variant-numeric: tabular-nums; }
.index a:hover, .index a.on { color: var(--tx-d); }
.index a.on .ix-line { width: 30px; background: var(--red); opacity: 1; }
/* sobre secciones de fondo claro (demo): números oscuros, línea SIEMPRE roja */
.index.on-light a { color: var(--tx-l-mut); }
.index.on-light a:hover, .index.on-light a.on { color: var(--tx-l); }
.index.on-light a.on .ix-line { background: var(--red); }

/* =============================================================
   NAV
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 130;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad-x);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .5s var(--smooth), border-color .5s var(--smooth), backdrop-filter .5s var(--smooth);
}
.nav.scrolled {
  background: rgba(5, 4, 3, .68);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--hair-d);
}
.nav-logo { display: flex; align-items: center; gap: .62rem; }
.nav-mark { width: 18px; height: auto; fill: var(--red); flex: none; transition: transform .6s var(--spring); }
.nav-logo:hover .nav-mark { transform: translateX(-3px); }
.nav-word { font-family: var(--f-mono); font-weight: 500; font-size: .92rem; letter-spacing: .32em; padding-left: .1em; }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.6vw, 2.6rem); }
.nav-links a:not(.btn) {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--tx-d-mut); position: relative; transition: color .3s ease;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--out-expo);
}
.nav-links a:not(.btn):hover { color: var(--tx-d); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

.nav-burger { display: none; flex-direction: column; gap: 6px; padding: 10px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--tx-d); transition: transform .35s var(--spring), opacity .2s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 125; background: var(--ink-deep);
  display: flex; flex-direction: column; justify-content: center; gap: .6rem;
  padding-inline: var(--pad-x); opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-link {
  font-family: var(--f-head); font-weight: 400; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.03em;
  padding: .22em 0; transform: translateX(-16px); opacity: 0;
  transition: transform .5s var(--spring), opacity .35s ease;
}
.mobile-link .mono { display: block; font-size: .6rem; color: var(--tx-d-dim); margin-bottom: -.2em; }
.mobile-menu.open .mobile-link { transform: none; opacity: 1; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: .05s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: .10s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: .15s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: .20s; }
.mobile-menu.open .mobile-link:nth-child(6) { transition-delay: .25s; }
.mobile-link-cta { color: var(--red); }

/* =============================================================
   BOTONES
   ============================================================= */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-weight: 500;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 1em 1.6em;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: transform .5s var(--spring), background-color .3s ease, border-color .3s ease, box-shadow .4s ease, color .3s ease;
  will-change: transform;
}
.btn::before {
  content: "<"; display: inline-block; overflow: hidden; width: 0; opacity: 0; transform: translateX(-6px);
  transition: width .4s var(--spring), opacity .25s ease, transform .4s var(--spring);
}
.btn:hover::before, .btn:focus-visible::before { width: .7em; opacity: 1; transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); transition-duration: .15s; }

.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-hot); box-shadow: 0 12px 34px rgba(238, 43, 36, .24); }
.btn-primary::before { color: var(--paper); }
.btn-ghost { border: 1px solid var(--hair-d); color: var(--tx-d); }
.btn-ghost:hover { border-color: var(--red); color: var(--paper); }
.btn-ghost::before { color: var(--red); }
.section-paper .btn-ghost { border-color: var(--hair-l); color: var(--tx-l); }
.btn-nav { background: var(--red); color: var(--paper); padding: .8em 1.3em; }
.btn-nav:hover { background: var(--red-hot); }

/* =============================================================
   ENCABEZADO de sección (índice editorial)
   ============================================================= */
.eyebrow {
  display: flex; align-items: center; gap: .8em;
  color: var(--tx-d-mut); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); flex: none; }
.section-paper .eyebrow { color: var(--tx-l-mut); }

/* =============================================================
   HERO
   ============================================================= */
.hero { position: relative; min-height: 100svh; background: var(--ink-deep); overflow: hidden; display: flex; flex-direction: column; }
.hero-canvas, .hero-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-canvas { opacity: 0; transition: opacity 1.4s ease .1s; cursor: grab; touch-action: pan-y; }
.hero-canvas.grabbing { cursor: grabbing; }
.hero-canvas.on { opacity: 1; }

/* Desktop: 50% texto (izquierda) · 50% fondo oscuro con el logo 3D flotando
   en el centro de esa mitad derecha. */
@media (min-width: 981px) {
  /* prefijo .hero → mayor especificidad que las reglas base de más abajo */
  .hero .hero-canvas { left: 50%; right: 0; width: 50%; }   /* el canvas interno sigue llenando este contenedor al 100% */
  /* el texto + botones ocupan (casi) toda la mitad izquierda, no apretados al margen */
  .hero .hero-content { max-width: 48%; }
  .hero .hero-title { font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 1.0; }
  .hero .hero-sub { max-width: 32em; font-size: 1.08rem; }
  .hero .hero-glow { left: 75%; right: auto; transform: translate(-50%, -50%); }
  .hero .hero-hint { right: 12%; }
}

/* resplandor de anclaje detrás del objeto */
.hero-glow {
  position: absolute; z-index: 1; pointer-events: none;
  right: 8%; top: 44%; width: min(60vw, 720px); aspect-ratio: 1; transform: translate(0, -50%);
  background: radial-gradient(circle, rgba(238,43,36,.16) 0%, rgba(238,43,36,.05) 34%, transparent 66%);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(135% 120% at 8% 88%, rgba(5,4,3,.9) 0%, rgba(5,4,3,.4) 38%, transparent 64%),
    linear-gradient(to right, rgba(5,4,3,.55) 0%, transparent 46%);
}

.hero-static { position: absolute; inset: 0; z-index: 1; display: none; }
.hero-static svg { position: absolute; right: 9vw; top: 44%; width: min(30vw, 360px); height: auto; transform: translateY(-50%); }
.hero.no3d .hero-static { display: block; }
.hero.no3d .hero-canvas { display: none; }
.hero.no3d .hero-hint { display: none; }

/* pointer-events:none deja pasar el arrastre al canvas 3D; el texto lo reactiva */
.hero-body { position: relative; z-index: 4; flex: 1; display: flex; align-items: center; pointer-events: none; }
.hero-content { padding: calc(var(--nav-h) + clamp(1rem, 3vh, 2rem)) var(--pad-x) clamp(1.5rem, 4vh, 2.5rem); max-width: 33em; pointer-events: auto; }
.hero-eyebrow { margin-bottom: 1.3rem; }
.hero-title {
  font-family: var(--f-head); font-weight: 600;
  font-size: var(--t-display);
  letter-spacing: -.035em; line-height: 1.05; margin-bottom: 1.4rem;
}
.hero-title em { font-style: normal; color: var(--red); }
.hero-sub { font-size: var(--t-body); line-height: 1.6; color: var(--tx-d-mut); max-width: 30em; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* pista de arrastre sobre el objeto */
.hero-hint {
  position: absolute; z-index: 4; right: clamp(24px, 8vw, 120px); top: 46%;
  display: flex; align-items: center; gap: .7em;
  color: var(--tx-d-dim); pointer-events: none;
  transition: opacity .6s ease; opacity: 0;
}
.hero-hint.show { opacity: 1; }
.hero-hint.hide { opacity: 0; }
.hero-hint-ring {
  width: 30px; height: 30px; border: 1px solid var(--tx-d-dim); border-radius: 50%;
  display: grid; place-items: center; position: relative;
}
.hero-hint-ring::before { content: ""; width: 9px; height: 9px; background: var(--red); border-radius: 50%; animation: hintPulse 2.4s var(--out-expo) infinite; }
@keyframes hintPulse { 0%,100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }

/* ticker inferior del stack */
.hero-ticker {
  position: relative; z-index: 4; border-top: 1px solid var(--hair-d);
  overflow: hidden; white-space: nowrap; padding: .85rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.hero-ticker-row { display: inline-flex; align-items: center; gap: 2.4rem; animation: ticker 34s linear infinite; }
.hero-ticker-row span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-d-mut); display: inline-flex; align-items: center; gap: 2.4rem; }
.hero-ticker-row span::after { content: ""; width: 5px; height: 5px; background: var(--red); transform: rotate(45deg); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   SECCIONES base
   ============================================================= */
.section-dark { background: var(--ink); color: var(--tx-d); }
.section-paper { background: var(--paper); color: var(--tx-l); }
main > section, .footer { scroll-margin-top: var(--nav-h); }

.rv { opacity: 0; transform: translateY(20px); }
.rv.in { opacity: 1; transform: none; transition: opacity .85s ease, transform 1s var(--out-expo); }

/* separador con nodo-diamante */
.sec-head { padding-top: clamp(84px, 12vh, 150px); }
.sec-head-rule { height: 1px; background: var(--hair-d); margin-bottom: clamp(2.2rem, 5vh, 3.6rem); position: relative; }
.section-paper .sec-head-rule { background: var(--hair-l); }
.sec-head-rule::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; background: var(--red); transform: translateY(-50%) rotate(45deg); }

/* ---------- SERVICIOS ---------- */
.svc { padding-bottom: clamp(84px, 12vh, 150px); }
.svc-title { font-family: var(--f-head); font-weight: 600; font-size: var(--t-title); letter-spacing: -.03em; line-height: 1.08; max-width: 18em; margin-bottom: clamp(3rem, 7vh, 5rem); }
.svc-title em { font-style: normal; color: var(--red); }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem) clamp(3rem, 8vw, 8rem); }
.svc-col { display: flex; flex-direction: column; }

/* Servicios centrado: título y contenido al centro; el eyebrow queda a la izquierda */
.svc .sec-head { text-align: center; }
.svc-title { margin-inline: auto; }
.svc-col { align-items: center; text-align: center; }
.svc-viz { margin-inline: auto; width: 100%; }
.svc-viz-flow svg, .svc-viz-web .vz-browser { margin-inline: auto; }
.svc-name { justify-content: center; }
.svc-name::before { content: none; }
.svc-col > p { margin-inline: auto; }
.svc-tools { justify-content: center; }
.svc-list { justify-items: center; }
.svc-list li { justify-content: center; }
.svc-idx { font-family: var(--f-head); font-weight: 600; font-size: var(--t-sub); letter-spacing: -.02em; color: var(--tx-d); margin-bottom: 1.4rem; }

/* ---- visuales animados de cada motor (mismo alto → los textos alinean) ---- */
.svc-viz { margin-bottom: 1.9rem; min-height: 210px; display: grid; place-items: center; }

/* Automatización: mini-flujo n8n */
.svc-viz-flow svg { width: 100%; max-width: 340px; height: auto; overflow: visible; animation: vzFloat 6s ease-in-out infinite alternate; }
.vz-wires path { stroke: rgba(247,245,242,.18); }
.vz-node rect { fill: var(--ink-soft); stroke: var(--hair-d); stroke-width: 1; }
.vz-node.vz-brain rect { fill: var(--red); stroke: none; }
.vz-pulse { fill: var(--red); filter: drop-shadow(0 0 5px rgba(238,43,36,.9)); }
@keyframes vzFloat { from { transform: translateY(-4px); } to { transform: translateY(4px); } }

/* Sitios: browser flotando en 3D */
.svc-viz-web { perspective: 900px; }
.vz-browser {
  width: min(310px, 100%); background: #fff; border-radius: 9px; overflow: hidden;
  box-shadow: 0 26px 50px rgba(0,0,0,.45);
  transform: rotateX(8deg) rotateY(-13deg);
  animation: vzBrowserFloat 6.5s ease-in-out infinite alternate;
}
.vz-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #EFECE7; border-bottom: 1px solid rgba(0,0,0,.06); }
.vz-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfc9c0; }
.vz-bar i:first-child { background: #EE2B24; }
.vz-url { margin-left: 8px; height: 8px; flex: 1; max-width: 130px; background: #fff; border-radius: 4px; }
.vz-screen { position: relative; padding: 14px; background: #fff; min-height: 148px; }
.vz-block { height: 34px; border-radius: 5px; background: linear-gradient(120deg, var(--red), #ff5a52); margin-bottom: 12px; }
.vz-ln { height: 7px; border-radius: 4px; background: #e6e2db; margin-bottom: 7px; }
.vz-ln.s { width: 62%; }
.vz-row { display: flex; gap: 8px; margin-top: 12px; }
.vz-row span { flex: 1; height: 30px; border-radius: 5px; background: #f0ede7; border: 1px solid #e6e2db; }
.vz-load { margin-top: 14px; height: 4px; border-radius: 3px; background: #eee7df; overflow: hidden; }
.vz-load b { display: block; height: 100%; width: 40%; background: var(--red); animation: vzLoad 4.2s ease-in-out infinite; }
.vz-cursor { position: absolute; width: 12px; height: 12px; left: 40px; top: 60px; border-radius: 50%; background: rgba(238,43,36,.18); border: 1.5px solid var(--red); animation: vzCursor 5s ease-in-out infinite; }
@keyframes vzBrowserFloat { from { transform: rotateX(9deg) rotateY(-15deg) translateY(-5px); } to { transform: rotateX(6deg) rotateY(-11deg) translateY(5px); } }
@keyframes vzLoad { 0% { width: 8%; } 60% { width: 100%; } 100% { width: 100%; } }
@keyframes vzCursor { 0% { left: 36px; top: 84px; } 45% { left: 150px; top: 40px; } 55% { transform: scale(.8); } 100% { left: 210px; top: 96px; } }
.svc-name {
  font-family: var(--f-head); font-weight: 500; font-size: var(--t-lead); letter-spacing: -.02em; margin-bottom: 1rem;
  color: var(--tx-d); display: flex; align-items: baseline;
}
.svc-name::before {
  content: "<"; color: var(--red); font-family: var(--f-mono); font-weight: 500;
  display: inline-block; overflow: hidden; width: 0; opacity: 0; transform: translateX(-8px);
  transition: width .45s var(--spring), opacity .25s ease, transform .45s var(--spring);
}
.svc-col:hover .svc-name::before { width: .72em; opacity: 1; transform: none; }
.svc-col > p { color: var(--tx-d-mut); margin-bottom: 0; max-width: 32em; }

.svc-tools { display: flex; flex-wrap: wrap; gap: .5rem .55rem; margin-top: auto; }
.tool-chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tx-d-mut); border: 1px solid var(--hair-d);
  padding: .42em .8em; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
  transition: transform .45s var(--spring), border-color .25s ease, color .25s ease;
}
.tool-chip:hover { transform: translateY(-2px); border-color: rgba(238,43,36,.5); color: var(--tx-d); }
.tool-dot { width: 6px; height: 6px; flex: none; transition: transform .45s var(--spring); }
.tool-chip:hover .tool-dot { transform: rotate(45deg) scale(1.15); }
.tool-chip[data-tool="n8"] .tool-dot { background: var(--red); }
.tool-chip[data-tool="wa"] .tool-dot { background: #3FA26C; }
.tool-chip[data-tool="ig"] .tool-dot { background: #B0487D; }
.tool-chip[data-tool="gm"] .tool-dot { background: #E9E4DC; }
.tool-chip[data-tool="sh"] .tool-dot { background: #2E7D53; }
.tool-chip[data-tool="fo"] .tool-dot { background: #7A6FA3; }
.tool-chip[data-tool="dr"] .tool-dot { background: #C7A94B; }
.tool-chip[data-tool="ca"] .tool-dot { background: #4A7BC4; }
.tool-chip[data-tool="no"] .tool-dot { background: #D8D4CE; }
.tool-chip[data-tool="mt"] .tool-dot { background: #4A66C4; }
.tool-chip[data-tool="dl"] .tool-dot { background: #3E8E8E; }
.tool-chip[data-tool="ai"] .tool-dot { background: #5AA79A; }
.tool-chip[data-tool="wh"] .tool-dot { background: #8B857C; }

.svc-list { display: grid; gap: .8rem; }
.svc-list li { display: flex; gap: .7em; color: var(--tx-d-mut); }
.svc-list .chev { color: var(--red); font-family: var(--f-mono); }

/* Flujos — sección con scroll horizontal fijado (el scroll vertical avanza en horizontal) */
.hflow { position: relative; background: var(--ink); }   /* la altura la fija el JS en desktop */
.hflow-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(70px, 10vh, 110px); }
.hflow-head { position: relative; z-index: 2; text-align: center; margin-bottom: clamp(2rem, 5vh, 3.4rem); }
/* riel horizontal detrás de las cards: se leen como nodos de un flujo */
.hflow-rail { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--hair-d); z-index: 0; pointer-events: none; }
/* barra de progreso del recorrido horizontal */
.hflow-progress { position: absolute; z-index: 2; left: var(--pad-x); right: var(--pad-x); bottom: clamp(38px, 7vh, 72px); height: 2px; background: var(--hair-d); }
.hflow-progress-fill { display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; will-change: transform; }
.hflow-title { font-family: var(--f-head); font-weight: 600; font-size: var(--t-title); letter-spacing: -.03em; line-height: 1.08; color: var(--tx-d); margin-inline: auto; max-width: 20em; }
.hflow-viewport { position: relative; z-index: 1; overflow: hidden; }
.hflow-track { display: flex; gap: 1.1rem; padding-left: var(--pad-x); will-change: transform; }
/* spacer final: el padding-right en un flex no cuenta para scrollWidth, así que dejamos aire con un ítem */
.hflow-end { flex: 0 0 max(var(--pad-x), 110px); align-self: stretch; }
.flow-card {
  flex: 0 0 auto; width: clamp(240px, 25vw, 300px); min-height: clamp(180px, 25vh, 210px);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--hair-d); background: var(--ink);
  padding: 1.4rem 1.5rem 1.35rem;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  transition: transform .55s var(--spring), border-color .35s ease, background-color .35s ease;
  backface-visibility: hidden;   /* estabiliza el borde durante el scroll horizontal */
}
.flow-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--out-expo);
}
.flow-card:hover { transform: translateY(-6px); border-color: rgba(238,43,36,.5); background: #120E0C; }
.flow-card:hover::after { transform: scaleX(1); }
.flow-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.flow-card-kicker { color: var(--red); padding-top: .3em; }
.flow-card-no {
  font-family: 'Tomorrow', var(--f-head); font-weight: 700; font-size: 2.3rem; line-height: .78;
  color: transparent; -webkit-text-stroke: 1px var(--hair-d);
  transition: -webkit-text-stroke-color .35s ease;
}
.flow-card:hover .flow-card-no { -webkit-text-stroke-color: rgba(238,43,36,.6); }
.flow-card-text { color: var(--tx-d); font-size: var(--t-body); line-height: 1.38; margin-bottom: auto; }
.flow-card-foot { display: flex; align-items: center; margin-top: 1.1rem; }
.flow-card-dots { display: inline-flex; gap: .45em; }
.flow-card-dots i { width: 8px; height: 8px; transform: rotate(45deg); display: block; }
.flow-card-dots [data-t="n8"] { background: var(--red); }
.flow-card-dots [data-t="wa"] { background: #3FA26C; }
.flow-card-dots [data-t="ig"] { background: #B0487D; }
.flow-card-dots [data-t="gm"] { background: #E9E4DC; }
.flow-card-dots [data-t="sh"] { background: #2E7D53; }
.flow-card-dots [data-t="ca"] { background: #4A7BC4; }
.flow-card-dots [data-t="dr"] { background: #C7A94B; }
.flow-card-dots [data-t="ai"] { background: #5AA79A; }
.flow-card-dots [data-t="wh"] { background: #8B857C; }

@media (max-width: 1023px) {
  .hflow { height: auto !important; }
  .hflow-sticky { position: static; height: auto; padding-block: clamp(70px, 10vh, 120px); }
  .hflow-viewport { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hflow-viewport::-webkit-scrollbar { display: none; }
  .hflow-track { transform: none !important; padding-right: var(--pad-x); }
  .hflow-rail, .hflow-progress { display: none; }
}

/* =============================================================
   PROCESO (scroll story: tinta → papel)
   ============================================================= */
.ct { height: 340vh; position: relative; }
.ct-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink-deep); display: flex; align-items: center; }
.ct-inner { width: 100%; padding-inline: var(--pad-x); }
.ct-eyebrow { transition: color .4s ease; }
.ct-sticky .ct-eyebrow, .ct-sticky h3, .ct-sticky p { color: var(--tx-d); }
.ct-sticky .ct-eyebrow { color: var(--tx-d-mut); }
.ct-sticky p { color: var(--tx-d-mut); }
.ct-sticky.light .ct-eyebrow { color: var(--tx-l-mut); }
.ct-sticky.light h3 { color: var(--tx-l); }
.ct-sticky.light p { color: var(--tx-l-mut); }
.ct-sticky.light .ct-num { -webkit-text-stroke-color: rgba(22,17,15,.24); }

.ct-layout { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ct-left { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.ct-num {
  font-family: 'Tomorrow', var(--f-head); font-weight: 700; font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: 1; letter-spacing: -.01em; color: transparent;
  -webkit-text-stroke: 1px rgba(247,245,242,.3); transition: -webkit-text-stroke-color .4s ease; min-width: 2.1em;
}
.ct-num.tick { animation: numTick .45s var(--spring); }
@keyframes numTick { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.ct-path { width: clamp(50px, 7vw, 100px); height: clamp(280px, 50vh, 520px); overflow: visible; }
.ct-path-bg { fill: none; stroke: currentColor; opacity: .14; stroke-width: 1.5; }
.ct-sticky .ct-path { color: var(--tx-d); }
.ct-sticky.light .ct-path { color: var(--tx-l); }
.ct-path-fill { fill: none; stroke: var(--red); stroke-width: 2.5; }
.ct-node { fill: transparent; stroke: currentColor; stroke-opacity: .34; stroke-width: 1.8; transition: fill .3s ease, transform .5s var(--spring); transform-box: fill-box; transform-origin: center; }
.ct-node.on { fill: var(--red); stroke: var(--red); stroke-opacity: 1; transform: rotate(45deg) scale(1.15); }

.ct-steps { position: relative; min-height: 14em; }
.ct-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .7s var(--out-expo); pointer-events: none; }
.ct-step.active { opacity: 1; transform: none; pointer-events: auto; }
.ct-step.passed { opacity: 0; transform: translateY(-28px); }
.ct-step .mono { display: block; margin-bottom: 1rem; color: var(--red); }
.ct-step h3 { font-family: var(--f-head); font-size: var(--t-title); font-weight: 400; letter-spacing: -.035em; margin-bottom: 1rem; transition: color .4s ease; }
.ct-step p { max-width: 34em; font-size: var(--t-body); transition: color .4s ease; }

/* =============================================================
   DEMO
   ============================================================= */
/* centrada y de alto acotado: chat y backstage scrollean internos, entra en una pantalla */
.demo { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 10px); padding-bottom: clamp(20px, 3vh, 44px); }
.demo .sec-head { padding-top: 0; }
.demo .sec-head .eyebrow { margin-bottom: 1rem; }
.demo-title { font-family: var(--f-head); font-weight: 600; font-size: var(--t-sub); letter-spacing: -.03em; line-height: 1.06; margin-bottom: .5rem; }
.demo-title em { font-style: normal; color: var(--red); }
.demo-lead { color: var(--tx-l-mut); max-width: 40em; margin-bottom: clamp(1rem, 2.2vh, 1.6rem); font-size: var(--t-small); }

.demo-grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: clamp(1.2rem, 3vw, 3rem); align-items: stretch; height: clamp(420px, 58vh, 500px); }

.phone { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--hair-l); box-shadow: 0 22px 60px rgba(22,17,15,.08); display: flex; flex-direction: column; height: 100%; }
.phone-top { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--hair-l); }
.phone-mark { width: 22px; fill: var(--red); flex: none; }
.phone-top-txt { display: flex; flex-direction: column; line-height: 1.3; }
.phone-top-txt strong { color: var(--tx-l); font-size: .9rem; font-weight: 600; letter-spacing: -.01em; }
.phone-top-txt span { color: var(--tx-l-mut); font-size: .74rem; display: flex; align-items: center; gap: .4em; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #3FA26C; display: inline-block; }

.chat { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; scrollbar-width: thin; scrollbar-color: var(--hair-l) transparent; }
.msg { max-width: 82%; padding: .56em .9em; font-size: var(--t-small); line-height: 1.45; border-radius: 12px; opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .3s ease, transform .5s var(--spring); }
.msg.in { opacity: 1; transform: none; }
.msg-bot { align-self: flex-start; background: rgba(22,17,15,.05); color: var(--tx-l); border-bottom-left-radius: 3px; }
.msg-user { align-self: flex-end; background: var(--red); color: var(--paper); border-bottom-right-radius: 3px; }
.msg-typing { display: inline-flex; gap: 5px; padding: .8em 1em; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(22,17,15,.38); animation: tdot 1.1s ease-in-out infinite; }
.msg-typing i:nth-child(2) { animation-delay: .18s; }
.msg-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes tdot { 0%,60%,100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-suggestions { display: flex; gap: .5rem; flex-wrap: wrap; padding: 0 1.1rem .8rem; }
.sug { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--hair-l); color: var(--tx-l-mut); padding: .5em .9em; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); transition: transform .45s var(--spring), border-color .25s ease, color .25s ease; }
.sug:hover { transform: translateY(-2px); border-color: var(--red); color: var(--tx-l); }
.sug:active { transform: scale(.96); }

.chat-input { display: flex; gap: .6rem; padding: .8rem 1.1rem 1rem; border-top: 1px solid var(--hair-l); }
.chat-input input { flex: 1; min-width: 0; background: rgba(22,17,15,.04); border: 1px solid var(--hair-l); color: var(--tx-l); padding: .6em .9em; border-radius: 8px; }
.chat-input input::placeholder { color: rgba(22,17,15,.34); }
.chat-send { flex: none; width: 40px; height: 40px; background: var(--red); opacity: .5; display: grid; place-items: center; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); }
.chat-send svg { width: 16px; fill: var(--paper); }

.backstage { background: #fff; border: 1px solid var(--hair-l); box-shadow: 0 22px 60px rgba(22,17,15,.08); color: var(--tx-l); padding: clamp(1.3rem, 2.4vw, 2.1rem); clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.backstage-title { font-family: var(--f-head); font-weight: 600; font-size: var(--t-lead); letter-spacing: -.02em; margin-bottom: 1.2rem; }
/* reserva lugar para las 4 tareas: aparecen sin pisar la planilla ni la nota */
.backstage-feed { display: grid; gap: .4rem; min-height: 10.6em; align-content: start; margin-bottom: 1rem; }
.bs-item { display: flex; align-items: center; gap: .8em; font-size: var(--t-small); font-weight: 500; background: var(--paper); border: 1px solid var(--hair-l); padding: .48em .85em; opacity: 0; transform: translateX(-14px); transition: opacity .3s ease, transform .55s var(--spring); }
.bs-item.in { opacity: 1; transform: none; }
.bs-item-sq { width: 9px; height: 9px; flex: none; background: var(--red); transform: rotate(45deg) scale(0); transition: transform .5s var(--spring) .1s; }
.bs-item.in .bs-item-sq { transform: rotate(45deg) scale(1); }
.bs-item time { margin-left: auto; color: var(--tx-l-mut); font-family: var(--f-mono); font-size: .72rem; font-variant-numeric: tabular-nums; }

.mini-sheet { background: var(--paper); color: var(--tx-l); border: 1px solid var(--hair-l); overflow: hidden; }
.mini-sheet-bar { display: flex; align-items: center; gap: .5em; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: .6em .9em; border-bottom: 1px solid var(--hair-l); color: var(--tx-l-mut); }
.mini-sheet-dot { width: 8px; height: 8px; background: #2E7D53; }
.mini-sheet table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.mini-sheet th, .mini-sheet td { text-align: left; padding: .5em .9em; border-bottom: 1px solid rgba(22,17,15,.08); white-space: nowrap; }
.mini-sheet th:last-child, .mini-sheet td:last-child { padding-right: 1.5em; }
.mini-sheet th { font-family: var(--f-mono); font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-l-mut); }
.mini-sheet td { font-variant-numeric: tabular-nums; }
.sheet-row-old { color: var(--tx-l-mut); }
.sheet-row-new { animation: rowIn .8s var(--out-expo); }
@keyframes rowIn { 0% { background: rgba(238,43,36,.14); } 100% { background: transparent; } }
.tag-done { display: inline-block; font-family: var(--f-mono); font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--red); border: 1px solid rgba(238,43,36,.4); padding: .18em .6em; }
.backstage-note { margin-top: auto; padding-top: 1rem; color: var(--tx-l-mut); font-size: var(--t-small); }

/* =============================================================
   FAQ (acordeón)
   ============================================================= */
.faq { padding-bottom: clamp(84px, 12vh, 150px); }
.faq .sec-head { text-align: center; }
.faq-title { font-family: var(--f-head); font-weight: 600; font-size: var(--t-title); letter-spacing: -.03em; line-height: 1.08; margin-inline: auto; }
.faq-list { max-width: 860px; margin-inline: auto; margin-top: clamp(2.4rem, 5.5vh, 4rem); }
.faq-item { border-top: 1px solid var(--hair-d); }
.faq-item:last-child { border-bottom: 1px solid var(--hair-d); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.1rem, 2.4vh, 1.6rem) 0;
  font-family: var(--f-head); font-weight: 500; font-size: var(--t-lead);
  letter-spacing: -.02em; color: var(--tx-d);
  transition: color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-plus { position: relative; width: 15px; height: 15px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--red); transition: transform .35s var(--spring), opacity .3s ease; }
.faq-plus::before { left: 0; top: 7px; width: 15px; height: 1.5px; }
.faq-plus::after { left: 7px; top: 0; width: 1.5px; height: 15px; }
.faq-item[open] .faq-plus::after { transform: scaleY(0); }
.faq-item[open] .faq-plus::before { background: var(--tx-d-mut); }
.faq-a { padding: 0 0 clamp(1.1rem, 2.4vh, 1.6rem); max-width: 44em; }
.faq-a p { color: var(--tx-d-mut); font-size: var(--t-body); }
.faq-a strong { color: var(--tx-d); font-weight: 600; }

/* =============================================================
   CTA
   ============================================================= */
.cta { padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(72px, 12vh, 140px); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; padding-inline: var(--pad-x); }
.cta-mark { width: clamp(72px, 10vw, 112px); margin-bottom: clamp(2rem, 5vh, 3rem); }
.cta-mark svg { overflow: visible; width: 100%; }
.cta-piece { fill: var(--red); }
.cta-title { font-family: var(--f-head); font-weight: 600; font-size: var(--t-display); letter-spacing: -.035em; line-height: 1.06; margin-bottom: 1.2rem; }
.cta-title em { font-style: normal; color: var(--red); }
.cta-sub { color: var(--tx-d-mut); font-size: var(--t-body); max-width: 34em; margin-bottom: 2.6rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.cta-form { display: grid; gap: 1.1rem; }
.cta-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cta-form label { display: grid; gap: .5rem; font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-d-mut); }
.cta-form input, .cta-form textarea { font-family: var(--f-body); font-size: var(--t-body); letter-spacing: -.006em; text-transform: none; background: var(--ink-soft); border: 1px solid var(--hair-d); color: var(--tx-d); padding: .74em .95em; border-radius: 0; resize: vertical; transition: border-color .25s ease; }
.cta-form input::placeholder, .cta-form textarea::placeholder { color: rgba(247,245,242,.3); }
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--red); }
.cta-form .btn { justify-self: start; }
.cta-form-status { min-height: 1.5em; font-size: var(--t-small); color: var(--tx-d-mut); }
.cta-form-status.ok { color: var(--tx-d); font-weight: 500; }
.cta-form-status.ok::before { content: "< "; color: var(--red); font-family: var(--f-mono); }

/* =============================================================
   FOOTER — mitad formulario, mitad marca/contacto
   ============================================================= */
.footer { background: var(--ink-deep); border-top: 1px solid var(--hair-d); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; }
.footer-col { padding: clamp(2.2rem, 4.6vh, 3.4rem) clamp(2rem, 5vw, 4rem); }
.footer-form-col { }
.footer-info-col { border-left: 1px solid var(--hair-d); display: flex; flex-direction: column; }
.footer-head { color: var(--tx-d-mut); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8em; }
.footer-head::before { content: ""; width: 22px; height: 1px; background: var(--red); }

.footer-logo { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.footer-tag { color: var(--tx-d-mut); font-size: var(--t-small); max-width: 22em; margin-bottom: 2.2rem; }
.footer-contact { display: grid; gap: .8rem; margin-bottom: 2.4rem; }
.footer-contact a {
  display: flex; align-items: baseline; gap: .7em;
  font-size: var(--t-small); color: var(--tx-d-mut);
  transition: color .25s ease, padding-left .35s var(--out-expo);
}
.footer-contact a::before { content: attr(data-k); font-size: var(--t-small); color: var(--tx-d-mut); width: 5.5em; flex: none; }
.footer-contact a:hover { color: var(--red); padding-left: .3rem; }
.footer-loc { display: flex; align-items: baseline; gap: .7em; font-size: var(--t-small); color: var(--tx-d-mut); }
.footer-loc::before { content: attr(data-k); font-size: var(--t-small); color: var(--tx-d-mut); width: 5.5em; flex: none; }
.footer-legal { margin-top: auto; padding-top: 1.6rem; color: var(--tx-d-dim); font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; }

/* footer chiquito de una línea, de esquina a esquina */
.subfooter {
  background: var(--ink-deep); border-top: 1px solid var(--hair-d);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem var(--pad-x);
}
.subfooter span { color: var(--tx-d-dim); font-size: .62rem; letter-spacing: .12em; }
@media (max-width: 560px) { .subfooter { justify-content: center; text-align: center; } .subfooter span:last-child { display: none; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (min-width: 1024px) {
  .index { display: flex; }
  .scroll-progress { display: none; }
}
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .svc-viz { min-height: 0; margin-bottom: 1.4rem; }   /* apilado: sin reserva de alto */
  .demo { min-height: auto; }
  .demo-grid { grid-template-columns: 1fr; height: auto; }
  .phone { max-width: 440px; height: auto; }
  .chat { min-height: 240px; }
  .backstage { height: auto; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 720px) {
  .hero-content { padding-bottom: 54px; }
  .hero-static svg { right: 50%; top: 30%; transform: translate(50%, -50%); width: 46vw; }
  .hero-hint { display: none; }
  .ct { height: 300vh; }
  .ct-layout { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  .ct-left { gap: 1.2rem; }
  .ct-num { font-size: 3rem; min-width: auto; }
  .ct-path { display: none; }
  .ct-steps { min-height: 17em; }
  .cta-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-info-col { border-left: 0; border-top: 1px solid var(--hair-d); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .ct { height: auto; }
  .ct-sticky { position: static; height: auto; padding: clamp(84px, 12vh, 150px) 0; }
  .ct-steps { min-height: 0; display: grid; gap: 3rem; }
  .ct-step { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .ct-left { display: none; }
  .hero-ticker-row { animation: none; }
  .scroll-progress, .index { display: none; }
  /* flujos: sin pin, scroll horizontal normal */
  .hflow { height: auto !important; }
  .hflow-sticky { position: static; height: auto; padding-block: clamp(70px, 10vh, 120px); }
  .hflow-viewport { overflow-x: auto; }
  .hflow-track { transform: none !important; padding-right: var(--pad-x); }
  .hflow-rail, .hflow-progress { display: none; }
}
