/* ==========================================================================
   Lucas León · Growth Architect — Sistema visual
   Mobile-first · HTML semántico · Sin dependencias
   ========================================================================== */

/* Fuentes locales (sin dependencias externas) */
@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/manrope-400.woff2") format("woff2");}
@font-face{font-family:"Manrope";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/manrope-500.woff2") format("woff2");}
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/manrope-600.woff2") format("woff2");}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/manrope-700.woff2") format("woff2");}
@font-face{font-family:"Manrope";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/manrope-800.woff2") format("woff2");}
@font-face{font-family:"Play";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/play-400.woff2") format("woff2");}
@font-face{font-family:"Play";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/play-700.woff2") format("woff2");}

:root {
  --ink: #0a0c0f;
  --ink-2: #101318;
  --ink-3: #161a21;
  --line: rgba(236, 232, 225, 0.09);
  --line-strong: rgba(236, 232, 225, 0.18);
  --text: #ece8e1;
  --text-soft: #b7b4ae;
  --muted: #8a8c91;
  --accent: #4d7cff;
  --accent-soft: rgba(77, 124, 255, 0.14);
  --accent-glow: rgba(77, 124, 255, 0.35);
  --warm: #c49a6c;
  --warm-soft: rgba(196, 154, 108, 0.14);
  --paper: #f3efe8;
  --paper-2: #e9e3d9;
  --paper-ink: #14161a;
  --paper-muted: #5d5f63;
  --paper-line: rgba(20, 22, 26, 0.12);
  --ok: #3ecf8e;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-tech: "Play", "Manrope", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
  --section: clamp(84px, 12vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--ink2 { background: var(--ink-2); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-tech);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--accent { color: var(--accent); }
.section--paper .eyebrow { color: var(--paper-muted); }

.display {
  font-weight: 800;
  font-size: clamp(40px, 7.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-weight: 750;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-weight: 700;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.6; color: var(--text-soft); max-width: 62ch; }
.section--paper .lead { color: var(--paper-muted); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.warm { color: var(--warm); }
em.hl { font-style: normal; color: var(--accent); }
.section--paper em.hl { color: #2a55d6; }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 860px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--bh);
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.005em;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .35s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px var(--accent-glow); }
.btn--primary:hover { background: #5f8aff; transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--accent-glow); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.section--paper .btn--ghost { border-color: var(--paper-line); color: var(--paper-ink); }
.section--paper .btn--ghost:hover { border-color: var(--paper-ink); }
.btn--sm { --bh: 44px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.microcopy {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 14px; color: var(--muted);
}
.microcopy span { display: inline-flex; align-items: center; gap: 8px; }
.microcopy span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(62, 207, 142, .15); }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--accent); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .header.is-open {
  background: rgba(10, 12, 15, 0.92);
  border-bottom-color: var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .header.is-scrolled { background: rgba(10, 12, 15, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { display: block; font-weight: 800; letter-spacing: 0.06em; font-size: 17px; }
.brand__role { display: block; font-family: var(--font-tech); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: none; }
.nav__list { display: flex; gap: 6px; align-items: center; }
.nav__link {
  padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--text-soft);
  transition: color .25s, background-color .25s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 4px; }
.header__cta { display: none; }

.burger { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); position: relative; transition: transform .35s var(--ease), background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.header.is-open .burger span { background: transparent; }
.header.is-open .burger span::before { top: 0; transform: rotate(45deg); }
.header.is-open .burger span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--ink);
  padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 28px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .3s, transform .4s var(--ease), visibility 0s linear .4s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease); }
.mobile-menu__list { display: grid; border-top: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__list a span { font-family: var(--font-tech); font-size: 12px; color: var(--muted); letter-spacing: .2em; }
.mobile-menu__foot { display: grid; gap: 14px; margin-top: auto; }
body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 90px));
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 80%);
}
.hero__spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 30%), rgba(77, 124, 255, 0.13), transparent 60%);
  transition: background .1s linear;
}
.hero__inner { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 28px; }
.hero__title .line { display: block; }
.hero__title .accent-word { color: var(--accent); }
.hero__sub { max-width: 560px; }
.hero__pillars {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-tech); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
}
.hero__pillars li { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-soft); }

.hero__visual { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.portrait {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #2b241e;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.02); }
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,12,15,.72) 100%);
}
.portrait__tag {
  position: absolute; left: 18px; bottom: 18px; right: 18px; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
}
.portrait__tag strong { display: block; font-size: 18px; letter-spacing: -0.01em; }
.portrait__tag small { font-family: var(--font-tech); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); background: rgba(10,12,15,.6); border: 1px solid var(--line-strong); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62,207,142,.55);} 70% { box-shadow: 0 0 0 9px rgba(62,207,142,0);} 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0);} }

