/* INC Analytics — tokens según Manual de marca Inconplan (Gama Tierra)
   Excepción del sitio comercial: el título principal escala hasta 68 px y el cuerpo
   usa 16 px; la escala del manual (display 44 px, cuerpo 14 px) rige para producto. */
:root {
  --graphite-900: #1E2022;
  --graphite-800: #2B2D2F;
  --graphite-700: #3D4043;
  --graphite-600: #55585B;
  --graphite-500: #6E7174;
  --graphite-400: #8E9093;

  --ochre-700: #9A5829;
  --ochre-600: #B86B35;
  --ochre-500: #C9834F;
  --ochre-300: #E2B58F;
  --ochre-100: #F5E8DC;
  --ochre-50: #FAF3EC;

  --terracotta-900: #5E321A;
  --terracotta-700: #8A4B27;
  --terracotta-100: #F1E4DA;

  --sand-50: #FDFCF7;
  --sand-100: #F7F5F0;
  --sand-200: #EFEBE3;
  --sand-300: #E3DDD4;
  --sand-400: #CFC7BB;
  --sand-500: #A9A093;

  --success-700: #3F6B47; --success-100: #E3ECE2;
  /* Advertencia oscurecida de #8C6A12 a #7A5C0F para cumplir AA (5,28:1) */
  --warn-700: #7A5C0F;    --warn-100: #F4ECD3;
  --error-700: #9B3328;   --error-100: #F3E0DC;
  --info-700: #3D5A70;    --info-100: #E1E8EE;

  --text-primary: var(--graphite-800);
  --text-secondary: var(--graphite-600);
  --text-muted: var(--graphite-500);
  --text-inverse: var(--sand-50);
  --text-accent: var(--terracotta-700);
  --text-link: var(--ochre-700);
  --surface-page: var(--sand-100);
  --surface-card: var(--sand-50);
  --surface-sunken: var(--sand-200);
  --surface-inverse: var(--graphite-800);
  --border-subtle: var(--sand-300);
  --border-default: var(--sand-400);
  /* Excepción del sitio: el primario usa Ocre 700 porque el blanco sobre Ocre 600
     da 4,04:1 y no cumple WCAG AA. Ocre 700 da 5,52:1. */
  --action-primary: var(--ochre-700);
  --action-primary-hover: var(--terracotta-700);
  --action-primary-active: var(--terracotta-900);
  --action-on-primary: #FFFFFF;
  --border-control: var(--graphite-400); /* 3,2:1 en campos de formulario (WCAG 1.4.11) */
  --icon-default: var(--graphite-600);
  --focus-ring: 0 0 0 3px rgba(184, 107, 53, .28);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(43,45,47,.06), 0 1px 3px rgba(43,45,47,.04);
  --shadow-md: 0 2px 4px rgba(43,45,47,.05), 0 6px 16px rgba(43,45,47,.06);
  --shadow-lg: 0 8px 24px rgba(43,45,47,.10), 0 2px 6px rgba(43,45,47,.05);

  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 260ms;
  --ease: cubic-bezier(.2, 0, 0, 1);

  --max: 1320px;
  --gutter: 32px;
  --header-h: 72px;

  --logo-ink: var(--graphite-800);
  --logo-accent: var(--ochre-600);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-link); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: inherit; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 16px; }
code { font-family: var(--font-mono); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ochre-600); outline-offset: 2px; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface-card); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.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; }

/* Overline */
.overline {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.overline--accent { color: var(--text-accent); }
.overline--light { color: var(--ochre-300); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500;
  border: 1px solid transparent; border-radius: var(--radius-md);
  cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn--md { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--action-primary); color: var(--action-on-primary); }
.btn--primary:hover { background: var(--action-primary-hover); }
.btn--primary:active { background: var(--action-primary-active); }
.btn--dark { background: var(--graphite-800); color: var(--text-inverse); }
.btn--dark:hover { background: var(--graphite-700); }
.btn--ghost-inverse { color: var(--text-inverse); border-color: var(--graphite-500); }
.btn--ghost-inverse:hover { background: var(--graphite-700); border-color: var(--graphite-400); }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-link); }
.link:hover { color: var(--terracotta-700); }
.link:hover .icon { transform: translateX(3px); }
.link .icon { transition: transform var(--dur-base) var(--ease); width: 16px; height: 16px; }

