/* ============================================================
   OpenSourceERP.org — Landing sectorial: distribución de bebidas
   HTML puro · CSS propio · sin frameworks
   Tokens heredados de la plantilla Stitch (Space Grotesk / Outfit / JetBrains Mono)
   ============================================================ */

:root {
  --navy: #1e293b;
  --navy-900: #0f172a;
  --brand: #006398;
  --brand-600: #0284c7;
  --cyan: #06b6d4;
  --gpl: #059669;
  --amber: #fcba04;
  --danger: #ba1a1a;
  --surface: #f7f9fb;
  --surface-2: #eef2f6;
  --surface-3: #e0e3e5;
  --border: #e2e8f0;
  --outline: #c6c6cd;
  --ink: #191c1e;
  --ink-2: #45464d;
  --ink-3: #76777d;
  --white: #ffffff;
  --radius: 2px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --max: 1280px;
  --gutter: 2rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Las anclas no se esconden bajo la cabecera sticky */
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  letter-spacing: -.025em;
  line-height: 1.12;
  margin: 0 0 .6em;
  color: var(--navy-900);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  font-weight: 500;
}
.label::before {
  content: "";
  width: 18px; height: 1px; background: currentColor; display: inline-block;
}
.label--warn { color: var(--danger); }
.label--light { color: #7dd3fc; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; text-align: center;
  padding: .9rem 1.5rem; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(2, 132, 199, .45); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
  color: var(--white); box-shadow: 0 6px 16px rgba(0, 99, 152, .22);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand) 100%); box-shadow: 0 10px 24px rgba(0, 99, 152, .30); }
.btn--ghost { background: var(--surface-2); color: var(--navy-900); border-color: #cfdbe6; }
.btn--ghost:hover { background: var(--white); border-color: var(--brand); color: var(--brand); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: var(--white); }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 249, 251, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: .7rem; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  display: grid; place-items: center; color: #fff; font-family: var(--font-head);
  font-weight: 800; font-size: 1.05rem;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy-900); }
.logo__name span { color: var(--brand); }
.logo__tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; color: var(--gpl); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav > a {
  font-size: .9rem; color: var(--ink-2); font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav > a:hover { color: var(--navy-900); text-decoration: none; border-bottom-color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: .55rem; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  margin-left: auto; padding: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--navy-900); transition: transform .18s ease, opacity .18s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Migas ---------- */
.breadcrumb {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 0.85rem 0; font-size: .82rem; color: var(--ink-3); min-height: 50px; }
.breadcrumb li { display: flex; align-items: center; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; color: var(--outline); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb [aria-current] { color: var(--navy-900); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-900); color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(0, 99, 152, .45), transparent 62%),
    radial-gradient(ellipse at bottom left, rgba(6, 182, 212, .18), transparent 55%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding-block: 4.5rem 4rem;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__intro { font-size: 1.075rem; color: #cbd5e1; max-width: 58ch; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: #7dd3fc; margin-bottom: 1.4rem;
}
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gpl); box-shadow: 0 0 0 4px rgba(5,150,105,.18); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.85rem 0 2rem; }
.hero__bullets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.4rem; }
.hero__bullets li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: #cbd5e1; }
.hero__bullets svg { flex: 0 0 18px; margin-top: 2px; color: var(--gpl); }