/* Sistema flotante (Marketing → Ventas → Tecnología → IA) */
.sys-chain {
  position: relative; margin-top: 16px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 10px; border: 1px solid var(--line-strong); border-radius: 16px;
  background: rgba(16, 19, 24, 0.85);
}
.sys-chain__node {
  position: relative; text-align: center; padding: 12px 4px 10px; border-radius: 10px;
  font-family: var(--font-tech); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft);
  background: rgba(255,255,255,.02);
  transition: color .4s, background-color .4s;
}
.sys-chain__node b { display: block; font-family: var(--font-sans); font-size: 10px; color: var(--muted); letter-spacing: .1em; margin-bottom: 4px; }
.sys-chain__node.is-live { color: #fff; background: var(--accent-soft); }
.sys-chain__node.is-live b { color: var(--accent); }
.sys-chain__node:not(:last-child)::after {
  content: ""; position: absolute; right: -6px; top: 50%; width: 6px; height: 1px; background: var(--line-strong);
}

@media (min-width: 1024px) {
  .hero { min-height: min(100vh, 980px); display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1.25fr 0.85fr; }
  .hero__visual { justify-self: end; }
  .sys-chain { position: absolute; left: -64px; right: 40px; bottom: -34px; margin: 0; }
  @supports (backdrop-filter: blur(8px)) { .sys-chain { background: rgba(16,19,24,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
}

/* ---------- Marquee de sistemas ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink-2); }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 22px; padding: 20px 22px;
  font-family: var(--font-tech); text-transform: uppercase; letter-spacing: .2em; font-size: 13px; color: var(--text-soft); white-space: nowrap;
}
.ticker__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Problema (paper) ---------- */
.problem-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.symptoms { border-top: 1px solid var(--paper-line); }
.symptom {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--paper-line);
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.01em;
}
.symptom__n { font-family: var(--font-tech); font-size: 13px; color: var(--paper-muted); letter-spacing: .12em; }
.symptom__txt span { color: var(--paper-muted); font-weight: 500; }
.problem-close {
  margin-top: 40px; padding: 28px; border-radius: var(--radius);
  background: var(--paper-ink); color: var(--paper);
  font-size: clamp(19px, 1.8vw, 23px); font-weight: 650; line-height: 1.45; letter-spacing: -0.01em;
}
.problem-close strong { color: #8fb0ff; font-weight: 750; }
@media (min-width: 1024px) {
  .problem-grid { grid-template-columns: 0.9fr 1.1fr; }
  .problem-grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; margin-bottom: 0; }
}

/* ---------- Método (flujo) ---------- */
.flow { position: relative; margin-top: clamp(48px, 6vw, 72px); }
.flow__track {
  display: grid; gap: 0;
  counter-reset: flow;
}
.flow__step {
  position: relative; padding: 0 0 30px 44px;
}
.flow__step::before {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 1px; background: var(--line-strong);
}
.flow__step:last-child::before { display: none; }
.flow__dot {
  position: absolute; left: 0; top: 2px; width: 23px; height: 23px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--ink); display: grid; place-items: center;
  transition: border-color .5s, background-color .5s, box-shadow .5s;
}
.flow__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background-color .5s; }
.flow__step.is-on .flow__dot { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.flow__step.is-on .flow__dot::after { background: var(--accent); }
.flow__label { font-family: var(--font-tech); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.flow__desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (min-width: 1024px) {
  .flow__track { grid-template-columns: repeat(7, 1fr); }
  .flow__step { padding: 44px 16px 0 0; }
  .flow__step::before { left: 23px; right: 0; top: 11px; bottom: auto; width: auto; height: 1px; }
  .flow__step:last-child::before { display: none; }
  .flow__dot { top: 0; }
}
.architect-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .architect-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; } }
.quote-block {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 24px;
  font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--text); font-weight: 600;
}

/* ---------- Cada empresa es distinta ---------- */
.unique { overflow: hidden; }
.unique__statement { font-weight: 800; font-size: clamp(34px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.unique__statement .strike { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--warm); }
.factors { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: clamp(48px, 6vw, 72px); }
.factor { background: var(--ink); padding: 28px 24px; display: grid; gap: 10px; }
.factor__k { font-family: var(--font-tech); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--warm); }
.factor h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.factor p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 640px) { .factors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .factors { grid-template-columns: repeat(4, 1fr); } }