/* Anuncio */
.announce { background: var(--graphite-900); color: var(--sand-300); font-size: 13px; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce p { margin: 0; }
.announce a { display: inline-flex; align-items: center; gap: 4px; color: var(--ochre-300); font-weight: 500; }
.announce a:hover { color: var(--sand-50); }
.announce .icon { width: 14px; height: 14px; }

/* Encabezado */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-subtle);
  transition: box-shadow var(--dur-base) var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand__logo { width: 92px; height: 68px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 15px; font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease);
}
.nav ul a:hover { background: var(--sand-200); }
.nav ul a.is-active { background: var(--sand-200); box-shadow: inset 0 -3px 0 var(--ochre-600); }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-default); border-radius: var(--radius-md);
  color: var(--text-primary); cursor: pointer;
}

/* Hero */
.hero { background: var(--surface-inverse); color: var(--text-inverse); padding: 88px 0 0; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: var(--surface-page); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-bottom: 72px; }
.hero .overline { color: var(--ochre-300); }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 24px;
}
.lead { font-size: 18px; color: var(--sand-300); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__panel { color: var(--text-primary); }

/* Paneles (tarjetas de visualización) */
.panel {
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  color: var(--text-primary);
}
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin: 0; }
.panel__sub { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.panel__sub code { font-size: 12px; }
.panel__note { font-size: 13px; color: var(--text-secondary); margin: 12px 0 0; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge--info { color: var(--info-700); background: var(--info-100); }
.badge--success { color: var(--success-700); background: var(--success-100); }
.badge--warn { color: var(--warn-700); background: var(--warn-100); }
.badge--error { color: var(--error-700); background: var(--error-100); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--sand-100); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px; }
.kpi__label { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.3; margin-bottom: 4px; }
.kpi__value { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.kpi__value small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--text-muted); }

.chart__legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw--ink { background: var(--graphite-800); }
.sw--ochre { background: var(--ochre-600); }

.bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; border-bottom: 1px solid var(--border-default); margin-bottom: 16px; }
.bars span { flex: 1; background: var(--graphite-800); border-radius: 2px 2px 0 0; position: relative; }
.bars span.is-alert { background: var(--ochre-600); }

.alerts { list-style: none; margin: 0; padding: 0; }
.alerts li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--border-subtle); font-size: 14px; border-radius: var(--radius-sm); transition: background-color var(--dur-fast) var(--ease); }
.alerts li:hover { background: var(--ochre-50); }
.alerts code { color: var(--text-muted); }