.panel {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-mono); font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em;
}
.panel__dot { display: inline-flex; gap: 5px; }
.panel__dot i { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.panel__body { padding: 1.15rem 1.15rem 1.3rem; }
.panel__title { font-family: var(--font-head); font-size: 1rem; color: #fff; margin-bottom: .15rem; }
.panel__sub { font-size: .8rem; color: #94a3b8; margin-bottom: 1rem; }
.panel__rows { display: grid; gap: .55rem; }
.panel__row {
  display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center;
  padding: .6rem .7rem; border-radius: 6px; background: rgba(255,255,255,.04);
  font-size: .82rem; color: #e2e8f0;
}
.panel__row b { font-family: var(--font-mono); font-size: .82rem; }
.panel__row.is-ok b { color: #6ee7b7; }
.panel__row.is-warn b { color: var(--amber); }
.panel__foot {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px dashed rgba(255,255,255,.14);
  font-size: .78rem; color: #94a3b8; display: flex; justify-content: space-between; gap: 1rem;
}

/* ---------- Métricas ---------- */
.metrics { background: var(--white); border-bottom: 1px solid var(--border); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 1.9rem 1.4rem; border-left: 1px solid var(--border); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric__value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy-900); line-height: 1; }
.metric__value span { color: var(--brand); }
.metric__desc { font-size: .85rem; color: var(--ink-2); margin-top: .45rem; }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section--surface { background: var(--surface); }
.section--white { background: var(--white); }
.section--tight { padding: 3.5rem 0; }
.section__head { max-width: none; margin-bottom: 2.4rem; }
.section__head--wide { max-width: none; }
.section__head .section__lead { max-width: 88ch; }
.section__lead { font-size: 1.05rem; color: var(--ink-2); }

/* ---------- Tarjetas de diagnóstico ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .55rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: #9cbcd6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__num {
  font-family: var(--font-mono); font-size: .78rem; color: var(--brand);
  background: #e8f1f8; border-radius: 4px; padding: .2rem .5rem; align-self: flex-start;
}
.card h3 { margin-bottom: .2rem; }
.card p { font-size: .93rem; color: var(--ink-2); margin-bottom: 0; }
.card__note {
  margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .74rem; color: var(--brand);
}

/* ---------- Tabla comparativa ---------- */
.table-shell {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow-x: auto; box-shadow: var(--shadow-sm);
}
table.compare { width: 100%; border-collapse: collapse; min-width: 900px; font-size: .88rem; }
table.compare th, table.compare td { padding: .8rem 1rem; text-align: left; vertical-align: middle; }
table.compare thead th {
  background: var(--navy); color: #fff; font-family: var(--font-head);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
table.compare thead th.is-featured { background: var(--brand); }
table.compare tbody tr + tr td { border-top: 1px solid var(--border); }
table.compare tbody td:first-child { font-weight: 600; color: var(--navy-900); background: var(--surface-2); white-space: nowrap; }
table.compare tbody td:nth-child(2) { background: #f2f8fc; border-left: 3px solid var(--brand); font-weight: 600; }
table.compare td.yes { color: var(--gpl); font-weight: 600; }
table.compare td.no { color: var(--danger); }
table.compare td.partial { color: #b45309; }
.table-note { font-size: .78rem; color: var(--ink-3); margin-top: .8rem; }

/* ---------- Sección por ERP ---------- */
.erp {
  padding: 3.25rem 0;
  border-top: 1px solid var(--border);
}
.erp:first-of-type { border-top: 0; }
.erp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.erp--flip .erp__media { order: -1; }
.erp__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--ink-2);
}
.chip--brand { background: #e8f1f8; border-color: #c3d1de; color: var(--brand); }
.chip--gpl { background: #e7f6ef; border-color: #b9e2cd; color: #067a55; }
.chip--latam { background: #fef4e0; border-color: #f4dcaa; color: #92400e; }
.erp p { color: var(--ink-2); font-size: .97rem; }
.erp__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.2rem 0 1.1rem; }
.proscons h3 { font-size: .82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; font-weight: 700; }
.proscons--pros h3 { color: #067a55; }
.proscons--cons h3 { color: var(--danger); }
.proscons ul { display: grid; gap: .4rem; }
.proscons li { position: relative; padding-left: 1.25rem; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.proscons--pros li::before { content: "✓"; position: absolute; left: 0; color: var(--gpl); font-weight: 700; }
.proscons--cons li::before { content: "×"; position: absolute; left: 0; color: var(--danger); font-weight: 700; font-size: 1.05rem; }
.erp__cost {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .8rem;
  padding: .85rem 1rem; background: var(--surface-2); border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: .88rem; color: var(--ink-2);
}
.erp__cost b { font-family: var(--font-head); color: var(--navy-900); font-size: 1rem; }

.figure {
  margin: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: .7rem; box-shadow: var(--shadow-sm);
}
.figure img { width: 100%; height: auto; border-radius: 4px; background: var(--surface-2); }
.figure figcaption { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-3); padding: .6rem .3rem .1rem; letter-spacing: .04em; }
.figure--placeholder {
  min-height: 260px; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, #f2f6fa, #f2f6fa 12px, #eaf1f7 12px, #eaf1f7 24px);
  color: var(--ink-3); font-family: var(--font-mono); font-size: .78rem; padding: 2rem;
}

/* ---------- Otros especialistas ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.mini {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.2rem; font-size: .88rem; color: var(--ink-2);
}
.mini h3 { margin-bottom: .35rem; color: var(--navy-900); font-size: 1.05rem; }
.mini span { font-family: var(--font-mono); font-size: .68rem; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Calculadora TCO ---------- */
.calc { background: var(--navy-900); color: #fff; }
.calc__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.calc h2 { color: #fff; }
.calc p { color: #cbd5e1; }
.calc__controls { display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.field label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: .6rem; }
.field output { color: #7dd3fc; font-weight: 600; }
.field input[type="range"] { width: 100%; accent-color: var(--cyan); }
.calc__result {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md);
  padding: 1.4rem;
}
.calc__result h3 { color: #fff; font-size: .95rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .07em; font-weight: 500; margin-bottom: 1rem; }
.calc__bars { display: grid; gap: .85rem; }
.bar { display: grid; gap: .35rem; }
.bar__top { display: flex; justify-content: space-between; font-size: .84rem; color: #e2e8f0; }
.bar__top b { font-family: var(--font-mono); }
.bar__track { height: 9px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; transition: width .35s ease; }
.bar--tryton .bar__fill { background: linear-gradient(90deg, #059669, #34d399); }
.bar--odoo .bar__fill { background: linear-gradient(90deg, #006398, #38bdf8); }
.bar--bc .bar__fill { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.bar--sap .bar__fill { background: linear-gradient(90deg, #b45309, #fbbf24); }
.calc__note { font-size: .74rem; color: #94a3b8; margin-top: 1rem; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; max-width: none; }
.faq details {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .8rem 0 0; font-size: .93rem; color: var(--ink-2); }

/* ---------- CTA formulario ---------- */
.cta { background: var(--surface-2); border-top: 1px solid var(--border); }
.cta__grid { display: grid; grid-template-columns: .67fr 1fr; gap: 2.5rem; align-items: center; }
.cta__copy p { color: var(--ink-2); }
.cta__points { display: grid; gap: .45rem; margin-top: 1.2rem; }
.cta__points li { position: relative; padding-left: 1.3rem; font-size: .89rem; color: var(--ink-2); }
.cta__points li::before { content: "✓"; position: absolute; left: 0; color: var(--gpl); font-weight: 700; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-md); }
.form-grid { display: flex; flex-wrap: wrap; gap: .9rem 1rem; }
.form-grid .form-group { flex: 0 0 calc(50% - .5rem); display: grid; gap: .35rem; }
.form-grid .form-group.full { flex: 0 0 100%; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.form-group label.req::after { content: " *"; color: var(--brand); }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
  padding: .65rem .75rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); width: 100%;
}
.form-group textarea { min-height: 96px; resize: vertical; }
.form-group select { appearance: none; padding-right: 2.1rem; 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='%23006398' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 99, 152, .12);
}
.form-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .78rem; color: var(--ink-3); }
.form-check input { width: auto; margin-top: 3px; }
.form-grid button { width: 100%; }
.form-status { font-size: .82rem; margin-top: .7rem; color: var(--gpl); min-height: 1.2em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: #94a3b8; padding: 3rem 0 1.5rem; font-size: .86rem; }
.site-footer a { color: #cbd5e1; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer__title { display: block; color: #fff; font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer ul { display: grid; gap: .4rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.4rem; padding-top: 1.2rem; font-size: .78rem; }

/* ---------- Aviso de fuentes ---------- */
.sources { background: var(--surface-2); border-top: 1px solid var(--border); padding: 2rem 0; font-size: .78rem; color: var(--ink-3); }
.sources p { margin-bottom: .4rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; padding-block: 3.2rem; }
  .calc__grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .erp__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .erp--flip .erp__media { order: 0; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1200px) {
  :root { --header-h: 64px; }
  .site-header__inner { gap: .75rem; }
  .logo__tag { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: .25rem 1.25rem 1.1rem; box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open > a {
    display: block; width: 100%; padding: .85rem 0;
    font-size: .95rem; font-weight: 600; line-height: 1.2;
    border-top: 0; border-bottom: 1px solid var(--border);
  }
  .nav.is-open > a:hover { border-bottom-color: var(--border); color: var(--brand); }
  .nav.is-open > a:last-of-type { border-bottom: 0; }
  .nav__actions {
    flex-direction: column; align-items: stretch; gap: .55rem;
    padding-top: .9rem; margin-top: .35rem; border-top: 1px solid var(--border);
  }
  .nav__actions .btn { width: 100%; font-size: .95rem; padding: 1rem 1.25rem; border-radius: 12px; }
  .nav__actions .btn--ghost { background: var(--white); border-color: #cfdbe6; }
}

@media (max-width: 860px) {
  :root { --gutter: 1.25rem; }
  .metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .metric:nth-child(-n+2) { border-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .erp__cols { grid-template-columns: 1fr; gap: .9rem; }
  .mini-grid { grid-template-columns: 1fr; }
  .form-grid .form-group { flex: 0 0 100%; }
  .faq summary { font-size: .94rem; }
}

@media (max-width: 520px) {
  .section { padding: 3rem 0; }
  .hero__bullets { grid-template-columns: 1fr; }
  .metrics__grid { grid-template-columns: 1fr; }
  .metric { padding: 1.2rem 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .figure--placeholder { min-height: 180px; }
}

/* ---------- TL;DR + índice (GEO) ---------- */
.tldr-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 2.5rem; align-items: start; }
.tldr { max-width: 78ch; }
.tldr__lead { font-size: 1.02rem; color: var(--ink-2); }
.tldr__list { display: grid; gap: .5rem; margin: 1rem 0 1.2rem; }
.tldr__list li { position: relative; padding-left: 1.35rem; font-size: .93rem; color: var(--ink-2); }
.tldr__list li::before { content: "▸"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.tldr__stamp { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .03em; margin: 0; }

.toc {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem; position: sticky; top: 96px;
}
.toc summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--navy-900); list-style: none; display: flex; justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: .9rem 0 0; padding-left: 1.1rem; list-style: decimal; display: grid; gap: .45rem; }
.toc li { font-size: .86rem; color: var(--ink-2); }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--brand); }

/* ---------- Hidden gems ---------- */
.gems-list { display: grid; gap: .6rem; margin: .2rem 0 0; }
.gems-list li { position: relative; padding-left: 1.2rem; font-size: .9rem; color: var(--ink-2); }
.gems-list li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- Interlinking ---------- */
.related__title { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.related__item {
  display: grid; gap: .3rem; padding: 1.1rem 1.2rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--white); color: var(--ink-2);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.related__item:hover { text-decoration: none; border-color: #9cbcd6; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related__item span { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.related__item strong { font-family: var(--font-head); font-size: .96rem; color: var(--navy-900); }
.related__item em { font-style: normal; font-size: .82rem; color: var(--ink-3); }

/* ---------- Infografía dentro de la calculadora ---------- */
.figure--calc { margin-top: 1.2rem; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.figure--calc figcaption { color: #94a3b8; }

@media (max-width: 1080px) {
  .tldr-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .toc { position: static; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .related { grid-template-columns: 1fr; }
}

/* ---------- Galería de infografías ---------- */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.galeria__item {
  display: grid; gap: .6rem; padding: .55rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--white); color: var(--ink-2);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.galeria__item:hover { text-decoration: none; border-color: #9cbcd6; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.galeria__item img { width: 100%; height: auto; border-radius: 4px; background: var(--surface-2); aspect-ratio: 16 / 9; object-fit: cover; }
.galeria__item span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); padding: 0 .3rem .2rem; }
@media (max-width: 1080px) { .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .galeria { grid-template-columns: 1fr; } }

/* ---------- Sección de ERP: texto en dos columnas + infografía a todo el ancho ---------- */
.erp__grid--text { grid-template-columns: 1.04fr .96fr; gap: 2.75rem; align-items: start; }
.erp__copy h2 { margin-bottom: .55em; }
.erp__side { display: grid; gap: 1.1rem; align-content: start; }
.erp__side .erp__cols { grid-template-columns: 1fr; gap: .9rem; margin: .2rem 0 0; }
.erp__side .proscons ul { gap: .35rem; }
.figure--wide { margin: 2rem 0 0; padding: .8rem; }
.figure--wide img { width: 100%; height: auto; border-radius: 4px; }
.figure--wide figcaption { font-size: .72rem; }
@media (max-width: 1080px) {
  .erp__grid--text { grid-template-columns: 1fr; gap: 1.4rem; }
  .erp__side .erp__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .erp__side .erp__cols { grid-template-columns: 1fr; }
}

/* ---------- Rótulo y aire de la infografía ancha ---------- */
.figure__tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .55rem; display: flex; align-items: center; gap: .5rem;
}
.figure__tag::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.figure--wide { margin: 1.8rem 0 0; }
.figure--wide figcaption { color: var(--ink-2); }
.erp { padding: 4.2rem 0 3.3rem; }

.figure__tag { font-size: .72rem; color: var(--brand); letter-spacing: .09em; }
.figure--wide figcaption { font-size: .76rem; color: var(--ink-2); padding: .55rem .25rem 0; }

/* FAQ a todo el ancho, con la respuesta en línea legible */
.faq summary { font-size: 1.05rem; }
.faq p { max-width: 92ch; }

/* ---------- Regla dura: bloques a columnas centrados en vertical (escritorio) ---------- */
@media (min-width: 1081px) {
  .hero__grid,
  .tldr-grid,
  .erp__grid--text,
  .calc__grid,
  .cta__grid { align-items: center; }
  .erp__grid { align-items: center; }
}

/* "Otros especialistas": la mitad de aire por debajo */
#erps .wrap > .erp:last-child { padding-bottom: 1.6rem; }

/* Etiqueta A/B en línea con el título de la tarjeta */
.card__title-inline { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.card__title-inline .card__num { margin: 0; align-self: center; }

.card__title-inline { display: block; }
.card__title-inline .card__num { display: inline-flex; vertical-align: middle; margin: 0 .55rem 0 0; }