/* Simulador de sectores */
.sector-lab {
  margin-top: clamp(56px, 7vw, 96px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  overflow: hidden;
}
.sector-lab__head { padding: 26px 24px 0; display: grid; gap: 10px; }
.sector-lab__head p { color: var(--muted); font-size: 15px; }
.sector-tabs {
  display: flex; gap: 8px; padding: 20px 24px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.sector-tabs::-webkit-scrollbar { display: none; }
.sector-tab {
  flex: none; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14.5px; font-weight: 650; color: var(--text-soft);
  transition: background-color .25s, color .25s, border-color .25s;
}
.sector-tab:hover { color: var(--text); border-color: var(--text-soft); }
.sector-tab[aria-selected="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.sector-panel { padding: 28px 24px 32px; display: grid; gap: 32px; }
.sector-panel[hidden] { display: none; }
.sector-panel__goal { display: grid; gap: 6px; }
.sector-panel__goal small { font-family: var(--font-tech); letter-spacing: .2em; text-transform: uppercase; font-size: 11.5px; color: var(--muted); }
.sector-panel__goal strong { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.25; }
.bottleneck { padding: 16px 18px; border-radius: 12px; background: var(--warm-soft); border: 1px solid rgba(196,154,108,.25); color: var(--text); font-size: 15.5px; }
.bottleneck b { color: var(--warm); font-family: var(--font-tech); letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; display: block; margin-bottom: 4px; }
.priority { display: grid; gap: 10px; }
.priority__row { display: grid; grid-template-columns: 118px 1fr 42px; gap: 12px; align-items: center; font-size: 14px; }
.priority__row span:first-child { font-family: var(--font-tech); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--text-soft); }
.priority__bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; }
.priority__bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 8px; background: var(--accent); transition: width 1s var(--ease); }
.priority__bar i.low { background: #3a4150; }
.priority__row em { font-style: normal; font-family: var(--font-tech); font-size: 12px; color: var(--muted); text-align: right; }
.first-steps { display: grid; gap: 10px; counter-reset: fs; }
.first-steps li { counter-increment: fs; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 15.5px; color: var(--text-soft); }
.first-steps li::before { content: counter(fs, decimal-leading-zero); font-family: var(--font-tech); font-size: 12px; color: var(--accent); padding-top: 3px; }
.sector-lab__note { padding: 18px 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.sector-lab__note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
@media (min-width: 900px) {
  .sector-lab__head { padding: 36px 40px 0; grid-template-columns: 1fr auto; align-items: end; }
  .sector-tabs { padding: 24px 40px; }
  .sector-panel { padding: 40px; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
  .sector-lab__note { padding: 20px 40px; }
}
.unique__close { margin-top: clamp(48px, 6vw, 72px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .unique__close { grid-template-columns: 1fr auto; } }
.unique__close p { font-size: clamp(20px, 2vw, 26px); font-weight: 650; letter-spacing: -0.015em; line-height: 1.35; max-width: 760px; }

/* ---------- Cinco sistemas ---------- */
.systems { display: grid; gap: 14px; }
.system {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ink-2);
  overflow: hidden; transition: border-color .35s, background-color .35s;
}
.system:hover { border-color: var(--line-strong); }
.system.is-open { border-color: rgba(77,124,255,.45); background: linear-gradient(180deg, rgba(77,124,255,.07), var(--ink-2) 60%); }
.system__btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 24px; text-align: left; }
.system__n { font-family: var(--font-tech); font-size: 14px; color: var(--accent); letter-spacing: .12em; }
.system__title { display: grid; gap: 4px; }
.system__title strong { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; font-weight: 750; line-height: 1.1; }
.system__title span { color: var(--muted); font-size: 15.5px; }
.system__icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .4s var(--ease), background-color .3s; }
.system__icon svg { width: 16px; height: 16px; }
.system.is-open .system__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.system__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.system.is-open .system__body { grid-template-rows: 1fr; }
.system__body > div { overflow: hidden; }
.system__content { padding: 0 24px 26px; display: grid; gap: 18px; }
@media (min-width: 768px) { .system__content { padding-left: 76px; grid-template-columns: 1.2fr 1fr; gap: 32px; } .system__btn { padding: 28px 28px; } }
.system__content p { color: var(--text-soft); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tag { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-soft); }
.section--paper .tag { background: rgba(20,22,26,.04); border-color: var(--paper-line); color: var(--paper-ink); }

/* Diagrama de sistemas conectados */
.system-map { margin: 0 auto clamp(40px, 5vw, 64px); max-width: 1000px; }
.system-map svg { width: 100%; height: auto; overflow: visible; }
.system-map .node-rect { fill: var(--ink-2); stroke: var(--line-strong); transition: stroke .4s, fill .4s; }
.system-map .node-label { fill: var(--text); font-family: var(--font-tech); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.system-map .node-n { fill: var(--accent); font-family: var(--font-tech); font-size: 11px; letter-spacing: 1px; }
.system-map .edge { stroke: var(--line-strong); stroke-width: 1.2; fill: none; }
.system-map .edge-flow { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-dasharray: 6 10; animation: dash 1.6s linear infinite; opacity: .8; }
.system-map .node.is-hot .node-rect { stroke: var(--accent); fill: rgba(77,124,255,.12); }
@keyframes dash { to { stroke-dashoffset: -32; } }
.system-map--mobile { display: block; }
.system-map--desktop { display: none; }
@media (min-width: 768px) { .system-map--mobile { display: none; } .system-map--desktop { display: block; } }

/* ---------- Cómo trabajo (proceso) ---------- */
.process { display: grid; gap: 14px; counter-reset: p; }
.process__item {
  position: relative; display: grid; gap: 14px;
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--paper-line);
  color: var(--paper-ink);
}
.process__item--key { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.process__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.process__n { font-family: var(--font-tech); font-size: 40px; line-height: 1; color: rgba(20,22,26,.18); letter-spacing: -0.02em; }
.process__item--key .process__n { color: rgba(243,239,232,.25); }
.process__badge { font-family: var(--font-tech); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(42,85,214,.1); color: #2a55d6; white-space: nowrap; }
.process__item--key .process__badge { background: rgba(143,176,255,.16); color: #8fb0ff; }
.process__item h3 { font-size: 21px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.process__item p { color: var(--paper-muted); font-size: 15.5px; }
.process__item--key p { color: #c9c5bd; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .process { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .process__item { padding: 26px 22px 30px; min-height: 330px; align-content: start; }
  .process__item h3 { margin-top: auto; }
}

/* ---------- Capacidades de implementación ---------- */
.caps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cap { background: var(--ink); padding: 30px 26px; display: grid; gap: 16px; align-content: start; transition: background-color .35s; }
.cap:hover { background: var(--ink-2); }
.cap__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.cap__icon svg { width: 22px; height: 22px; }
.cap h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.cap ul { display: grid; gap: 8px; }
.cap li { color: var(--text-soft); font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.cap li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-2px); }
@media (min-width: 640px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .caps { grid-template-columns: repeat(5, 1fr); } }
.caps-note { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; color: var(--text-soft); font-size: 16px; max-width: 820px; }
.caps-note svg { width: 20px; height: 20px; flex: none; color: var(--warm); margin-top: 3px; }

/* ---------- Sobre Lucas ---------- */
.about { display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__photo { position: relative; max-width: 460px; width: 100%; }
.about__photo .portrait { aspect-ratio: 1 / 1; }
.about__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); z-index: -1;
}
.about__copy { display: grid; gap: 24px; }
.about__copy p { color: var(--text-soft); }
.about__sign { font-family: var(--font-tech); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
@media (min-width: 1024px) { .about { grid-template-columns: .8fr 1.2fr; } }

.manifesto { display: grid; gap: 18px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.manifesto p { color: var(--muted); transition: color .6s; }
.manifesto p.is-visible, .manifesto p.lit { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.section--paper .faq { border-color: var(--paper-line); }
.faq details { border-bottom: 1px solid var(--line); }
.section--paper .faq details { border-color: var(--paper-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; position: relative; transition: transform .35s var(--ease), background-color .3s; }
.section--paper .faq summary i { border-color: var(--paper-line); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details[open] summary i { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq__a { padding: 0 0 26px; color: var(--text-soft); max-width: 780px; display: grid; gap: 12px; }
.section--paper .faq__a { color: var(--paper-muted); }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 110%, rgba(77,124,255,.28), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 70%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 70%, #000 30%, transparent 85%);
}
.cta-final__inner { display: grid; gap: 28px; justify-items: center; max-width: 900px; margin-inline: auto; }
.cta-final .microcopy { justify-content: center; }

/* ---------- Page hero (internas) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero .hero__grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 80% 0%, #000 20%, transparent 75%); }
.page-hero__inner { display: grid; gap: 26px; max-width: 980px; }
.page-hero .display { font-size: clamp(38px, 6.4vw, 84px); }
.breadcrumbs { font-size: 13.5px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Bloques internos ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1024px) { .split { grid-template-columns: .9fr 1.1fr; } .split--even { grid-template-columns: 1fr 1fr; } }
.prose { display: grid; gap: 18px; color: var(--text-soft); max-width: 68ch; }
.prose strong { color: var(--text); }
.section--paper .prose { color: var(--paper-muted); }
.section--paper .prose strong { color: var(--paper-ink); }

.compare { display: grid; gap: 14px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border-radius: var(--radius-lg); padding: 30px 26px; display: grid; gap: 18px; align-content: start; }
.compare__col--bad { border: 1px dashed var(--paper-line); background: transparent; }
.compare__col--good { background: var(--paper-ink); color: var(--paper); }
.compare__col h3 { font-size: 21px; font-weight: 750; letter-spacing: -.01em; }
.compare__col ul { display: grid; gap: 12px; }
.compare__col li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.compare__col--bad li { color: var(--paper-muted); }
.compare__col li svg { width: 18px; height: 18px; margin-top: 4px; }
.compare__col--good li svg { color: #8fb0ff; }

.sys-detail { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.sys-detail__row { background: var(--ink); padding: clamp(36px, 5vw, 64px) 0; }
.sys-detail__grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .sys-detail__grid { grid-template-columns: 120px 1fr 1fr; gap: 56px; } }
.sys-detail__n { font-family: var(--font-tech); font-size: clamp(42px, 5vw, 64px); line-height: 1; color: var(--accent); }
.sys-detail__head { display: grid; gap: 12px; }
.sys-detail__head h3 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.025em; font-weight: 800; line-height: 1.05; }
.sys-detail__head p { color: var(--text-soft); }
.sys-detail__side { display: grid; gap: 18px; align-content: start; }
.sys-detail__q { font-size: 15px; color: var(--muted); border-left: 2px solid var(--warm); padding-left: 16px; }
.sys-detail__q b { display: block; color: var(--warm); font-family: var(--font-tech); letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; margin-bottom: 6px; }

.cards-3 { display: grid; gap: 14px; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; background: var(--ink-2); display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card__k { font-family: var(--font-tech); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.section--paper .card { background: #fff; border-color: var(--paper-line); }
.section--paper .card p { color: var(--paper-muted); }
.section--paper .card__k { color: #2a55d6; }

/* Servicios */
.svc-group { display: grid; gap: 28px; padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .svc-group { grid-template-columns: 340px 1fr; gap: 64px; } }
.svc-group__head { display: grid; gap: 12px; align-content: start; }
.svc-group__head .system__n { font-size: 13px; }
.svc-group__head h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.svc-group__head p { color: var(--muted); font-size: 15.5px; }
.svc-list { display: grid; gap: 12px; }
@media (min-width: 768px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--ink-2); display: grid; gap: 10px; align-content: start; }
.svc h3 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.svc p { color: var(--muted); font-size: 15px; }
.svc__ref { font-family: var(--font-tech); font-size: 12.5px; letter-spacing: .06em; color: var(--text-soft); padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.svc__ref span { color: var(--muted); }

.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 24px; border-radius: var(--radius-lg);
  border: 1px solid rgba(196,154,108,.3); background: var(--warm-soft);
}
.notice svg { width: 26px; height: 26px; color: var(--warm); }
.notice h3 { font-size: 19px; font-weight: 750; margin-bottom: 6px; letter-spacing: -.01em; }
.notice p { color: var(--text-soft); font-size: 15.5px; }

/* ---------- Diagnóstico: formulario ---------- */
.diag-layout { display: grid; gap: clamp(40px, 5vw, 64px); align-items: start; }
@media (min-width: 1100px) { .diag-layout { grid-template-columns: .85fr 1.15fr; } .diag-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.diag-aside { display: grid; gap: 22px; }
.checklist { display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--text-soft); font-size: 16px; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.section--paper .checklist li { color: var(--paper-muted); }
.checklist--no svg { color: #e0795f; }

.form-card { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: 0 40px 100px -50px rgba(0,0,0,.9); }
.form-card__head { display: grid; gap: 10px; margin-bottom: 28px; }
.form-card__head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.form-card__head p { color: var(--paper-muted); font-size: 15.5px; }
.form-progress { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; margin-bottom: 28px; }
.form-progress i { display: block; height: 100%; width: 0; background: #2a55d6; border-radius: 4px; transition: width .5s var(--ease); }
.fieldset { border: 0; padding: 0; margin: 0 0 30px; display: grid; gap: 18px; }
.fieldset legend { font-family: var(--font-tech); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-muted); padding: 0; margin-bottom: 18px; display: flex; gap: 10px; align-items: center; width: 100%; }
.fieldset legend::after { content: ""; flex: 1; height: 1px; background: var(--paper-line); }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14.5px; font-weight: 700; color: var(--paper-ink); }
.field .opt { font-weight: 500; color: var(--paper-muted); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(20,22,26,.16); color: var(--paper-ink);
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 104px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314161a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a98; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #2a55d6; box-shadow: 0 0 0 4px rgba(42,85,214,.14); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d14b2f; }
.field__err { font-size: 13px; color: #c23e22; display: none; }
.field.is-invalid .field__err { display: block; }
.field__hint { font-size: 13px; color: var(--paper-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(20,22,26,.16); background: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .2s; user-select: none; }
.chip span:hover { border-color: var(--paper-ink); }
.chip input:checked + span { background: var(--paper-ink); color: var(--paper); border-color: var(--paper-ink); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(42,85,214,.25); }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--paper-muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #2a55d6; }
.consent a { color: #2a55d6; text-decoration: underline; text-underline-offset: 3px; }
.form-foot { display: grid; gap: 14px; margin-top: 8px; }
.form-foot .btn--primary { background: #2a55d6; }
.form-foot .btn--primary:hover { background: #3563ea; }
.form-foot small { font-size: 13px; color: var(--paper-muted); text-align: center; }
.form-status { font-size: 14px; color: #c23e22; min-height: 1em; text-align: center; }
.btn.is-sending { opacity: .7; pointer-events: none; }

.after-steps { display: grid; gap: 12px; counter-reset: as; }
.after-steps li { counter-increment: as; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.after-steps li::before { content: counter(as, decimal-leading-zero); font-family: var(--font-tech); color: var(--accent); font-size: 15px; }
.after-steps b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.after-steps span { color: var(--muted); font-size: 15px; }

/* Confirmación */
.confirm { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 80px; position: relative; overflow: hidden; isolation: isolate; }
.confirm__inner { display: grid; gap: 26px; justify-items: center; max-width: 760px; }
.confirm__badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(62,207,142,.12); color: var(--ok); border: 1px solid rgba(62,207,142,.35); }
.confirm__badge svg { width: 36px; height: 36px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .9s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm .after-steps { text-align: left; width: 100%; }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 24px; font-weight: 750; letter-spacing: -.015em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 100px) 0 32px; }
.footer__top { display: grid; gap: 48px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__brand { display: grid; gap: 18px; max-width: 420px; }
.footer__brand p { color: var(--muted); font-size: 15.5px; }
.footer h3 { font-family: var(--font-tech); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 400; }
.footer ul { display: grid; gap: 12px; }
.footer a { color: var(--text-soft); transition: color .2s; }
.footer a:hover { color: var(--text); }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--muted); }
.footer__big { font-weight: 800; font-size: clamp(44px, 12vw, 170px); letter-spacing: -0.05em; line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--line-strong); margin: clamp(56px, 8vw, 96px) 0 28px; white-space: nowrap; overflow: hidden; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__bottom a { color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #0a0c0f;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.55);
  transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float__tip { position: absolute; right: 70px; white-space: nowrap; background: var(--text); color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 8px 12px; border-radius: 10px; opacity: 0; transform: translateX(6px); transition: all .3s var(--ease); pointer-events: none; }
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }

/* Barra CTA móvil */
.mobile-cta {
  position: fixed; left: 12px; right: 84px; bottom: 18px; z-index: 89;
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { width: 100%; --bh: 58px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.7); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }

/* ---------- Reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.hero-in { opacity: 0; transform: translateY(22px); animation: heroIn 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Solo efectos intrusivos se reducen */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation-duration: 90s; }
  .system-map .edge-flow { animation: none; }
}

/* ---------- Utilidades responsive ---------- */
.only-desktop { display: none; }
@media (min-width: 1024px) { .only-desktop { display: initial; } .only-mobile { display: none; } }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: clamp(32px, 4vw, 48px); }
.center { text-align: center; }
.max-760 { max-width: 760px; }

/* Diagnóstico page: header simplificado */
.header--focus .nav, .header--focus .burger { display: none !important; }
.header--focus .header__cta { display: inline-flex; }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .btn { padding: 0 20px; font-size: 15.5px; }
  .btn-row .btn { width: 100%; }
  .priority__row { grid-template-columns: 96px 1fr 36px; }
  .system__btn { gap: 14px; padding: 20px; }
  .system__content { padding: 0 20px 22px; }
}

/* Evitar desbordes por min-content en grids y fieldsets */
.fieldset { min-width: 0; }
.diag-layout > *, .split > *, .hero__inner > *, .about > *, .faq-grid > *, .problem-grid > *, .architect-grid > * { min-width: 0; }
.field select { text-overflow: ellipsis; }
.chip { position: relative; }
.field .chip input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; left: 0; top: 0; }
.btn--block { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
/* Ajustes finales */
.nav__link { position: relative; display: inline-block; }
.nav__link[aria-current="page"]::after { position: absolute; left: 14px; right: 14px; bottom: 4px; margin: 0; }
.about__photo { isolation: isolate; }
@media (min-width: 1024px) { .portrait__tag { bottom: 58px; } }
.row-2 { align-items: end; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-cards { display: grid; gap: 16px; }
@media (min-width: 720px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-cards { grid-template-columns: repeat(3, 1fr); } }
.post-card {
  position: relative; display: grid; gap: 14px; align-content: start;
  padding: 28px 24px 26px; border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid var(--line);
  transition: border-color .35s, transform .45s var(--ease), background-color .35s;
}
.post-card:hover { border-color: rgba(77,124,255,.45); transform: translateY(-4px); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.cat { font-family: var(--font-tech); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); }
.post-card h3 { font-size: clamp(20px, 1.8vw, 23px); font-weight: 750; letter-spacing: -.015em; line-height: 1.22; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card p { color: var(--muted); font-size: 15.5px; }
.post-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13.5px; }
.post-card__pdf { display: inline-flex; gap: 8px; align-items: center; color: var(--warm); font-weight: 650; }
.post-card__pdf svg { width: 16px; height: 16px; }
.post-card__go { color: var(--text); display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.post-card__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.post-card:hover .post-card__go svg { transform: translateX(4px); }
.post-card__n { position: absolute; right: 22px; top: 22px; font-family: var(--font-tech); font-size: 12px; color: var(--muted); }

.post-featured { display: grid; gap: 28px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(135deg, rgba(77,124,255,.10), var(--ink-2) 55%); position: relative; margin-bottom: 16px; }
.post-featured h2 { font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.post-featured h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (min-width: 1024px) { .post-featured { grid-template-columns: 1.3fr .7fr; align-items: end; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; font-weight: 650; color: var(--text-soft); transition: all .25s; }
.filter:hover { color: var(--text); border-color: var(--text-soft); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.post-card[hidden] { display: none; }

/* Biblioteca de recursos */
.res-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }
.res {
  display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start;
  padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--paper-line); color: var(--paper-ink);
}
.res__doc { width: 76px; aspect-ratio: 210/297; border-radius: 6px; background: var(--ink); position: relative; overflow: hidden; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.res__doc::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 8px 8px; }
.res__doc b { position: absolute; left: 7px; right: 7px; bottom: 10px; font-size: 8px; line-height: 1.15; color: #ece8e1; font-weight: 800; }
.res__doc i { position: absolute; left: 7px; top: 8px; font-style: normal; font-family: var(--font-tech); font-size: 5.5px; letter-spacing: .1em; color: #8a8c91; }
.res__doc span { position: absolute; left: 7px; bottom: 34px; width: 18px; height: 2px; background: var(--accent); }
.res h3 { font-size: 17.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 6px; }
.res p { font-size: 14.5px; color: var(--paper-muted); margin-bottom: 12px; }
.res__actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
.res__actions a { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.res__actions a svg { width: 16px; height: 16px; }
.res__actions .dl { color: #2a55d6; }
.res__actions .rd { color: var(--paper-muted); }
.res small { font-family: var(--font-tech); letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; color: var(--paper-muted); }

/* Artículo */
.article-hero { padding-top: calc(var(--header-h) + clamp(44px, 7vw, 90px)); padding-bottom: clamp(40px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.article-hero .hero__grid-bg { -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 75%); }
.article-hero__inner { display: grid; gap: 22px; max-width: 920px; }
.article-hero h1 { font-weight: 800; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -.032em; text-wrap: balance; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 14px; color: var(--muted); }
.byline__author { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.byline__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.byline span + span::before { content: "·"; margin-right: 18px; opacity: .6; }

.article-layout { display: grid; gap: 48px; padding-block: clamp(44px, 6vw, 80px); }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; } .article-aside { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; } }
.article-aside { display: grid; gap: 16px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.toc summary { list-style: none; cursor: pointer; padding: 16px 18px; font-family: var(--font-tech); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-family: var(--font-sans); font-size: 18px; line-height: 1; color: var(--text); }
.toc[open] summary::after { content: "–"; }
.toc ol { padding: 0 18px 16px; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 0; font-size: 14px; color: var(--text-soft); line-height: 1.4; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-tech); font-size: 11px; color: var(--muted); padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--text); }
.toc a.is-active::before { color: var(--accent); }

.res-card { border-radius: var(--radius-lg); padding: 22px; background: var(--paper); color: var(--paper-ink); display: grid; gap: 12px; }
.res-card small { font-family: var(--font-tech); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #9a6a3f; }
.res-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.res-card p { font-size: 14.5px; color: var(--paper-muted); }
.res-card ul { display: grid; gap: 6px; }
.res-card li { font-size: 14px; display: grid; grid-template-columns: 18px 1fr; gap: 8px; color: var(--paper-ink); }
.res-card li svg { width: 16px; height: 16px; color: #2a55d6; margin-top: 3px; }
.res-card .btn { background: var(--paper-ink); color: var(--paper); box-shadow: none; }
.res-card .btn:hover { background: #000; }
.res-card .meta { font-size: 12.5px; color: var(--paper-muted); text-align: center; }
.aside-cta { border-radius: var(--radius-lg); padding: 22px; border: 1px solid rgba(77,124,255,.4); background: linear-gradient(180deg, rgba(77,124,255,.10), transparent); display: grid; gap: 12px; }
.aside-cta h3 { font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.aside-cta p { font-size: 14.5px; color: var(--text-soft); }

.prose-article { max-width: 720px; font-size: 18px; line-height: 1.75; color: var(--text-soft); }
.prose-article > .lead-p { font-size: clamp(19px, 1.7vw, 22px); color: var(--text); line-height: 1.6; margin-bottom: 36px; font-weight: 500; }
.prose-article h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--text); margin: 56px 0 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose-article h3 { font-size: 21px; font-weight: 750; color: var(--text); margin: 32px 0 12px; }
.prose-article p { margin-bottom: 20px; }
.prose-article strong { color: var(--text); font-weight: 700; }
.prose-article em { color: var(--text); }
.prose-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose-article a:hover { text-decoration-thickness: 2px; }
.prose-article ul, .prose-article ol { margin: 0 0 24px; display: grid; gap: 10px; }
.prose-article ul li { position: relative; padding-left: 24px; }
.prose-article ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose-article ol { counter-reset: ol; }
.prose-article ol li { counter-increment: ol; position: relative; padding-left: 38px; }
.prose-article ol li::before { content: counter(ol, decimal-leading-zero); position: absolute; left: 0; top: .25em; font-family: var(--font-tech); font-size: 13px; color: var(--accent); }
.prose-article blockquote { margin: 32px 0; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--ink-2); border-radius: 0 var(--radius) var(--radius) 0; font-size: clamp(19px, 1.8vw, 22px); font-weight: 700; color: var(--text); line-height: 1.45; letter-spacing: -.01em; }
.table-wrap { overflow-x: auto; margin: 8px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.table-wrap th { text-align: left; font-family: var(--font-tech); font-weight: 400; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--ink-2); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--text); font-weight: 650; }

.inline-res { margin: 44px 0; display: grid; gap: 18px; grid-template-columns: 64px 1fr; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--paper); color: var(--paper-ink); }
.inline-res .res__doc { width: 64px; }
.inline-res strong { color: var(--paper-ink) !important; display: block; font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
.inline-res span { font-size: 14.5px; color: var(--paper-muted); line-height: 1.5; display: block; }
.inline-res .btn { grid-column: 1 / -1; background: var(--paper-ink); color: var(--paper); text-decoration: none !important; }
@media (min-width: 720px) { .inline-res { grid-template-columns: 64px 1fr auto; } .inline-res .btn { grid-column: auto; } }

.diag-box { margin: 48px 0 12px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg); border: 1px solid rgba(77,124,255,.45); background: linear-gradient(135deg, rgba(77,124,255,.12), var(--ink-2) 70%); display: grid; gap: 16px; }
.diag-box h2 { margin: 0 !important; font-size: clamp(24px, 2.4vw, 30px) !important; }
.diag-box p { margin: 0 !important; }
.diag-box .btn { text-decoration: none !important; color: #fff !important; justify-self: start; }

.author-box { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; max-width: 720px; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box strong { display: block; font-size: 17px; color: var(--text); }
.author-box small { font-family: var(--font-tech); letter-spacing: .18em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.author-box p { font-size: 15.5px; color: var(--muted); margin-top: 8px; }
.article-faq { max-width: 720px; margin-top: 56px; }
.article-faq h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 18px; }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 28px; font-size: 14px; color: var(--muted); }
.share a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); font-weight: 650; }
.share a:hover { color: var(--text); border-color: var(--text-soft); }
.share svg { width: 16px; height: 16px; }
.progress-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 101; }
@media (max-width: 1099px) { .article-aside .res-card, .article-aside .aside-cta { display: none; } .article-aside { order: -1; } }
.home-blog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.article-layout > * { min-width: 0; }