/* Pilares bajo el hero */
.pillars { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar {
  display: block; background: var(--surface-card); color: var(--text-primary);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px 20px; transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.pillar:hover { border-color: var(--ochre-300); background: var(--ochre-50); }
.pillar .icon { width: 20px; height: 20px; color: var(--graphite-700); margin-bottom: 16px; }
.pillar:hover .icon { color: var(--ochre-700); }
.pillar h2 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 6px; }
.pillar p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Secciones */
.section { padding: 96px 0; }
.section--sunken { background: var(--surface-sunken); }
.section--inverse { background: var(--surface-inverse); color: var(--text-inverse); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 { margin-bottom: 16px; }
.section__lead { font-size: 17px; color: var(--text-secondary); margin: 0; }
.section--inverse .section__lead { color: var(--sand-400); }

.intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.intro__text p { font-size: 17px; color: var(--text-secondary); }
.intro__text p:last-child { color: var(--text-primary); font-weight: 500; }

/* Productos */
.product {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--border-default);
}
.product:first-of-type { border-top: 0; padding-top: 0; }
.product--reverse .product__copy { order: 2; }
.product__num { font-family: var(--font-mono); font-size: 13px; color: var(--ochre-700); margin-bottom: 8px; }
.product h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.product__copy > p:not(.product__num) { color: var(--text-secondary); font-size: 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; }
.checks .icon { color: var(--icon-default); margin-top: 3px; width: 16px; height: 16px; }

.benford { display: flex; align-items: flex-end; gap: 10px; height: 160px; border-bottom: 1px solid var(--border-default); padding: 0 4px; }
.benford .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.benford .pair { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 100%; }
.benford .pair i { flex: 1; border-radius: 2px 2px 0 0; }
.benford .pair i:first-child { background: var(--graphite-800); }
.benford .pair i:last-child { background: var(--ochre-600); }
.benford-labels { display: flex; gap: 10px; padding: 6px 4px 0; }
.benford-labels span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

.line { width: 100%; height: 170px; margin-bottom: 8px; }
.progress-list { display: grid; gap: 10px; margin-top: 8px; }
.progress { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; }
.progress .num { text-align: right; color: var(--text-secondary); }
.progress__bar { position: relative; height: 8px; background: var(--sand-200); border-radius: var(--radius-sm); }
.progress__bar i { position: absolute; inset: 0 auto 0 0; background: var(--ochre-600); border-radius: var(--radius-sm); }
.progress__bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--graphite-800); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.steps li:first-child { border-top: 0; }
.steps .icon { width: 32px; height: 32px; padding: 7px; border-radius: var(--radius-md); background: var(--sand-200); color: var(--graphite-700); }
.steps li.is-review .icon { background: var(--warn-100); color: var(--warn-700); }
.steps b { display: block; font-weight: 500; font-size: 14px; }
.steps span { font-size: 13px; color: var(--text-muted); }
.steps time { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding-top: 2px; }

/* Industrias */
.industries { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.industries__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--border-default); }
.industries__tabs button {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 16px 12px; border: 0; border-bottom: 1px solid var(--border-default);
  background: transparent; color: var(--text-secondary);
  font-family: var(--font-display); font-weight: 600; font-size: 16px; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.industries__tabs button:hover { background: var(--sand-200); color: var(--text-primary); }
.industries__tabs button[aria-selected="true"] { color: var(--text-primary); background: var(--sand-200); box-shadow: inset 3px 0 0 var(--ochre-600); }
.industries__tabs button[aria-selected="true"] .icon { color: var(--ochre-700); }
.ind-panel {
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 40px; min-height: 300px;
}
.ind-panel h3 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.ind-panel p { font-size: 17px; color: var(--text-secondary); max-width: 620px; margin-bottom: 24px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--ochre-50); color: var(--terracotta-700); border: 1px solid var(--ochre-100); }

