/* Página de inicio pública de LeiAI
   Estilo editorial minimalista (rediseño de octubre de 2026): fondo casi negro, tipografía grande,
   líneas finas, etiquetas numeradas «(01)», un solo color de acento y animaciones al hacer scroll. */

:root {
  --bg: #050608;
  --bg-2: #0b0d12;
  --bg-3: #10131a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #f3f4f6;
  --muted: #8b919c;
  --dim: #353a43;
  --dim-2: #1c1f26;
  --accent: #00d4ff;
  --accent-2: #2f6bff;
  --ok: #5cf2a8;
  --warn: #ffd27a;
  --bad: #ff8a8f;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(88px, 11vw, 168px);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
p { margin: 0; }
::selection { background: var(--accent); color: #001018; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Palabras destacadas: serif en cursiva con el color de acento */
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Botones en píldora ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 13px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s;
}
.pill:active { transform: scale(.97); }
.pill span[aria-hidden] { display: inline-block; transition: transform .35s var(--ease); }
.pill:hover span[aria-hidden] { transform: translateX(4px); }
.pill-line { border-color: var(--line-2); background: transparent; color: var(--text); }
.pill-line:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-solid { background: var(--text); color: var(--bg); }
.pill-solid:hover { background: var(--accent); color: #001018; }
.pill-lg { height: 54px; padding: 0 28px; font-size: 14px; }

/* ---------- Etiquetas de sección «(01) Título» ---------- */

.sec-label {
  display: flex; gap: 14px; align-items: baseline;
  margin: 0 0 40px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.sec-label span:first-child { color: var(--text); font-variant-numeric: tabular-nums; }

.lead { color: var(--muted); font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.6; max-width: 560px; }

/* ---------- Navegación ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.nav.scrolled, body.menu-open .nav {
  background: rgba(5, 6, 8, .72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
body.menu-open .nav { background: var(--bg); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; justify-self: start; }
.nav-brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .25s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; gap: 8px; justify-self: end; align-items: center; }
.nav-toggle { display: none; gap: 10px; }
.nav-toggle-icon { position: relative; width: 14px; height: 8px; }
.nav-toggle-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-toggle-icon i:first-child { top: 0; }
.nav-toggle-icon i:last-child { top: 6.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:first-child { top: 3.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon i:last-child { top: 3.25px; transform: rotate(-45deg); }

/* Menú del celular: pantalla completa con enlaces grandes */
.mobile-menu {
  position: fixed; inset: 0; z-index: 25;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 28px;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 8vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
  text-decoration: none;
  animation: menuIn .6s var(--ease-out) both;
}
.mobile-menu nav a small { font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 400; }
.mobile-menu nav a:nth-child(2) { animation-delay: .03s; }
.mobile-menu nav a:nth-child(3) { animation-delay: .06s; }
.mobile-menu nav a:nth-child(4) { animation-delay: .09s; }
.mobile-menu nav a:nth-child(5) { animation-delay: .12s; }
.mobile-menu nav a:nth-child(6) { animation-delay: .15s; }
.mobile-menu nav a:nth-child(7) { animation-delay: .18s; }
.mobile-menu nav a:nth-child(8) { animation-delay: .21s; }
.mobile-menu nav a:nth-child(9) { animation-delay: .24s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.mobile-menu-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.menu-open { overflow: hidden; }

/* Barra de acción fija del celular */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(14, 17, 23, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; color: var(--muted);
  transform: translateY(160%); transition: transform .5s var(--ease-out);
}
.mobile-cta.on { transform: none; }
.mobile-cta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Portada ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 12px) var(--gutter) 28px;
  max-width: var(--max); margin: 0 auto;
  isolation: isolate;
}
.hero-light {
  position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 55% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 55% 45%, #000 35%, transparent 80%);
}
.hero-light svg { width: 100%; height: 100%; }
.trails { filter: drop-shadow(0 0 6px rgba(0, 212, 255, .55)); translate: 0 var(--py, 0px); }
.trails path { stroke-width: 2; stroke-dasharray: 22 78; animation: trail 9s linear infinite; }
.trails .t2 { stroke-width: 1.4; animation-duration: 12s; animation-delay: -4s; }
.trails .t3 { stroke-width: 2.6; animation-duration: 15s; animation-delay: -9s; }
.trails .t4 { stroke-width: 1; animation-duration: 10s; animation-delay: -2s; }
.trails.base { filter: none; }
.trails.base path { stroke: rgba(120, 170, 255, .1); stroke-dasharray: none; animation: none; stroke-width: 1; }
@keyframes trail { from { stroke-dashoffset: 100; } to { stroke-dashoffset: -100; } }

.hero-meta {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero-word {
  margin: clamp(20px, 5vh, 56px) 0 0;
  font-size: 11.4vw; /* landing.js lo ajusta para que ocupe exactamente el ancho */
  font-weight: 600; line-height: .82; letter-spacing: -0.055em; text-transform: uppercase;
  white-space: nowrap;
  translate: 0 var(--py, 0px);
}
.hero-word .ch { display: inline-block; vertical-align: top; clip-path: inset(-30% -40% 0 -40%); }
.hero-word .ch > span { display: inline-block; transform: translateY(102%); transition: transform 1.1s var(--ease-out); }
.ready .hero-word .ch > span { transform: none; }

.hero-bottom {
  margin-top: auto; padding-top: clamp(40px, 8vh, 96px);
  display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: end;
}
.hero-title {
  font-size: clamp(28px, 3.5vw, 54px);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase;
}
.hero-title em { text-transform: none; font-size: 1.08em; }
.hero-side { display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: 16px; }
.hero-sub { color: var(--text); font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; letter-spacing: -0.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hero-points {
  list-style: none; margin: clamp(32px, 6vh, 64px) 0 0; padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.hero-points li::before { content: '●'; color: var(--accent); margin-right: 10px; font-size: 8px; vertical-align: 2px; }
.hero-points .hero-scroll { margin-left: auto; color: var(--text); }
.hero-points .hero-scroll::before { content: none; }

/* Texto que entra palabra por palabra (data-split) */
.w { display: inline-block; vertical-align: top; clip-path: inset(-30% -30% -.16em -30%); }
.w > span { display: inline-block; transform: translateY(135%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); }
.split-in .w > span { transform: none; }

/* Texto que se ilumina con el scroll (data-scrub) */
.sw { color: var(--dim); transition: color .35s; }
.sw.on { color: var(--text); }
em .sw.on, .sw.on em { color: var(--accent); }

/* ---------- Franja en movimiento ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(14px, 2vw, 24px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  padding: 0 .3em;
  font-size: clamp(44px, 8vw, 128px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; text-transform: uppercase;
  color: var(--dim-2);
  transition: color .4s;
}
.marquee span:hover { color: var(--text); }
.marquee i { font-family: var(--serif); font-style: italic; font-size: clamp(40px, 7vw, 112px); color: var(--accent); line-height: 1; padding: 0 .2em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */

.section { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter) 0; }
.section h2 { font-size: clamp(34px, 4.8vw, 68px); }
.sec-head { margin-bottom: clamp(48px, 6vw, 80px); }
.sec-head h2 { max-width: 18ch; }
.sec-head .lead { margin-top: 24px; }
.sec-head-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.sec-head-row .lead { margin: 0; }

.statement { font-size: clamp(32px, 5vw, 76px); line-height: 1.02; max-width: 20ch; }
.statement em { color: inherit; }

/* Casos */
.case-main {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: .9fr 1.7fr; gap: clamp(28px, 4vw, 64px);
  padding-top: 28px; border-top: 1px solid var(--line);
}
.case-time { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.case-q h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.12; }
.case-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; }
.case-label { margin: 0 0 14px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-label span { text-transform: none; letter-spacing: 0; color: var(--ok); }
.case-before, .case-after { padding: 24px; border-radius: 20px; border: 1px solid var(--line); }
.case-after { background: var(--bg-2); }
.case-before ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.case-before li:last-child { color: var(--bad); }
.case-chat { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.case-user { align-self: flex-end; max-width: 92%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--bg); line-height: 1.45; }
.case-ai { padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.case-ai b { color: var(--ok); font-weight: 600; }
.case-ai b.warn { color: var(--warn); }
.case-tip { color: var(--muted); font-size: 13px; }

.case-list { margin-top: clamp(72px, 9vw, 128px); }
.case-list-head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.case-row { border-bottom: 1px solid var(--line); }
.case-row summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 220px 1fr 44px; gap: 24px; align-items: center;
  padding: clamp(20px, 2.4vw, 32px) 0;
}
.case-row summary::-webkit-details-marker { display: none; }
.case-tag { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case-q2 {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -0.01em;
  color: var(--dim); transition: color .45s var(--ease);
}
.case-row.focus .case-q2, .case-row:hover .case-q2, .case-row[open] .case-q2 { color: var(--text); }
.case-body { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 24px; padding: 0 0 32px; animation: rowIn .6s var(--ease-out); }
.case-body::before { content: ''; }
.case-old, .case-new { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.case-old b, .case-new b { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.case-old b { color: var(--bad); }
.case-new b { color: var(--ok); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Ícono «+» de las filas desplegables */
.plus {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  justify-self: end; transition: transform .45s var(--ease), background .3s, border-color .3s;
}
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.plus::after { rotate: 90deg; }
summary:hover .plus { background: var(--text); color: var(--bg); border-color: var(--text); }
details[open] > summary .plus { transform: rotate(45deg); }

/* Funciones: grilla con líneas finas */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.feature {
  position: relative;
  padding: 28px 28px 44px;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.feature:nth-child(4n) { border-right: 0; }
.feature::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.feature:hover { background: var(--surface); }
.feature:hover::before { transform: scaleX(1); }
.feature .num { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.feature:hover .num { color: var(--accent); }
.feature h3 { font-size: 21px; letter-spacing: -0.02em; margin: clamp(32px, 4vw, 64px) 0 10px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Módulos: texto y maqueta */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.split-rev .split-visual { order: -1; }
.split-visual { position: sticky; top: calc(var(--nav-h) + 32px); }
/* En RR.HH. la lista completa va debajo, en la misma grilla: la maqueta no puede quedar fija o la taparía. */
#rrhh .split-visual { position: relative; top: 0; }
.split h2 { max-width: 15ch; }
.split .lead { margin-top: 24px; }
.split > *, .features > *, .case-main > *, .case-cols > *, .hero-bottom > * { min-width: 0; }

.checks { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); counter-reset: chk; }
.checks li {
  position: relative; counter-increment: chk;
  padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15.5px; line-height: 1.55;
}
.checks li::before {
  content: counter(chk, decimal-leading-zero); position: absolute; left: 0; top: 21px;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s;
}
.checks li:hover::before { color: var(--accent); }
.checks li b { color: var(--text); font-weight: 500; }

.stage {
  position: relative; overflow: hidden;
  min-height: min(620px, 78vh);
  display: grid; place-items: center;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 56px);
  border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 212, 255, .12), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(47, 107, 255, .14), transparent 70%),
    var(--bg-2);
}
.stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.stage > * { position: relative; }
.stage-note {
  position: absolute; left: 22px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.stage-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(92, 242, 168, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(92, 242, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 242, 168, 0); } }

.mock {
  width: min(420px, 100%);
  padding: 18px; border-radius: 22px;
  background: #0e1117; border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; gap: 12px; font-size: 13px;
  transform: rotate(-1.2deg); transition: transform .8s var(--ease);
}
.stage:hover .mock { transform: none; }
.hm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hm-head b { font-weight: 600; }
.hm-head span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.hm-user { align-self: flex-end; max-width: 88%; padding: 10px 13px; border-radius: 14px 14px 4px 14px; background: var(--text); color: var(--bg); line-height: 1.45; }
.hm-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-tools span, .exp-actions span { font-size: 11px; padding: 4px 10px; border-radius: 999px; color: var(--accent); border: 1px solid rgba(0, 212, 255, .3); background: rgba(0, 212, 255, .06); }
.hm-answer { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.hm-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.hm-row span { color: var(--muted); }
.hm-row span b { color: var(--text); font-weight: 500; }
.hm-row.total { padding-top: 7px; border-top: 1px solid var(--line); font-size: 14px; }
.hm-row.total span { color: var(--text); font-weight: 600; }
.hm-row.total b { color: var(--ok); }
.hm-cite { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.exp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.exp-kpis div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.exp-kpis span { color: var(--muted); font-size: 11px; }
.exp-kpis b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.mock .bad { color: var(--bad); }
.mock .warn { color: var(--warn); }
.mock .ok { color: var(--ok); }
.exp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
/* RR.HH.: aparecen en orden, como si LeiAI consultara la ficha, la ley y luego respondiera */
.hr-visual .hm-tools span, .hr-visual .hm-answer { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hr-visual.in .hm-tools span, .hr-visual.in .hm-answer { opacity: 1; transform: none; }
.hr-visual.in .hm-tools span:nth-child(1) { transition-delay: .5s; }
.hr-visual.in .hm-tools span:nth-child(2) { transition-delay: 1s; }
.hr-visual.in .hm-tools span:nth-child(3) { transition-delay: 1.5s; }
.hr-visual.in .hm-answer { transition-delay: 2.1s; }

/* Celular escaneando */
.phone {
  position: relative; width: min(312px, 100%);
  padding: 11px; border-radius: 46px;
  background: linear-gradient(160deg, #23262e, #0c0e13);
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .04);
  transform: rotate(-2deg); transition: transform .8s var(--ease);
}
.stage:hover .phone { transform: none; }
.phone-notch { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 88px; height: 24px; border-radius: 14px; background: #000; z-index: 2; }
.phone-screen { border-radius: 36px; overflow: hidden; background: #0b0d12; padding: 52px 14px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.ph-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph-bar b { font-size: 13px; font-weight: 600; }
.ph-bar span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.ph-scan {
  position: relative; height: 150px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at center, #2a2e38, #0d0f14 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.ph-code { display: flex; align-items: stretch; gap: 3px; height: 62px; padding: 10px 14px 4px; background: #f4f6fa; border-radius: 4px 4px 0 0; }
.ph-code i { display: block; width: 3px; background: #0b1020; }
.ph-code i:nth-child(3n) { width: 1.5px; }
.ph-code i:nth-child(4n) { width: 5px; }
.ph-code i:nth-child(5n+2) { width: 2px; }
.ph-digits { margin-top: -4px; padding: 0 10px 4px; background: #f4f6fa; border-radius: 0 0 4px 4px; color: #0b1020; font: 600 11px/1.4 var(--mono); letter-spacing: .08em; }
.ph-laser { position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; background: #ff3b5c; box-shadow: 0 0 12px 2px rgba(255, 59, 92, .7); animation: laser 2.4s ease-in-out infinite; }
@keyframes laser { 0%, 100% { transform: translateY(-38px); } 50% { transform: translateY(30px); } }
.ph-corners { position: absolute; inset: 16px 22%; border-radius: 10px;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 18px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 3px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 18px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 3px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 18px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 3px 18px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 18px 3px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 3px 18px no-repeat;
}
.ph-hit { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(92, 242, 168, .08); border: 1px solid rgba(92, 242, 168, .28); }
.ph-hit > span { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #06281a; font-weight: 700; }
.ph-hit div { display: flex; flex-direction: column; min-width: 0; }
.ph-hit b { font-weight: 600; }
.ph-hit small { color: var(--muted); font-size: 11px; }
.ph-card { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.ph-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.ph-card-head b { font-weight: 600; }
.ph-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(0, 212, 255, .12); color: var(--accent); }
.ph-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.ph-row span { color: var(--muted); }
.ph-row b { text-align: right; font-weight: 600; }
.ph-actions { display: flex; gap: 8px; margin-top: 4px; }
.ph-btn { flex: 1; text-align: center; padding: 8px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 12px; }
.ph-btn.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }

/* Análisis de datos: pasos */
.steps-card { gap: 22px; padding: 26px; }
.step-line { display: flex; gap: 16px; position: relative; }
.step-line:not(:last-child)::after { content: ''; position: absolute; left: 5px; top: 20px; bottom: -22px; width: 1px; background: var(--line-2); }
.step-line .dot { width: 11px; height: 11px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex-shrink: 0; }
.step-line > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.step-line b { font-weight: 600; }
.step-line code { display: block; max-width: 100%; font-family: var(--mono); font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: #06070a; border: 1px solid var(--line); color: #c9d2e3; overflow-x: auto; white-space: nowrap; }
.step-line code.ok { color: var(--ok); }
.muted { color: var(--muted); font-size: 13.5px; }
.spark { width: 100%; height: 60px; }
.spark polyline {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2s var(--ease);
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, .6));
}
.in .spark polyline { stroke-dashoffset: 0; }

/* Lista completa de RR.HH. */
.more-list { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); }
.more-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 18px; padding: 24px 0;
  font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em;
}
.more-list summary::-webkit-details-marker { display: none; }
.more-count { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.more-list .plus { margin-left: auto; }
.more-list .checks { margin-top: 0; }
.checks-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }

/* Ventas: logos oficiales sobre fondo blanco, sin deformarlos ni recolorearlos */
.compat { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 32px; }
.compat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.compat img { height: 34px; width: auto; max-width: 140px; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px 10px; box-sizing: content-box; }
.compat-more { font-size: 13px; color: var(--muted); flex-basis: 100%; }

/* ---------- Demostración del chat ---------- */

.showcase { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter) 0; }
.window {
  border: 1px solid var(--line-2); border-radius: 26px;
  background: var(--bg-2);
  box-shadow: 0 60px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.window-bar span { margin: 0 auto; padding-right: 50px; font-size: 12px; color: var(--muted); }
.window-body { display: grid; grid-template-columns: 230px 1fr; min-height: 480px; }
.demo-side { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.demo-new { padding: 10px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; text-align: center; margin-bottom: 8px; }
.demo-hist { padding: 8px 12px; border-radius: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-hist.active { background: var(--surface-2); color: var(--text); }
.demo-chat { padding: 20px 26px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.demo-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-tabs b { padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); }
.demo-tabs b.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.demo-msg.user { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 80%; }
.demo-file { font-size: 12px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.demo-msg.user p { padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--bg); font-size: 14px; min-height: 42px; }
.demo-msg.user p.typing::after { content: '▍'; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.demo-msg.ai { display: flex; gap: 12px; align-items: flex-start; }
.demo-msg.ai img { border-radius: 8px; flex-shrink: 0; }
.demo-ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-code { margin: 0; padding: 12px 14px; border-radius: 12px; background: #06070a; border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; color: #c9d2e3; }
.demo-code .s { color: #7ee0a5; }
.demo-code .k { color: #79c0ff; }
.demo-chart { height: 150px; display: flex; align-items: flex-end; gap: 14px; padding: 12px 14px 26px; border-radius: 12px; background: #f4f6fa; }
.demo-chart div { position: relative; flex: 1; height: 0; border-radius: 6px 6px 2px 2px; background: #b9c4d6; transition: height 1s var(--ease); }
.demo-chart div.top { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.demo-chart span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #5d6b82; white-space: nowrap; }
.demo-answer { font-size: 14px; color: var(--muted); }
.demo-answer b { color: var(--text); }
.demo-code, .demo-chart, .demo-answer { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.demo-code.show, .demo-chart.show, .demo-answer.show { opacity: 1; transform: none; }

/* ---------- Rubros: filas con etiqueta ---------- */

.biz-rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.biz-rows li {
  position: relative;
  display: grid; grid-template-columns: 160px 1.1fr 1.3fr 32px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: padding .45s var(--ease), background .45s var(--ease);
}
/* ✓ = rubro con configuración propia */
.biz-rows li::after { content: '✓'; justify-self: end; color: var(--muted); transition: color .3s; }
.biz-rows li:hover { padding-left: 14px; padding-right: 14px; background: var(--surface); }
.biz-rows li:hover::after { color: var(--accent); }
.tag { justify-self: start; padding: 6px 12px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.biz-rows b { font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; letter-spacing: -0.02em; }
.biz-rows small { color: var(--muted); font-size: 15px; }
.biz-note { max-width: 760px; margin-top: 32px; color: var(--muted); }
.biz-note b { color: var(--text); font-weight: 500; }

/* ---------- Cómo empezar ---------- */

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.how li { padding: 28px 32px 44px 0; border-right: 1px solid var(--line); }
.how li + li { padding-left: 32px; }
.how li:last-child { border-right: 0; }
.how span { display: block; font-size: clamp(64px, 8vw, 128px); font-weight: 500; line-height: .9; letter-spacing: -0.05em; color: var(--dim-2); -webkit-text-stroke: 1px var(--dim); transition: color .5s var(--ease); }
.how li:hover span { color: var(--text); }
.how h3 { font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.how p { color: var(--muted); }

/* ---------- Privacidad ---------- */

.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(56px, 7vw, 96px); }
.privacy-grid > div { padding-top: 18px; border-top: 1px solid var(--line-2); }
.privacy-grid b { display: block; margin-bottom: 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.privacy-grid p { color: var(--muted); font-size: 15px; }

/* ---------- Preguntas frecuentes ---------- */

.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-side .lead { margin-top: 24px; }
.faq-side a { color: var(--text); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(16.5px, 1.4vw, 19px); font-weight: 500; letter-spacing: -0.01em;
  transition: color .25s;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 18px; font-weight: 400; color: var(--text);
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 64ch; animation: rowIn .5s var(--ease-out); }
.faq a { color: var(--accent); }

/* ---------- Llamada final ---------- */

.cta { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.cta-top { display: flex; align-items: center; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cta-top img { border-radius: 16px; }
.cta-title { margin: clamp(32px, 5vw, 64px) 0; font-size: clamp(52px, 10vw, 168px); line-height: .9; letter-spacing: -0.05em; }
.cta-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.cta-bottom .hero-actions { margin: 0; }
.cta-bottom .pill-line { text-transform: none; letter-spacing: 0; font-size: 15px; }

/* ---------- Pie de página ---------- */

.footer { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: 28px 0; border-top: 1px solid var(--line); }
.footer-claim { display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-claim .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; }
.footer a { text-decoration: none; color: var(--muted); transition: color .25s; }
.footer a:hover { color: var(--text); }
.footer-word {
  margin: 24px 0 0;
  font-size: 30vw; font-weight: 600; line-height: .78; letter-spacing: -0.065em; white-space: nowrap;
  background: linear-gradient(180deg, var(--text) 10%, #2a2e36 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Entradas al hacer scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Solicitud de acceso (beta privada) ---------- */

.beta-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 1px solid var(--line-2); border-radius: 24px;
  background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.beta-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.beta-form { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.beta-form .sec-label { margin: 0; border-top: 0; padding-top: 0; }
.beta-form h2 { font-size: 30px; }
.beta-help, .beta-legal { color: var(--muted); font-size: 14px; line-height: 1.5; }
.beta-legal a { color: var(--accent); }
.beta-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.beta-form small { color: var(--muted); font-weight: 400; }
.beta-form input, .beta-form textarea { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.beta-form input:focus, .beta-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.beta-form textarea { resize: vertical; }
.beta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.beta-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--text); font-size: 14px; cursor: pointer; }
.beta-close:hover { background: var(--text); color: var(--bg); }
.beta-msg { font-size: 14px; min-height: 1em; }
.beta-msg:empty { display: none; }
.beta-msg.ok { color: #4ade80; }
.beta-msg.err { color: var(--bad); }
.beta-form .pill { margin-top: 4px; }
.hp { position: absolute !important; top: 0; left: 0; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0; pointer-events: none; }

/* ---------- Adaptación a pantallas ---------- */

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(4n) { border-right: 1px solid var(--line); }
  .feature:nth-child(2n) { border-right: 0; }
  .checks-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 22px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-cta { display: flex; }
  .hero { min-height: auto; padding-bottom: 24px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-rev .split-visual { order: 0; }
  .split-visual { position: relative; top: 0; }
  /* En el celular la maqueta va justo después de la bajada, antes de la lista larga. */
  .split-text { display: contents; }
  .split > .split-visual { order: 1; }
  .split .checks, .split .compat { order: 2; }
  .split .checks { margin-top: 0; }
  .split .more-list { order: 3; }
  .split { row-gap: 0; }
  .split .lead { margin-bottom: 40px; }
  .split > .split-visual { margin-bottom: 40px; }
  .split h2, .sec-head h2 { max-width: none; }
  .stage { min-height: 0; }
  .case-main { grid-template-columns: 1fr; }
  .sec-head-row { grid-template-columns: 1fr; gap: 20px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .window-body { grid-template-columns: 1fr; }
  .demo-side { display: none; }
  .biz-rows li { grid-template-columns: 130px 1fr 24px; row-gap: 4px; }
  .biz-rows li small { grid-column: 2; grid-row: 2; }
  .biz-rows li::after { grid-column: 3; grid-row: 1; }
  .case-row summary { grid-template-columns: 170px 1fr 44px; }
  .case-body { grid-template-columns: 170px 1fr 1fr; }
}

@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; }
  .how li, .how li + li { padding: 24px 0 32px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; }
  .how span { grid-row: span 2; font-size: 64px; }
  .how h3 { margin: 6px 0 6px; }
  .case-row summary { grid-template-columns: 1fr 44px; row-gap: 8px; }
  .case-tag { grid-column: 1; }
  .case-q2 { grid-column: 1; }
  .case-row .plus { grid-column: 2; grid-row: 1 / span 2; }
  .case-body { grid-template-columns: 1fr; gap: 16px; }
  .case-body::before { content: none; }
  .case-cols { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .hero-meta-r { display: none; }
  .hero-meta { font-size: 11px; letter-spacing: .05em; }
  .hero-title { font-size: clamp(26px, 7.6vw, 34px); }
  .hero-actions .pill { flex: 1 1 100%; }
  .hero-points { flex-direction: column; gap: 6px; }
  .hero-points .hero-scroll { display: none; }
  .nav-cta .pill-solid { height: 36px; padding: 0 14px; font-size: 12px; }
  .nav-toggle { height: 36px; padding: 0 14px; }
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(4n) { border-right: 0; padding: 20px 0 24px; display: grid; grid-template-columns: 40px 1fr; column-gap: 8px; }
  .feature:hover { background: none; }
  .feature .num { grid-row: span 2; padding-top: 4px; }
  .feature h3 { margin: 0 0 6px; font-size: 19px; }
  .checks-grid { grid-template-columns: 1fr; }
  .checks li { padding-left: 36px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 24px; }
  .biz-rows li { grid-template-columns: 1fr 24px; padding: 18px 0; }
  .biz-rows li:hover { padding-left: 0; padding-right: 0; background: none; }
  .biz-rows .tag { grid-column: 1; grid-row: 1; }
  .biz-rows b { grid-column: 1; grid-row: 2; }
  .biz-rows li small { grid-column: 1; grid-row: 3; }
  .biz-rows li::after { grid-column: 2; grid-row: 1; }
  .case-before, .case-after { padding: 18px; }
  .stage { padding: 36px 14px 52px; border-radius: 22px; }
  .mock, .phone { transform: none; }
  .demo-chat { padding: 16px; }
  .demo-msg.user { max-width: 92%; }
  .hm-row { flex-wrap: wrap; }
  .exp-kpis b { font-size: 15px; }
  .cta-bottom .hero-actions { width: 100%; }
  .footer-top { flex-direction: column; }
  .faq details p { padding-right: 0; }
  .beta-row { grid-template-columns: 1fr; }
  .beta-form { padding: 22px 18px; }
  .mobile-menu-cta { grid-template-columns: 1fr; }
}

/* Respeta la preferencia del sistema de reducir el movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .demo-code, .demo-chart, .demo-answer, .hr-visual .hm-tools span, .hr-visual .hm-answer { opacity: 1; transform: none; }
  .hero-word .ch > span, .w > span { transform: none; }
  .sw { color: inherit; }
  .spark polyline { stroke-dashoffset: 0; }
  .trails path { stroke-dasharray: none; opacity: .5; }
  .marquee-track { transform: none; }
}

/* Las palabras gigantes son decorativas: su caja de texto es más alta que lo que se ve y no debe tapar los enlaces de arriba. */
.footer-word, .hero-word { pointer-events: none; }
.footer-top { position: relative; z-index: 1; }

/* LeiAI Hub y Feed my Pixel (producto aparte, en crm.leiai.online) */
.hub-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hub-card .hub-brand { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.hub-card .hub-brand img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }
.hub-card .hub-brand b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.hub-card .hub-brand span { font-size: 13px; }
@media (max-width: 1240px) and (min-width: 961px) { .nav-links { gap: 18px; } .nav-links a { font-size: 14px; } }
@media (max-width: 560px) { .hub-cta .pill { flex: 1 1 100%; justify-content: center; } }
@media (max-width: 960px) { .split .hub-cta { order: 3; margin-top: 8px; } }

/* Video de Feed my Pixel en la sección del Hub: YouTube (sin cookies) se carga solo al presionar reproducir */
.hub-stage { padding: clamp(24px, 3vw, 40px); }
.hub-vid { position: relative; width: 100%; }
.hub-vid .hub-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hub-vid .hub-brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.hub-vid .hub-brand b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.hub-vid .hub-brand span { font-size: 13px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.yt-btn { position: absolute; inset: 0; display: block; cursor: pointer; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.yt-btn:hover img { transform: scale(1.02); filter: brightness(1.08); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(5,6,8,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 0 8px rgba(0,212,255,.12); transition: transform .25s, box-shadow .25s; }
.yt-play::after { content: ''; position: absolute; left: 33px; top: 26px; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.yt-btn:hover .yt-play, .yt-btn:focus-visible .yt-play { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(0,212,255,.18); }
.yt-len { position: absolute; right: 14px; bottom: 12px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: #fff; background: rgba(5,6,8,.72); padding: 5px 10px; border-radius: 999px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .yt-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .yt-play::after { left: 25px; top: 20px; border-left-width: 19px; border-top-width: 12px; border-bottom-width: 12px; } }

/* Portada de LeiAI ERP en /erp (20-10-2026): el nombre del producto junto a la marca */
.nav-brand .nav-product { margin-left: 4px; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 11px/1.3 var(--mono, 'JetBrains Mono', monospace); letter-spacing: .04em; color: var(--accent); vertical-align: 2px; }
