/* ─────────────────────────────────────────────────────────────
   IATASKIA — sistema visual
   Navy muy oscuro · azul eléctrico · cian · blanco · grises.
   Sin librerías. Las animaciones solo usan transform y opacity.
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #050b1a;
  --bg-2: #08122a;
  --panel: #0a1730;
  --line: rgba(150, 178, 230, 0.14);
  --line-2: rgba(150, 178, 230, 0.28);
  --text: #f4f7fc;
  --t2: #b9c5da;
  --muted: #7f8eaa;
  --blue: #2b6bff;
  --blue-2: #5a8dff;
  --cyan: #3fd5f2;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.dim { color: var(--muted); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none; }

/* Botones: principal (azul sólido) · secundario (contorno) · enlace con flecha */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 60px; padding: 0 30px 0 32px; border-radius: 8px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.012em; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.btn-solid {
  background: linear-gradient(180deg, #3d7bff, var(--blue)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 12px 32px -12px rgba(43, 107, 255, 0.75);
}
.btn-solid:hover { background: linear-gradient(180deg, #5089ff, #3473ff); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 18px 40px -14px rgba(43, 107, 255, 0.9); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-line { border: 2px solid var(--cyan); background: rgba(63, 213, 242, 0.1); color: #fff; padding: 0 30px; }
.btn-line:hover { background: rgba(63, 213, 242, 0.2); transform: translateY(-1px); }
/* Flecha que acompaña al CTA principal y avanza al pasar el ratón */
.btn-ar { position: relative; flex: none; width: 15px; height: 12px; transition: transform 0.25s var(--ease); }
.btn-ar::before { content: ''; position: absolute; left: 0; right: 1px; top: 5.25px; height: 1.5px; background: currentColor; }
.btn-ar::after { content: ''; position: absolute; right: 1px; top: 2px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.btn:hover .btn-ar { transform: translateX(3px); }
/* CTA de cabecera: misma familia, tamaño propio */
.btn-hd { height: 50px; padding: 0 20px 0 24px; gap: 10px; font-size: 15.5px; }
.btn-xs { height: 44px; padding: 0 18px; font-size: 14.5px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16.5px; font-weight: 500; color: var(--text); }
.link-arrow::after { content: ''; width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 0 0 transparent; position: relative; transition: transform 0.25s var(--ease); }
.link-arrow::before { content: ''; order: 2; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); margin-left: -17px; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover::before { transform: translateX(4px) rotate(45deg); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }

/* ───────────── HEADER ───────────── */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 82px; padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.hd.scrolled { background: rgba(5, 11, 26, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-sym { display: block; width: auto; height: 32px; }
.logo-txt { display: block; width: auto; height: 15px; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav a { font-size: 14px; color: var(--t2); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.hd-end { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.25s var(--ease); }
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  padding: 96px var(--pad) 32px; display: flex; flex-direction: column; gap: 28px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 30px; letter-spacing: -0.03em; font-weight: 500; }
.menu nav a span { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: 0.06em; }
.menu-meta { margin-top: auto; font-size: 13.5px; color: var(--muted); }

/* ───────────── HERO ───────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(48px, 7vh, 96px);
  padding: clamp(120px, 19vh, 200px) 0 clamp(32px, 5vh, 56px);
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 52% at 84% 0%, rgba(43, 107, 255, 0.2), transparent 70%),
    repeating-linear-gradient(90deg, rgba(150, 178, 230, 0.05) 0 1px, transparent 1px calc(100% / 12));
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-title {
  margin-top: clamp(20px, 3vh, 32px);
  font-size: clamp(2.7rem, 7.5vw, 7.6rem); line-height: 0.96; letter-spacing: -0.045em; font-weight: 500;
  text-wrap: balance;
}
.hero-foot {
  margin-top: clamp(28px, 5vh, 52px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px;
}
.lede { max-width: 30em; font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.45; color: var(--t2); }

/* Visual del hero: el recorrido de un dato dentro de la empresa */
.sys { position: relative; }
.sys-rail { position: relative; height: 9px; overflow: hidden; background: linear-gradient(var(--line-2), var(--line-2)) center / 100% 1px no-repeat; }
.sys-packet { position: absolute; inset: 0; transform: translateX(-100%); }
.sys-packet::before { content: ''; position: absolute; right: 0; top: 4px; width: 180px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan)); }
.sys-packet::after { content: ''; position: absolute; right: 0; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.sys-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.st { position: relative; padding: 18px 18px 0 0; opacity: 0.52; }
.st::before { content: ''; position: absolute; left: 0; top: -9px; width: 1px; height: 9px; background: var(--line-2); }
.st-k { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; white-space: nowrap; text-transform: uppercase; color: var(--t2); }
.st-v { margin-top: 14px; min-height: 92px; font-family: var(--mono); font-size: 12px; color: var(--t2); position: relative; }

.f-list span { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
.f-steps span, .f-model span { display: block; position: relative; padding: 5px 0 5px 16px; }
.f-steps span::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border: 1px solid var(--cyan); border-radius: 50%; }
.f-steps span + span::after { content: ''; position: absolute; left: 3px; top: -8px; width: 1px; height: 18px; background: var(--line-2); }
.f-model { border-left: 1px solid var(--blue); padding-left: 0; overflow: hidden; }
.f-model span { padding-left: 12px; }
.f-model i { position: absolute; left: 0; right: 12px; top: 0; height: 28px; background: linear-gradient(rgba(43, 107, 255, 0), rgba(43, 107, 255, 0.28)); border-bottom: 1px solid var(--blue-2); transform: translateY(-30px); }
.f-checks span { display: block; position: relative; padding: 5px 0 5px 18px; }
.f-checks span::before { content: ''; position: absolute; left: 1px; top: 9px; width: 8px; height: 4px; border-left: 1.5px solid var(--cyan); border-bottom: 1.5px solid var(--cyan); transform: rotate(-45deg); }
.f-bars { display: flex; align-items: flex-end; gap: 5px; height: 78px; min-height: 0; padding-right: 8px; max-width: 150px; }
.f-bars i { flex: 1; height: var(--h); background: var(--blue); transform-origin: bottom; }
.f-bars i:last-child { background: var(--cyan); }
.f-result strong { display: block; font-family: var(--sans); font-size: 19px; letter-spacing: -0.02em; font-weight: 500; color: var(--text); padding-top: 4px; }
.f-result span { display: block; margin-top: 6px; }

.sys.in .sys-packet { animation: packet-x 12s linear infinite; }
.sys.in .st { animation: stage 12s linear infinite; animation-delay: calc(var(--i) * 2s); }
.sys.in .st-k { animation: stage-k 12s linear infinite; animation-delay: calc(var(--i) * 2s); }
.sys.in .st::before { animation: stage-tick 12s linear infinite; animation-delay: calc(var(--i) * 2s); }
.sys.in .f-model i { animation: scan 2.4s ease-in-out infinite; }
@keyframes packet-x { to { transform: translateX(0); } }
@keyframes packet-y { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes stage { 0% { opacity: 0.52; } 3%, 17% { opacity: 1; } 24%, 100% { opacity: 0.52; } }
@keyframes stage-k { 0% { color: var(--t2); } 3%, 17% { color: var(--cyan); } 24%, 100% { color: var(--t2); } }
@keyframes stage-tick { 0% { background: var(--line-2); } 3%, 17% { background: var(--cyan); } 24%, 100% { background: var(--line-2); } }
@keyframes scan { 0% { transform: translateY(-30px); } 100% { transform: translateY(92px); } }

/* ───────────── PROPÓSITO · declaración de marca ───────────── */
.purpose {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(96px, 16vh, 200px) 0 clamp(96px, 14vh, 180px);
}
/* Luz muy contenida detrás de la frase destacada */
.purpose::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: -12%; bottom: -30%; width: 80%; height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(43, 107, 255, 0.16), transparent 70%);
}
/* El recorrido del hero continúa hasta la declaración */
.purpose-lead { display: block; width: 1px; height: clamp(72px, 14vh, 150px); margin-bottom: 26px; background: linear-gradient(transparent, var(--cyan)); position: relative; }
.purpose-lead::after { content: ''; position: absolute; left: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.statement {
  margin-top: clamp(30px, 5vh, 60px);
  font-size: clamp(2.5rem, 6.2vw, 7rem); line-height: 1.01; letter-spacing: -0.047em; font-weight: 500;
}
.statement .s1, .statement .s2 { display: block; text-wrap: balance; }
.statement .s2 { margin-top: 0.42em; }
.statement em { position: relative; display: inline-block; font-style: normal; color: var(--cyan); padding-bottom: 0.14em; }
.statement em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: max(2px, 0.045em);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.statement.done em::after { transform: scaleX(1); }
.statement .w { opacity: 0.14; transition: opacity 0.5s linear; }
.statement .w.on { opacity: 1; }
/* Segunda línea de la declaración: más categoría que un párrafo */
.purpose-sub {
  margin-top: clamp(36px, 6vh, 72px); max-width: 30ch;
  font-size: clamp(1.4rem, 2.35vw, 2.25rem); line-height: 1.28; letter-spacing: -0.022em; font-weight: 400; color: var(--t2);
  text-wrap: balance;
}
/* Vídeo: ventana audiovisual con marco propio, claramente visible */
.pv {
  position: relative; width: 100%; margin: clamp(48px, 8vh, 104px) 0 0;
  aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--bg);
  box-shadow: 0 60px 140px -60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(63, 213, 242, 0.06);
  /* Safari: un vídeo dentro de un contenedor redondeado con overflow:hidden puede pintarse
     en negro; forzar capa propia y máscara lo evita. */
  isolation: isolate; transform: translateZ(0); -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.pv-video, .pv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pv-canvas { transition: opacity 0.5s linear; }
.pv-canvas.out { opacity: 0; }
/* «IA que hace avanzar tu negocio»: cierre de la declaración, centrado y a gran escala */
.purpose-ia { display: grid; justify-items: center; text-align: center; padding-top: clamp(56px, 9vh, 120px); }
.ia-title { font-size: clamp(2.5rem, 6vw, 6.4rem); line-height: 1; letter-spacing: -0.047em; font-weight: 500; text-wrap: balance; }
.ia-text { margin-top: clamp(22px, 3.5vh, 36px); max-width: 34ch; font-size: clamp(1.3rem, 2.05vw, 1.95rem); line-height: 1.34; letter-spacing: -0.018em; color: var(--t2); text-wrap: balance; }
.purpose-ia .btn { margin-top: clamp(36px, 6vh, 56px); }

/* ───────────── QUÉ CONSTRUIMOS ───────────── */
.build { padding-top: clamp(80px, 12vh, 150px); border-top: 1px solid var(--line); }
.build-head { padding-bottom: clamp(56px, 9vh, 120px); }
.build-head .h-xl { max-width: 19ch; }
.h-xl { margin-top: clamp(20px, 3vh, 32px); font-size: clamp(2.1rem, 4.9vw, 5rem); line-height: 1; letter-spacing: -0.042em; font-weight: 500; text-wrap: balance; }

.cap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 120px); align-items: center;
  padding: clamp(52px, 8vw, 116px) 0; border-top: 1px solid var(--line);
}
.cap-n { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.06em; }
.cap h3 { margin-top: 18px; font-size: clamp(1.8rem, 3.5vw, 3.35rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 500; }
.cap-text p { margin-top: 20px; max-width: 30em; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--t2); }
.cap-text .cap-note { color: var(--text); }
.cap-text .link-arrow, .cap-text .btn { margin-top: 32px; }
.cap-fig { font-family: var(--mono); font-size: 12px; color: var(--t2); min-width: 0; }
.fig-k { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fig-foot { margin-top: 18px; text-align: center; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }

/* Elementos que entran al llegar a la vista */
.cap .arch-row, .cap .ai-in li, .cap .ai-out li, .cap .path li, .cap .lane { opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.cap.in .arch-row, .cap.in .ai-in li, .cap.in .ai-out li, .cap.in .path li, .cap.in .lane { opacity: 1; transform: none; }
.cap :is(.arch-row, li, .lane):nth-child(2) { --d: 1; }
.cap :is(.arch-row, li, .lane):nth-child(3) { --d: 2; }
.cap :is(.arch-row, li):nth-child(4) { --d: 3; }
.cap :is(.arch-row, li):nth-child(5) { --d: 4; }
.cap .ai-out li { --o: 4; transition-delay: calc((var(--d, 0) + 5) * 110ms); }

/* 01 · arquitectura por capas */
.arch { position: relative; display: grid; gap: 10px; padding-right: 34px; }
.arch-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); background: rgba(150, 178, 230, 0.03); }
.arch-k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.arch-m { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-m b { font-weight: 400; padding: 6px 10px; border: 1px solid var(--line-2); color: var(--text); }
.arch-flow { position: absolute; right: 12px; top: 0; bottom: 0; width: 9px; overflow: hidden; background: linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat; }
.arch-flow::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent calc(100% - 70px), var(--cyan)) center / 1px 100% no-repeat; transform: translateY(-100%); }
.cap.in .arch-flow::after { animation: packet-y 3.2s linear infinite; }

/* 02 · datos → modelo → decisión */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.ai li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ai-col .fig-k, .ai-model .fig-k { margin-bottom: 10px; }
.ai-out li { color: var(--text); }
.ai-out li.hl { color: var(--cyan); border-bottom-color: var(--cyan); }
.ai-model { position: relative; margin-inline: clamp(18px, 3vw, 44px); text-align: center; }
.ai-model::before, .ai-model::after { content: ''; position: absolute; top: calc(50% + 11px); width: clamp(18px, 3vw, 44px); height: 1px; background: var(--line-2); }
.ai-model::before { right: 100%; }
.ai-model::after { left: 100%; }
.ai-core { width: 104px; height: 104px; border: 1px solid var(--blue); display: flex; align-items: center; justify-content: center; gap: 7px; background: rgba(43, 107, 255, 0.07); }
.ai-core i { width: 3px; height: 44px; background: var(--blue-2); transform: scaleY(0.3); }
.ai-core i:nth-child(3) { background: var(--cyan); }
.cap.in .ai-core i { animation: think 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--n) * 0.17s); }
.ai-core i:nth-child(1) { --n: 0; } .ai-core i:nth-child(2) { --n: 2; } .ai-core i:nth-child(3) { --n: 4; } .ai-core i:nth-child(4) { --n: 1; } .ai-core i:nth-child(5) { --n: 3; }
@keyframes think { to { transform: scaleY(1); } }

/* 03 · manual → automatizado */
.auto { display: grid; gap: 34px; }
.lane .fig-k { margin-bottom: 18px; }
.lane-manual ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lane-manual li { position: relative; padding-top: 18px; color: var(--muted); border-top: 1px dashed var(--line-2); }
.lane-manual li::before { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted); background: var(--bg); }
.lane-line { display: flex; align-items: center; gap: 14px; color: var(--text); }
.lane-line span { padding: 8px 12px; border: 1px solid var(--line-2); }
.lane-line span:last-child { border-color: var(--cyan); color: var(--cyan); }
.lane-line i { position: relative; flex: 1; height: 9px; overflow: hidden; background: linear-gradient(var(--blue), var(--blue)) center / 100% 1px no-repeat; }
.lane-line i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(100% - 90px), var(--cyan)) center / 100% 3px no-repeat; transform: translateX(-100%); }
.cap.in .lane-line i::after { animation: packet-x 1.7s var(--ease) infinite; }