/* Metodología */
.method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--graphite-600); }
.method li { padding: 32px 24px 0 0; }
.method li + li { padding-left: 24px; border-left: 1px solid var(--graphite-600); }
.method__n { display: block; font-family: var(--font-mono); color: var(--ochre-300); font-size: 13px; margin-bottom: 16px; }
.method h3 { font-size: 20px; margin-bottom: 8px; }
.method p { color: var(--sand-400); font-size: 15px; margin: 0; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px 20px;
}
.card > .icon { color: var(--graphite-700); width: 20px; height: 20px; margin-bottom: 16px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.group-map { display: grid; gap: 0; }
.group-map__tier {
  position: relative; display: grid; gap: 4px;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px 24px;
}
.group-map__tier + .group-map__tier { margin-top: 32px; }
.group-map__tier + .group-map__tier::before {
  content: ""; position: absolute; left: 36px; top: -33px; height: 32px; width: 1px; background: var(--graphite-400);
}
.group-map__tier--top { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--text-inverse); }
.group-map__tier--top .group-map__label { color: var(--ochre-300); }
.group-map__tier--brand { border-color: var(--ochre-300); }
.group-map__label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-accent); }
.group-map b { font: 700 20px/1.25 var(--font-display); letter-spacing: -.01em; }
.group-map__tier > span:last-child { font-size: 14px; color: var(--text-secondary); }
.group-map .group-map__tier--top > span:last-child { color: var(--sand-400); }
.group-map__logo { width: 96px; height: 70px; margin: 4px 0; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 32px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border-default); }
.facts dt { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.facts dd { margin: 0; font: 600 17px var(--font-display); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; gap: 16px; } }
.about h2 { margin-bottom: 20px; }
.about p:not(.overline) { font-size: 17px; color: var(--text-secondary); }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact h2 { margin-bottom: 16px; }
.contact__copy > p:not(.overline) { font-size: 17px; color: var(--text-secondary); }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact__list li { display: flex; align-items: center; gap: 10px; }
.contact__list .icon { color: var(--icon-default); }
.form { display: grid; gap: 16px; padding: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text-primary);
  background: var(--surface-card); border: 1px solid var(--border-control); border-radius: var(--radius-md);
  padding: 0 12px; height: 44px; width: 100%;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ochre-600); box-shadow: var(--focus-ring); }
.form input[aria-invalid="true"] { border-color: var(--error-700); }
.form .btn { justify-self: start; }
.form__error { margin: 0; font-size: 13px; color: var(--error-700); background: var(--error-100); padding: 8px 12px; border-radius: var(--radius-sm); }
.form__note { margin: 0; font-size: 12px; color: var(--text-muted); }
.form__note a { text-decoration: underline; }
.form__legend { margin: 0; font-size: 13px; color: var(--text-secondary); }
.req { color: var(--error-700); }
.field-error { font-size: 12px; font-weight: 400; color: var(--error-700); }
.form textarea[aria-invalid="true"], .form input[aria-invalid="true"] { border-color: var(--error-700); }

/* Pie */
.footer { background: var(--graphite-900); color: var(--sand-400); padding: 72px 0 32px; font-size: 14px;
  --logo-ink: var(--sand-50); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--graphite-700); }
.footer__logo { width: 110px; height: 80px; margin-bottom: 16px; }
.footer__brand p { max-width: 300px; }
.footer__title { font-family: var(--font-body); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--sand-50); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { display: inline-block; padding: 4px 0; color: var(--sand-400); transition: color var(--dur-fast) var(--ease); }
.footer a:hover { color: var(--ochre-300); }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.footer__legal p { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .hero__grid, .product, .intro__grid, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .product--reverse .product__copy { order: 0; }
  .pillars, .cards { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: 1fr; gap: 24px; }
  .method { grid-template-columns: repeat(2, 1fr); }
  .method li:nth-child(3) { border-left: 0; padding-left: 0; }
  .method li { padding-bottom: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--surface-card); border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md); padding: 16px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 12px; }
  .nav__cta { height: 44px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .brand__logo { width: 80px; height: 58px; }
  .hero { padding-top: 56px; }
  .hero__grid { padding-bottom: 48px; }
  .lead { font-size: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { grid-column: span 2; }
  .alerts li { grid-template-columns: 1fr auto; }
  .alerts code { grid-column: span 2; }
  .pillars, .cards, .method, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .method li, .method li + li { border-left: 0; padding-left: 0; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .industries__tabs { flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 4px; }
  .industries__tabs button { flex: none; border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 10px 12px; font-size: 14px; }
  .industries__tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--ochre-600); }
  .ind-panel { padding: 24px 20px; min-height: 0; }
  .progress { grid-template-columns: 100px 1fr 40px; }
  .announce p { display: none; }
  .footer ul { gap: 2px; }
  .footer a { padding: 12px 0; }
}

/* Evita desbordes horizontales en retículas */
.hero__grid > *, .product > *, .intro__grid > *, .about > *, .contact > *, .industries > * { min-width: 0; }

/* Páginas legales */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; }
.legal__meta { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }
.legal h2 { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 32px 0 8px; }
.legal p { color: var(--text-secondary); }
.legal a { text-decoration: underline; }

/* Menú desplegable de soluciones */
.nav__item--menu { position: relative; }
.nav__trigger {
  display: flex; align-items: center; gap: 4px; padding: 8px 12px;
  border: 0; border-radius: var(--radius-md); background: transparent; cursor: pointer;
  font: 500 15px var(--font-body); color: var(--text-primary);
  transition: background-color var(--dur-fast) var(--ease);
}
.nav__trigger:hover, .nav__trigger[aria-expanded="true"] { background: var(--sand-200); }
.nav__trigger.is-current { background: var(--sand-200); box-shadow: inset 0 -3px 0 var(--ochre-600); }
.nav__trigger .icon { width: 16px; height: 16px; }
.nav__trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav .submenu {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: calc(100% + 8px); left: 0; width: 360px;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px;
}
.nav .submenu.is-open { display: flex; }
.nav .submenu a {
  display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; row-gap: 2px;
  padding: 12px; border-radius: var(--radius-md);
}
.nav .submenu a:hover { background: var(--ochre-50); }
.nav .submenu a[aria-current="page"] { background: var(--sand-200); }
.submenu .icon { grid-row: span 2; margin-top: 2px; color: var(--graphite-600); }
.submenu b { font: 600 15px/1.3 var(--font-display); color: var(--text-primary); }
.submenu span { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--text-muted); }

/* Bloque agnóstico en la portada */
.agnostic { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-card); padding: 16px 20px; margin: 0 0 24px; }
.agnostic__title { font: 600 16px var(--font-display); margin-bottom: 4px; }
.agnostic > p:not(.agnostic__title) { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }

.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-card); border: 1px solid var(--border-default); color: var(--text-primary); }
.chips--compact { margin: 0; }
.chips--compact li { font-size: 13px; padding: 3px 10px; background: var(--sand-100); }

/* Páginas de solución */
.page-hero { background: var(--surface-inverse); color: var(--text-inverse); padding: 32px 0 80px; }
.page-hero .overline { color: var(--ochre-300); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 24px; }
.page-hero__grid { padding-bottom: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 48px; padding: 0; font-size: 13px; color: var(--sand-400); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--graphite-400); }
.breadcrumb a { color: var(--sand-300); }
.breadcrumb a:hover { color: var(--ochre-300); }
.breadcrumb [aria-current] { color: var(--sand-50); }

.section--tight { padding: 64px 0; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.split > * { min-width: 0; }
.split__text > p { font-size: 17px; color: var(--text-secondary); }
.minor { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.fineprint { font-size: 12px; color: var(--text-muted); margin: 16px 0 0; }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.group { border-top: 1px solid var(--graphite-800); padding-top: 24px; }
.group > .icon { width: 20px; height: 20px; color: var(--ochre-700); margin-bottom: 12px; }
.group h3 { font-size: 20px; margin-bottom: 12px; }
.group .checks { margin: 0; }
.group .checks li { font-size: 15px; }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--border-default); }
.process li { padding: 28px 24px 0 0; }
.process li + li { padding-left: 24px; border-left: 1px solid var(--border-default); }
.process__n { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--ochre-700); margin-bottom: 12px; }
.process h3 { font-size: 18px; margin-bottom: 8px; }
.process p { font-size: 15px; color: var(--text-secondary); margin: 0; }

.deliverables { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.deliverables li { display: grid; grid-template-columns: 20px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border-default); }
.deliverables li:last-child { border-bottom: 1px solid var(--border-default); }
.deliverables .icon { width: 20px; height: 20px; color: var(--graphite-700); margin-top: 2px; }
.deliverables b { display: block; font: 600 17px var(--font-display); margin-bottom: 2px; }
.deliverables span { color: var(--text-secondary); font-size: 15px; }