/* 04 · sistemas conectados por API */
.hub { display: block; width: 100%; max-width: 580px; margin-inline: auto; height: auto; }
.hub-lines path { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 7; }
.cap.in .hub-lines path { animation: dash 1.4s linear infinite; }
.cap.in .hub-lines path:nth-child(n + 4) { animation-direction: reverse; }
@keyframes dash { from { stroke-dashoffset: 10; } to { stroke-dashoffset: 0; } }
.hub-nodes rect { fill: var(--bg); stroke: var(--line-2); }
.hub-nodes text { fill: var(--t2); font-family: var(--mono); font-size: 10px; text-anchor: middle; }
.hub-core rect { fill: #0b1c44; stroke: var(--cyan); }
.hub-core text { fill: var(--text); font-family: var(--mono); font-size: 13px; text-anchor: middle; letter-spacing: 0.08em; }

/* 05 · consultoría: de entender a acompañar */
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 0; }
.path li { position: relative; padding: 22px 16px 0 0; border-top: 1px solid var(--line-2); }
.path li::before { content: ''; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.path li::after { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 260ms + 200ms); }
.cap.in .path li::after { transform: scaleX(1); }
.path li:nth-child(6) { --d: 5; }
.path li span { display: block; font-family: var(--sans); font-size: clamp(15px, 1.35vw, 19px); letter-spacing: -0.02em; font-weight: 500; color: var(--text); }
.path li small { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* ───────────── REPUORBIT ───────────── */
.repu { padding: clamp(90px, 14vh, 170px) 0 clamp(80px, 12vh, 140px); background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.repu-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(36px, 7vw, 120px); align-items: end; }
.repu-head .eyebrow, .repu-title { grid-column: 1 / -1; }
.repu-title { margin-top: 14px; font-size: clamp(3.6rem, 13.2vw, 13rem); line-height: 0.92; letter-spacing: -0.055em; font-weight: 500; }
.repu-claim .dim { white-space: nowrap; }
.repu-claim { margin-top: clamp(28px, 5vh, 56px); grid-row: 3 / span 2; align-self: start; font-size: clamp(1.9rem, 3.8vw, 3.6rem); line-height: 1.03; letter-spacing: -0.038em; font-weight: 500; }
.repu-sub { margin-top: clamp(28px, 5vh, 56px); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.5; color: var(--t2); max-width: 31em; }
.repu-head .cta { margin-top: 28px; }
.sig { font-size: 14px; color: var(--t2); }

.tour { position: relative; margin-top: clamp(56px, 9vh, 104px); }
.tour-frame { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #0c0c11; box-shadow: 0 60px 140px -60px rgba(0, 0, 0, 0.9); opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.tour.in .tour-frame { opacity: 1; transform: none; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: #101119; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.win-bar span { margin-left: 16px; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: #8b93a7; }
.win-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #c7cddb; white-space: nowrap; }
.win-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.tour-body { display: grid; grid-template-columns: 228px minmax(0, 1fr); }
/* La navegación hace de barra lateral de la aplicación */
.tour-nav { display: flex; flex-direction: column; gap: 3px; padding: 18px 12px; border-right: 1px solid rgba(255, 255, 255, 0.07); background: #0b0b10; }
.tour-brand { padding: 4px 12px 18px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.tour-tab { position: relative; display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 14px; border-radius: 8px; overflow: hidden; text-align: left; font-size: 15px; font-weight: 500; color: #9aa2b4; transition: background-color 0.2s, color 0.2s; }
.tour-tab:hover { background: rgba(255, 255, 255, 0.05); color: #e8ebf2; }
.tour-tab[aria-selected='true'] { background: rgba(43, 107, 255, 0.18); color: #fff; }
.tour-tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; }
.tour.auto .tour-tab[aria-selected='true']::after { animation: tour-fill var(--tour-time, 6s) linear; }
@keyframes tour-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-stack { position: relative; aspect-ratio: 1300 / 771; }
.tour-stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity 0.55s linear; }
.tour-stack img.on { opacity: 1; }
/* Qué estás viendo: la función activa, explicada debajo de la ventana */
.tour-cap { margin-top: 30px; max-width: 40ch; padding-right: 260px; box-sizing: content-box; font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.38; letter-spacing: -0.015em; color: var(--t2); }
.tour-cap-t { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--cyan); }
.shot-phone { position: absolute; right: -18px; bottom: -36px; z-index: 3; width: clamp(150px, 15vw, 214px); margin: 0; border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; aspect-ratio: 390 / 790; background: #000; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px var(--bg-2); }
.shot-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ───────────── FOOTER ───────────── */
.ft { border-top: 1px solid var(--line); background: radial-gradient(70% 60% at 85% 0%, rgba(43, 107, 255, 0.12), transparent 70%), var(--bg); padding: clamp(80px, 13vh, 150px) 0 120px; color: var(--t2); }
.ft-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 8vw, 140px); align-items: center; padding-bottom: clamp(56px, 9vh, 104px); border-bottom: 1px solid var(--line); }
.ft-logo { display: block; width: clamp(170px, 17vw, 250px); height: auto; }
.ft-claim { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 4vh, 40px); }
.ft-title { font-size: clamp(2.3rem, 5.2vw, 5.4rem); line-height: 1; letter-spacing: -0.047em; font-weight: 500; color: var(--text); text-wrap: balance; }
.ft-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: clamp(48px, 8vh, 88px) 0; }
.ft-nav div { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ft-h { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ft-nav a { font-size: 16.5px; color: var(--t2); transition: color 0.2s; }
.ft-nav a:hover, .ft-base a:hover { color: var(--text); }
.ft-base { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ───────────── CONTACTO FLOTANTE ─────────────
   WhatsApp con Lucía: mismo componente visual que RepuOrbit (pastilla verde,
   avatar con insignia de WhatsApp, nombre y acción). El asistente IA, discreto al lado. */
.fab { position: fixed; z-index: 60; right: clamp(16px, 3vw, 26px); bottom: clamp(16px, 3vw, 26px); display: flex; align-items: center; gap: 12px; transition: opacity 0.2s, transform 0.2s; }
.menu-open .fab { opacity: 0; pointer-events: none; transform: translateY(8px); }
.wa-fab { display: inline-flex; align-items: center; gap: 11px; padding: 8px 20px 8px 8px; border-radius: 999px; background: #25d366; box-shadow: 0 16px 38px -12px rgba(37, 211, 102, 0.6); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 24px 52px -12px rgba(37, 211, 102, 0.72); }
.wa-ico { position: relative; flex: none; line-height: 0; }
.wa-av { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #eaf0f8; }
.wa-badge { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28); }
.wa-text { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.wa-name { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.94); }
.wa-main { font-size: 15px; font-weight: 700; color: #fff; }
.fab-ai { position: relative; flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 23, 48, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.85); transition: border-color 0.2s, transform 0.2s; }
.fab-ai img { width: 27px; height: auto; }
.fab-ai:hover { border-color: var(--cyan); transform: translateY(-2px); }
.fab-tip { position: absolute; right: 0; bottom: calc(100% + 10px); padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(10, 23, 48, 0.96); font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--text); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.fab-ai:hover .fab-tip, .fab-ai:focus-visible .fab-tip { opacity: 1; transform: none; }

/* ───────────── ASISTENTE ───────────── */
.as-mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #0b1c44; }
.as-mark img { width: 25px; height: auto; }

.as {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 404px; height: min(660px, calc(100dvh - 40px));
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
  animation: as-in 0.28s var(--ease);
}
.as[hidden] { display: none; }
@keyframes as-in { from { opacity: 0; transform: translateY(12px); } }
.as-hd { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.as-id { flex: 1; min-width: 0; }
.as-hd p { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.as-hd small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--t2); }
.as-x { flex: none; width: 40px; height: 40px; position: relative; border-radius: 6px; }
.as-x:hover { background: rgba(150, 178, 230, 0.1); }
.as-x::before, .as-x::after { content: ''; position: absolute; left: 12px; right: 12px; top: 19px; height: 1.5px; background: var(--t2); transform: rotate(45deg); }
.as-x::after { transform: rotate(-45deg); }
.as-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; line-height: 1.5; }
.m { max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; }
.m-a { color: var(--text); padding-left: 12px; border-left: 1px solid var(--cyan); }
.m-u { align-self: flex-end; padding: 9px 12px; border-radius: 10px; background: var(--blue); color: #fff; }
.m-first { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; border: 0; padding: 0; }
.m-note { font-size: 12.5px; color: var(--muted); border: 0; padding: 0; }
.typing { display: flex; gap: 5px; padding: 6px 0 6px 12px; border-left: 1px solid var(--cyan); }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--t2); animation: blink 1s ease-in-out infinite alternate; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { from { opacity: 0.2; } to { opacity: 1; } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(150, 178, 230, 0.04); text-align: left; font-size: 14.5px; font-weight: 500; line-height: 1.25; color: var(--text); transition: border-color 0.2s, background-color 0.2s; }
.opts button::after { content: ''; width: 6px; height: 6px; flex: none; border-top: 1.5px solid var(--cyan); border-right: 1.5px solid var(--cyan); transform: rotate(45deg); transition: transform 0.2s var(--ease); }
.opts button:hover { border-color: var(--cyan); background: rgba(63, 213, 242, 0.07); }
.opts button:hover::after { transform: translateX(3px) rotate(45deg); }
.as-cta { align-self: flex-start; }
.lead { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line-2); border-radius: 8px; }
.lead label { display: grid; gap: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead input, .lead textarea { font: 400 14.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 6px 0; width: 100%; resize: none; }
.lead input:focus, .lead textarea:focus { outline: 0; border-bottom-color: var(--cyan); }
.lead .consent { display: flex; align-items: flex-start; gap: 10px; font: 400 13px/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--t2); cursor: pointer; }
.lead .consent input { flex: none; width: 20px; height: 20px; margin: 0; padding: 0; border: 0; accent-color: var(--blue); }
.lead .consent a { color: var(--text); text-decoration: underline; }
.lead .err { font-family: var(--sans); font-size: 13px; color: #ff9d9d; }
.lead .legal { font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.lead .legal a { text-decoration: underline; }
.as-in { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 18px; border-top: 1px solid var(--line); }
.as-in textarea { flex: 1; max-height: 120px; padding: 9px 0; font: 400 14.5px/1.4 var(--sans); color: var(--text); background: transparent; border: 0; resize: none; }
.as-in textarea:focus { outline: 0; }
.as-in textarea::placeholder { color: var(--muted); }
.as-in button { flex: none; width: 38px; height: 38px; border-radius: 6px; background: var(--blue); position: relative; transition: background-color 0.2s; }
.as-in button:hover { background: var(--blue-2); }
.as-in button:disabled { opacity: 0.4; cursor: default; }
.as-in button::before { content: ''; position: absolute; left: 12px; top: 18.5px; width: 13px; height: 1.5px; background: #fff; }
.as-in button::after { content: ''; position: absolute; left: 18px; top: 15px; width: 7px; height: 7px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; transform: rotate(45deg); }

/* ───────────── RESPONSIVE ───────────── */
@media (min-width: 760px) { .nb, .nb2 { white-space: nowrap; } }
@media (min-width: 900px) { .statement em { display: block; width: fit-content; white-space: nowrap; } }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }

  /* El recorrido pasa a ser vertical: se lee de arriba abajo */
  .sys { padding-left: 26px; }
  .sys-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 9px; height: auto; background: linear-gradient(var(--line-2), var(--line-2)) center / 1px 100% no-repeat; }
  .sys-packet { transform: translateY(-100%); }
  .sys-packet::before { right: 4px; top: auto; bottom: 0; width: 1px; height: 120px; background: linear-gradient(transparent, var(--cyan)); }
  .sys-packet::after { right: 1px; top: auto; bottom: 0; }
  .sys.in .sys-packet { animation-name: packet-y; }
  .sys-stages { grid-template-columns: 1fr; }
  .st { display: grid; grid-template-columns: 146px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .st:last-child { border-bottom: 0; }
  .st::before { left: -22px; top: 19px; width: 9px; height: 1px; }
  .st-v { margin-top: 0; min-height: 0; line-height: 1.5; }
  .st-v span { display: inline; padding: 0; border: 0; }
  .st-v span::before, .st-v span::after { display: none; }
  .st-v :is(span, strong) + span::before { content: ' · '; display: inline; position: static; width: auto; height: auto; border: 0; border-radius: 0; background: none; transform: none; color: var(--muted); }
  .f-model { border-left: 0; }
  .f-model i { display: none; }
  .f-bars { height: 26px; max-width: 110px; }
  .f-result strong { display: inline; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; padding: 0; color: var(--cyan); }

  .cap { grid-template-columns: 1fr; gap: 44px; }
  .repu-head { grid-template-columns: 1fr; }
  .repu-claim { grid-row: auto; }
  /* Recorrido: la barra lateral pasa a pestañas deslizables dentro de la ventana */
  .tour-body { grid-template-columns: minmax(0, 1fr); }
  .tour-nav { flex-direction: row; gap: 6px; padding: 10px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .tour-nav::-webkit-scrollbar { display: none; }
  .tour-brand { display: none; }
  .tour-tab { flex: none; width: auto; min-height: 44px; white-space: nowrap; scroll-snap-align: start; }
  .tour-cap { padding-right: 0; max-width: none; }
  .shot-phone { position: relative; right: auto; bottom: auto; width: 170px; margin: 32px auto 0; border-radius: 24px; }
  .win-bar span { display: none; }

  .ft-top { grid-template-columns: 1fr; }
  .ft-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}

@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 116px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .cta .btn, .menu .btn { width: 100%; height: 62px; font-size: 17.5px; }
  .hero .cta, .repu-head .cta { width: 100%; }
  .hd { height: 72px; }
  .logo-sym { height: 27px; }
  .logo-txt { height: 12.5px; }
  .btn-hd { height: 44px; padding: 0 16px; font-size: 14.5px; }
  .btn-hd .btn-ar { display: none; }

  .arch { padding-right: 24px; }
  .arch-row { grid-template-columns: 1fr; gap: 10px; }
  .arch-flow { right: 4px; }
  .ai { grid-template-columns: 1fr; gap: 20px; }
  .ai-model { margin: 0; text-align: left; }
  .ai-model::before, .ai-model::after { display: none; }
  .ai-core { width: 100%; height: 56px; }
  .ai-core i { height: 28px; }
  .lane-manual li { font-size: 11px; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }

  .pv { aspect-ratio: 3 / 4; border-radius: 12px; }
  .purpose-ia { text-align: left; justify-items: start; }
  .purpose-ia .btn { width: 100%; height: 62px; }
  .ft-claim .btn { width: 100%; }
  .ft-base { flex-direction: column; }
  /* WhatsApp: algo más compacto, conservando avatar, nombre y acción */
  .wa-fab { gap: 9px; padding: 6px 16px 6px 6px; }
  .wa-av { width: 40px; height: 40px; }
  .wa-main { font-size: 14px; }
  .wa-name { font-size: 11.5px; }
  .fab-ai { width: 46px; height: 46px; }
  .opts { grid-template-columns: 1fr; }
  .opts button { min-height: 56px; font-size: 16px; }

  .as { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  .as-in textarea, .lead input, .lead textarea { font-size: 16px; } /* evita el zoom de iOS */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .st, .statement .w { opacity: 1; }
  .statement em::after { transform: none; }
  .sys-packet { display: none; }
}

/* Páginas legales: pie reducido */
.ft-mini { padding: 32px 0 40px; background: var(--bg-2); }
.ft-mini .ft-base { border-top: 0; padding-top: 0; }

/* Pantallas muy estrechas: la cabecera conserva el símbolo, el CTA y el menú */
@media (max-width: 360px) {
  .hd { gap: 12px; }
  .logo-txt { display: none; }
}
@media (max-width: 640px) {
  .cap-text .btn { width: 100%; height: auto; min-height: 60px; padding-block: 14px; white-space: normal; text-align: center; }
}

/* ═════════════════════════════════════════════════════════════
   PÁGINAS INTERIORES — mismo sistema visual que la home
   ═════════════════════════════════════════════════════════════ */

/* Cabecera: fila principal + botones de servicios siempre visibles */
:root { --svc-h: 58px; }
html { scroll-padding-top: calc(84px + var(--svc-h)); }
.hd { display: block; height: auto; padding-inline: 0; }
.hd-row { height: 82px; padding-inline: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { align-items: center; }
.nav a[aria-current='page'] { color: var(--text); }
.svc-bar { border-top: 1px solid var(--line); }
.svc-bar-in { height: var(--svc-h); padding-inline: var(--pad); display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.svc-bar-in::-webkit-scrollbar { display: none; }
.svc-bar a {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 8px; background: rgba(150, 178, 230, 0.04);
  font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; transition: border-color 0.2s, background-color 0.2s;
}
.svc-bar a .ico { flex: none; color: var(--cyan); }
.svc-bar a:hover { border-color: var(--cyan); background: rgba(63, 213, 242, 0.08); }
.svc-bar a[aria-current='page'] { border-color: var(--cyan); background: rgba(63, 213, 242, 0.12); }
.menu-open .svc-bar { display: none; }
/* El contenido empieza por debajo de la cabecera, ahora más alta */
.hero { padding-top: calc(clamp(120px, 19vh, 200px) + var(--svc-h)); }
.ph { padding-top: calc(clamp(130px, 20vh, 210px) + var(--svc-h)); }
.legal-page { padding-top: calc(clamp(130px, 18vh, 180px) + var(--svc-h)); }
/* «Saber más» en cada servicio de la home */
.cap-text .btn-more { margin-top: 30px; }
.cap-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cap-cta .btn { margin-top: 0; }
.menu-sub a .ico { color: var(--cyan); margin-right: 10px; vertical-align: -4px; }
.menu { overflow-y: auto; }
.menu-h { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); padding-top: 4px; }
.menu-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; padding: 10px 0 16px; border-bottom: 1px solid var(--line); }
.menu nav .menu-sub a { display: block; padding: 10px 0; border: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--t2); }
.menu nav a[aria-current='page'] { color: var(--cyan); }

/* Cabecera de página interior: misma escala y fondo que el hero */
.ph { position: relative; isolation: isolate; padding: clamp(130px, 20vh, 210px) 0 clamp(64px, 10vh, 120px); }
.ph::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 52% at 84% 0%, rgba(43, 107, 255, 0.2), transparent 70%), repeating-linear-gradient(90deg, rgba(150, 178, 230, 0.05) 0 1px, transparent 1px calc(100% / 12));
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.ph-title { margin-top: clamp(18px, 3vh, 28px); max-width: 17ch; font-size: clamp(2.5rem, 6.2vw, 6.2rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 500; text-wrap: balance; }
.ph-foot { margin-top: clamp(28px, 5vh, 52px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.ph-foot .lede, .ph .lede { max-width: 34em; }
.ph-contact .lede { margin-top: clamp(24px, 4vh, 40px); }

/* Secciones */
.sec { padding: clamp(72px, 11vh, 140px) 0; border-top: 1px solid var(--line); }
.sec-tight { padding-top: 0; border-top: 0; }
.sec-head { margin-bottom: clamp(40px, 7vh, 80px); }
.sec-head .h-xl { max-width: 20ch; }
.sec-lede { margin-top: clamp(20px, 3vh, 30px); max-width: 38em; font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--t2); }
.sec-note { margin-top: 40px; font-size: 16.5px; color: var(--t2); }
.prose a, .rows a, .glist a, .sec-note a, .cap-text p a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(63, 213, 242, 0.5); text-underline-offset: 3px; }
.h-md { margin-top: 18px; font-size: clamp(1.9rem, 3.4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; text-wrap: balance; }
.statement-md { margin-top: clamp(24px, 4vh, 40px); font-size: clamp(2.1rem, 4.6vw, 4.8rem); max-width: 22ch; }
.statement-md .s2 { display: block; margin-top: 0.35em; }
.statement-md em::after { transform: scaleX(1); }
.prose { margin-top: clamp(32px, 5vh, 56px); margin-left: auto; max-width: 40em; display: grid; gap: 18px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--t2); }
.cap-wide { grid-template-columns: 1fr; padding-top: 0; border-top: 0; }
.cap-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cap .shot { margin: 0; }
.shot > img { display: block; width: 100%; height: auto; }
.sec > .wrap > .cap:first-child { border-top: 0; padding-top: 0; }
.sec > .wrap > .cap:last-child { padding-bottom: 0; }
.link-chain { max-width: 980px; }
.link-chain .hub-nodes text, .link-chain .hub-core text { font-size: 15px; }
.sys-page { margin-top: 8px; }

/* Listas editoriales (sin tarjetas) */
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(28px, 5vw, 80px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
.row p { font-size: 16.5px; line-height: 1.55; color: var(--t2); }
.cap-fig .row { grid-template-columns: 1fr; padding: 18px 0; }
.cap-fig .row h3 { font-family: var(--sans); font-size: 17px; color: var(--text); }
.cap-fig .row p { font-family: var(--sans); font-size: 15px; }
.glist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.glist-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.glist-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glist li { position: relative; padding: 24px 0 30px; border-top: 1px solid var(--line-2); }
.glist li::before { content: ''; position: absolute; left: 0; top: -1px; width: 28px; height: 1px; background: var(--cyan); }
.glist h3 { font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; }
.glist p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--t2); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.quotes li { padding: 22px 0 22px 22px; border-left: 1px solid var(--cyan); margin-bottom: 18px; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; }
.pairs { border-top: 1px solid var(--line-2); }
.pairs li { display: grid; grid-template-columns: minmax(0, 2fr) 60px minmax(0, 2fr) minmax(0, 5fr); align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pairs b { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; }
.pairs i { position: relative; height: 1px; background: var(--cyan); }
.pairs i::before, .pairs i::after { content: ''; position: absolute; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--cyan); }
.pairs i::before { left: 0; border-left: 1px solid var(--cyan); transform: rotate(-45deg); }
.pairs i::after { right: 0; border-right: 1px solid var(--cyan); transform: rotate(45deg); }
.pairs span { font-size: 16px; color: var(--t2); }
.code { margin: clamp(32px, 5vh, 56px) 0 0 auto; max-width: 640px; border: 1px solid var(--line-2); border-radius: 12px; background: #070f22; overflow: hidden; }
.code figcaption { padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--t2); }

/* Enlaces relacionados */
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); margin-top: 24px; }
.related-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.related a { position: relative; display: grid; gap: 8px; padding: 22px 28px 26px 0; border-top: 1px solid var(--line-2); transition: border-color 0.2s; }
.related a::after { content: ''; position: absolute; right: 4px; top: 30px; width: 8px; height: 8px; border-top: 1.5px solid var(--cyan); border-right: 1.5px solid var(--cyan); transform: rotate(45deg); transition: transform 0.25s var(--ease); }
.related a:hover { border-top-color: var(--cyan); }
.related a:hover::after { transform: translateX(4px) rotate(45deg); }
.related b { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.related span { font-size: 15.5px; line-height: 1.5; color: var(--t2); }
.sec-related { padding: clamp(56px, 8vh, 96px) 0; }

/* Cierre de página: misma composición que «La IA que hace avanzar tu negocio» */
.cta-band { padding: clamp(80px, 13vh, 160px) 0; border-top: 1px solid var(--line); text-align: center; background: radial-gradient(60% 70% at 50% 100%, rgba(43, 107, 255, 0.14), transparent 70%); }
.cta-band .wrap { display: grid; justify-items: center; }
.cta-band .ia-title { font-size: clamp(2.3rem, 5.4vw, 5.6rem); }
.cta-c { justify-content: center; margin-top: clamp(32px, 5vh, 52px); }

/* RepuOrbit */
.ph-repu .repu-title { margin-top: 14px; }
.repu-head-page { margin-top: clamp(28px, 5vh, 56px); align-items: start; }
.repu-head-page .repu-claim, .repu-head-page .repu-sub { margin-top: 0; }

/* Páginas legales */
.legal-page { padding: clamp(130px, 18vh, 180px) 0 96px; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em; font-weight: 500; margin-top: 20px; }
.legal-body { max-width: 46em; margin-top: 48px; color: var(--t2); font-size: 1.0625rem; line-height: 1.6; }
.legal-body h2 { margin: 40px 0 10px; font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 500; color: var(--text); }
.legal-body p + p { margin-top: 12px; }
.legal-body a { color: var(--text); text-decoration: underline; }
.legal-meta { margin-top: 48px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); margin-top: clamp(48px, 8vh, 88px); align-items: start; }
.cform { display: grid; gap: 22px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.cf { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--t2); }
.cf-full { grid-column: 1 / -1; }
.cf input, .cf select, .cf textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; background-color: rgba(150, 178, 230, 0.04);
  font: 400 16px/1.4 var(--sans); color: var(--text); transition: border-color 0.2s, background-color 0.2s;
}
.cf select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--t2) 50%), linear-gradient(135deg, var(--t2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.cf select option { background: var(--bg-2); color: var(--text); }
.cf textarea { resize: vertical; min-height: 150px; }
.cf input::placeholder, .cf textarea::placeholder { color: var(--muted); }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: 0; border-color: var(--cyan); background-color: rgba(63, 213, 242, 0.05); }
.cf [aria-invalid='true'] { border-color: #ff8a8a; }
.cf-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--t2); cursor: pointer; }
.cf-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue); }
.cf-check a { color: var(--text); text-decoration: underline; }
.cf-submit { justify-self: start; }
.cf-submit[disabled] { opacity: 0.6; cursor: progress; }
.cf-status { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.5; }
.cf-status.ok { border-color: var(--cyan); color: var(--text); background: rgba(63, 213, 242, 0.08); }
.cf-status.err { border-color: #ff8a8a; color: var(--text); background: rgba(255, 138, 138, 0.06); }
.cf-status a { text-decoration: underline; }
.cf-legal { font-size: 13px; color: var(--muted); }
.cf-legal a { text-decoration: underline; }
.channels { display: grid; }
.channel { display: grid; gap: 12px; justify-items: start; padding: 24px 0; border-top: 1px solid var(--line-2); }
.channel-v { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.channel-v:hover { color: var(--cyan); }
.channel-t { font-size: 15.5px; line-height: 1.55; color: var(--t2); }
.channel-t a { text-decoration: underline; color: var(--text); }

@media (max-width: 1100px) {
  .glist-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cap-flip { grid-template-columns: minmax(0, 1fr); }
  .glist-3, .related-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .pairs li { grid-template-columns: auto 44px auto; justify-content: start; }
  .pairs span { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; }
  .prose { margin-left: 0; }
  .code { margin-left: 0; }
}
@media (max-width: 640px) {
  .glist, .glist-3, .glist-4, .related, .related-lg { grid-template-columns: 1fr; }
  .cf-grid { grid-template-columns: 1fr; }
  .win-badge { padding: 4px 9px; font-size: 11px; white-space: normal; text-align: right; }
  .cf-submit { width: 100%; }
  .menu-sub { grid-template-columns: 1fr; }
  .link-chain .hub-nodes text, .link-chain .hub-core text { font-size: 20px; }
  .cta-c .btn { width: 100%; }
  /* CTA con texto largo: parten línea en vez de desbordar */
  .cta .btn, .cta-c .btn { white-space: normal; text-align: center; height: auto; min-height: 60px; padding-block: 14px; }
}

/* Cabecera en tablet y móvil: los servicios siguen visibles, en una fila deslizable */
@media (max-width: 900px) {
  :root { --svc-h: 54px; }
  .svc-bar a { flex: none; height: 38px; padding: 0 13px; font-size: 14px; }
}
@media (max-width: 640px) {
  .hd-row { height: 72px; }
  .hero { padding-top: calc(116px + var(--svc-h)); }
  .menu { padding-top: 96px; }
}
@media (max-width: 360px) {
  .hd-row { gap: 12px; }
}


/* ───────────── LUCÍA: mismo chat que RepuOrbit ───────────── */
.as.as-lucia {
  --lu-paper: #fff; --lu-cream: #f7f3ec; --lu-ink: #17130d; --lu-ink2: #4c453a; --lu-line: #e6ddcc;
  --lu-blue: #1e3a63; --lu-tint: #eaf0f8; --lu-green: #2f7a57; --lu-slate: #6b6157; --lu-wa: #25d366;
  inset: auto; right: clamp(16px, 3vw, 26px); bottom: calc(clamp(16px, 3vw, 26px) + 80px); z-index: 70;
  width: min(94vw, 384px); height: min(74vh, 560px);
  border: 1px solid var(--lu-line); border-radius: 20px; overflow: hidden;
  background: var(--lu-paper); color: var(--lu-ink);
  font-family: Inter, var(--sans); letter-spacing: 0;
  box-shadow: 0 44px 100px -40px rgba(23, 19, 13, 0.6);
  animation: lu-in 0.22s ease-out;
}
@keyframes lu-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.as-lucia .as-hd { gap: 11px; padding: 13px 15px; background: var(--lu-tint); border-bottom: 1px solid var(--lu-line); }
.as-lucia .as-av { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(23, 19, 13, 0.18); }
.as-lucia .as-id { line-height: 1.25; }
.as-lucia .as-hd p { font-family: Fraunces, Georgia, 'Times New Roman', serif; font-size: 16px; font-weight: 600; color: var(--lu-ink); letter-spacing: 0; }
.as-lucia .as-hd small { margin-top: 1px; font-size: 12px; color: var(--lu-slate); }
.as-online { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--lu-green); }
.as-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lu-green); }
.as-lucia .as-x { align-self: flex-start; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--lu-line); background: #fff; }
.as-lucia .as-x:hover { background: var(--lu-cream); }
.as-lucia .as-x::before, .as-lucia .as-x::after { left: 8px; right: 8px; top: 13.5px; background: var(--lu-ink2); }