/* Tablas de datos */
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th, .dtable td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--border-subtle); vertical-align: top; }
.dtable thead th { border-top: 0; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); padding-top: 0; }
.dtable tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.dtable tbody tr:hover { background: var(--ochre-50); }
.dtable .r { text-align: right; }
.dtable code { color: var(--text-muted); font-size: 12px; }
.dtable--lg { font-size: 15px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.dtable--lg th, .dtable--lg td { padding: 16px 20px; }
.dtable--lg thead th { padding-top: 16px; }
.dtable--lg tbody th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.dtable--lg td:last-child { color: var(--text-secondary); }
.table-wrap { overflow-x: auto; }
.table-wrap .dtable { min-width: 640px; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.benefits > div { border-top: 1px solid var(--border-default); padding-top: 20px; }
.benefits .icon { width: 20px; height: 20px; color: var(--ochre-700); margin-bottom: 12px; }
.benefits h3 { font-size: 17px; margin-bottom: 8px; }
.benefits p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.catalog article { display: grid; grid-template-columns: 20px 1fr; column-gap: 16px; padding: 24px 0; border-top: 1px solid var(--border-default); }
.catalog article > * { grid-column: 2; }
.catalog .icon { grid-column: 1; grid-row: 1; width: 20px; height: 20px; color: var(--graphite-700); margin-top: 2px; }
.catalog h3 { grid-row: 1; margin-bottom: 8px; }
.catalog p { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.catalog .catalog__out { font-size: 14px; color: var(--text-primary); margin: 0; }
.catalog__out b { font-weight: 500; }

/* Preguntas frecuentes */
.faq details { border-top: 1px solid var(--border-default); }
.faq details:last-child { border-bottom: 1px solid var(--border-default); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font: 600 17px/1.35 var(--font-display); color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ochre-700); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--text-secondary); margin: 0 0 20px; max-width: 64ch; }

/* Cierre y soluciones relacionadas */
.cta-band { background: var(--surface-inverse); color: var(--text-inverse); padding: 64px 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--sand-300); margin: 0; max-width: 60ch; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related__item {
  display: grid; grid-template-columns: 20px 1fr 18px; gap: 16px; align-items: center;
  background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px; color: var(--text-primary);
  transition: border-color var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease);
}
.related__item:hover { border-color: var(--ochre-300); background: var(--ochre-50); }
.related__item > .icon:first-child { width: 20px; height: 20px; color: var(--graphite-700); }
.related__item > .icon:last-child { color: var(--ochre-700); }
.related__item b { display: block; font: 600 17px var(--font-display); }
.related__item span span { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .process li + li { border-left: 0; padding-left: 0; }
  .process li { padding-bottom: 8px; }
}
@media (max-width: 860px) {
  .nav .submenu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 8px; background: transparent; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .groups, .benefits, .catalog, .related { grid-template-columns: 1fr; }
  .breadcrumb ol { margin-bottom: 32px; }
  .page-hero { padding-bottom: 56px; }
  .panel .dtable th:first-child, .panel .dtable td:first-child { display: none; }
}

h1, h2, h3 { text-wrap: balance; }
.split__text > .fineprint { font-size: 12px; color: var(--text-muted); }
.footer__legal { align-items: center; }

/* Scoring y factores explicativos */
.scores { list-style: none; margin: 0 0 20px; padding: 0; }
.scores li { display: grid; grid-template-columns: auto 1fr 40px 76px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-subtle); font-size: 13px; }
.scores li:first-child { border-top: 0; }
.scores code { color: var(--text-muted); font-size: 12px; }
.scores .num { text-align: right; font-weight: 500; }
.scores .badge { justify-self: start; }
.scores__bar { height: 8px; background: var(--sand-200); border-radius: var(--radius-sm); position: relative; }
.scores__bar i { position: absolute; inset: 0 auto 0 0; background: var(--graphite-800); border-radius: var(--radius-sm); }
.panel__subhead { font: 600 14px var(--font-display); margin: 0 0 8px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.panel__subhead code { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.factors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.factors li { display: grid; grid-template-columns: 1fr 140px 40px; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary); }
.factors .num { text-align: right; color: var(--text-primary); }
.factors__bar { position: relative; height: 10px; }
.factors__bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--graphite-400); }
.factors__bar i { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.factors__bar .pos { left: 50%; background: var(--graphite-800); }
.factors__bar .neg { right: 50%; background: var(--ochre-600); }
.benefits--spaced { margin-top: 56px; }
@media (max-width: 640px) {
  .scores li { grid-template-columns: 1fr 36px 72px; }
  .scores code { grid-column: 1 / -1; }
  .factors li { grid-template-columns: 1fr 90px 36px; }
}

/* Mapa de funcionamiento de agentes */
.amap-wrap { margin: 0; }
.amap { display: block; width: 100%; height: auto; overflow: visible; }
.amap--v { display: none; max-width: 480px; margin: 0 auto; }
.amap text { font-family: var(--font-body); font-size: 13px; fill: var(--text-primary); }
.amap .amap-t-label { font-size: 11px; font-weight: 500; letter-spacing: .08em; fill: var(--text-muted); }
.amap .amap-t-strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.amap .amap-t-sub { font-size: 11.5px; fill: var(--text-secondary); }
.amap .amap-t-model { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.amap .amap-t-over { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; fill: var(--ochre-300); }
.amap .amap-t-over--dark { fill: var(--ochre-700); }
.amap .amap-t-guard { font-family: var(--font-display); font-size: 18px; font-weight: 700; fill: var(--sand-50); }
.amap .amap-t-guard-sub { font-size: 12px; fill: var(--sand-400); }
.amap .amap-t-guard-item { font-size: 12.5px; fill: var(--sand-200); }
.amap .amap-t-audit { fill: var(--terracotta-700); }
.amap-io { fill: var(--surface-card); stroke: var(--border-default); stroke-width: 1; }
.amap-agent { fill: var(--surface-card); stroke: var(--border-default); stroke-width: 1; }
.amap-model { fill: var(--sand-200); stroke: var(--sand-400); stroke-width: 1; }
.amap-model--local { fill: var(--sand-100); stroke: var(--graphite-500); stroke-dasharray: 4 3; }
.amap-guard { fill: var(--surface-inverse); }
.amap-guard-rule { stroke: var(--graphite-600); stroke-width: 1; }
.amap-guard-bullet { fill: var(--ochre-500); }
.amap-delivery { fill: var(--ochre-50); stroke: var(--ochre-600); stroke-width: 1.5; }
.amap-audit { fill: var(--terracotta-100); stroke: var(--terracotta-700); stroke-width: 1; stroke-dasharray: 6 4; }
.amap-line { fill: none; stroke: var(--graphite-400); stroke-width: 1.5; }
.amap-line--audit { stroke: var(--terracotta-700); stroke-dasharray: 5 4; }
.amap-link { stroke: var(--graphite-500); stroke-width: 1.5; }
.amap-dot { fill: var(--graphite-500); }
.amap-arrowhead { fill: var(--graphite-400); }
.amap-arrowhead--audit { fill: var(--terracotta-700); }
.amap-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-secondary); }
.amap-legend span { display: inline-flex; align-items: center; gap: 8px; }
.amap-legend__note { flex-basis: 100%; color: var(--text-muted); font-size: 12px; }
.amap-key { display: inline-block; width: 22px; height: 12px; border-radius: 2px; }
.amap-key--model { background: var(--sand-200); border: 1px solid var(--sand-400); }
.amap-key--local { background: var(--sand-100); border: 1px dashed var(--graphite-500); }
.amap-key--audit { height: 0; border-top: 2px dashed var(--terracotta-700); border-radius: 0; }
@media (max-width: 900px) {
  .amap--h { display: none; }
  .amap--v { display: block; }
}