.as-lucia .as-log { padding: 16px 15px; gap: 12px; background: var(--lu-cream); font-size: 13.5px; line-height: 1.5; }
.as-lucia .m { max-width: 86%; }
.as-lucia .m-a { align-self: flex-start; padding: 10px 13px; border: 1px solid var(--lu-line); border-radius: 4px 15px 15px 15px; background: #fff; color: var(--lu-ink); }
.as-lucia .m-a a { color: var(--lu-blue); }
.as-lucia .m-u { align-self: flex-end; padding: 10px 13px; border-radius: 15px 15px 4px 15px; background: var(--lu-blue); color: #fff; }
.as-lucia .typing { align-self: flex-start; padding: 13px 14px; border: 1px solid var(--lu-line); border-radius: 4px 15px 15px 15px; background: #fff; }
.as-lucia .typing i { background: var(--lu-slate); }

.as-lucia .opts { display: flex; flex-wrap: wrap; gap: 7px; }
.as-lucia .opts button { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 7px 13px; border: 1px solid var(--lu-line); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--lu-blue); transition: border-color 0.15s, background-color 0.15s; }
.as-lucia .opts button::after { content: none; }
.as-lucia .opts button:hover { border-color: var(--lu-blue); background: var(--lu-tint); }
.as-lucia .opts button.wa { border-color: var(--lu-wa); background: var(--lu-wa); color: #fff; }
.as-lucia .opts button.wa:hover { background: #1fbd5a; border-color: #1fbd5a; }

.as-lucia .lead { gap: 12px; padding: 14px; border: 1px solid var(--lu-line); border-radius: 14px; background: #fff; }
.as-lucia .lead label { font-family: Inter, var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--lu-ink2); }
.as-lucia .lead input, .as-lucia .lead textarea { padding: 8px 11px; border: 1px solid var(--lu-line); border-radius: 10px; background: var(--lu-cream); color: var(--lu-ink); font-size: 13.5px; }
.as-lucia .lead input:focus, .as-lucia .lead textarea:focus { border-color: var(--lu-blue); }
.as-lucia .lead .consent { font-weight: 400; font-size: 12.5px; color: var(--lu-ink2); }
.as-lucia .lead .consent input { padding: 0; accent-color: var(--lu-blue); }
.as-lucia .lead .consent a { color: var(--lu-blue); }
.as-lucia .lead .err { color: #b3261e; }
.as-lucia .lead .legal { color: var(--lu-slate); }
.as-lucia .lead .btn { justify-self: start; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--lu-blue); color: #fff; font-size: 13.5px; }

.as-lucia .as-in { align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--lu-line); background: #fff; }
.as-lucia .as-in textarea { padding: 10px 14px; border: 1px solid var(--lu-line); border-radius: 999px; background: var(--lu-cream); color: var(--lu-ink); font-size: 13.5px; line-height: 1.3; max-height: 96px; }
.as-lucia .as-in textarea::placeholder { color: var(--lu-slate); }
.as-lucia .as-in textarea:focus { border-color: var(--lu-blue); }
.as-lucia .as-in button { width: 40px; height: 40px; border-radius: 50%; background: var(--lu-blue); }
.as-lucia .as-in button:hover { background: #17304f; }
.as-lucia .as-in button::after { content: none; }
.as-lucia .as-in button::before { content: '➤'; inset: 0; left: 0; top: 0; width: auto; height: auto; display: grid; place-items: center; background: none; color: #fff; font-size: 15px; line-height: 1; }
.as-foot { padding: 0 12px 9px; background: #fff; font-size: 10.5px; line-height: 1.35; text-align: center; color: #6b6157; }

@media (max-width: 640px) {
  .as.as-lucia { inset: auto; right: 12px; left: auto; bottom: 88px; width: calc(100vw - 24px); height: min(72dvh, 560px); border: 1px solid var(--lu-line); border-radius: 20px; }
  .as-lucia .opts button { min-height: 0; font-size: 13px; }
  .as-lucia .as-in textarea, .as-lucia .lead input, .as-lucia .lead textarea { font-size: 16px; } /* evita el zoom de iOS */
}
