/* Bardata — sitio público
   Editorial y sobrio: serif para titulares, sans para lectura, filetes finos
   y mucho aire. El lima se usa poco y siempre con intención. */

:root {
  --ink: #0b2421;
  --ink-2: #12322d;
  --ink-3: #1b423b;
  --paper: #f6f7f1;
  --paper-2: #eef0e7;
  --card: #ffffff;
  --lime: #e9ff9d;
  --green: #16a34a;
  --green-dark: #0f7a38;
  --teal: #2bb5a0;
  --muted: #4d5c59;
  --faint: #7d8a86;
  --line: #d6dbd2;
  --line-dark: rgba(233, 255, 157, 0.16);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: min(1240px, calc(100% - 56px));
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--lime); color: var(--ink); padding: 10px 16px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.4rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.15; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--green-dark); }
.on-ink h1 em, .on-ink h2 em, .on-ink h3 em { color: var(--lime); }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.26rem); line-height: 1.6; color: var(--muted); max-width: 40ch; }
.on-ink .lead { color: #b9c6bf; }

.kicker {
  display: flex; align-items: center; gap: 14px;
  font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--green-dark);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-ink .kicker { color: var(--lime); }
.num { font: 500 0.78rem/1 var(--sans); letter-spacing: 0.16em; color: var(--faint); font-variant-numeric: tabular-nums; }
.on-ink .num { color: #8ea39b; }

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: center;
  font: 500 1.02rem/1 var(--sans);
  letter-spacing: 0.46em; margin-right: -0.46em;
  text-decoration: none; text-transform: uppercase;
  white-space: nowrap;
}
.wordmark.lg { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: 0.5em; margin-right: -0.5em; }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 500 0.94rem/1 var(--sans); letter-spacing: 0.01em; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover { background: #fff; border-color: #fff; }
.btn.ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn.ghost-light:hover { border-color: var(--lime); color: var(--lime); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link .arrow { transition: transform .25s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 247, 241, 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 0.92rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-login { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; text-decoration: none; color: var(--ink); }
.nav-login svg { width: 14px; height: 14px; }
.nav-cta { padding: 12px 20px; font-size: 0.88rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 18px; height: 1px; background: var(--ink); box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink); }

/* ---------- Secciones ---------- */
section { position: relative; }
.section { padding: clamp(84px, 11vw, 150px) 0; }
.section.tight { padding: clamp(64px, 8vw, 104px) 0; }
.on-ink { background: var(--ink); color: #f2f5ef; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.on-ink .rule { border-top-color: var(--line-dark); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .kicker { margin-bottom: 22px; }
.section-head .lead { justify-self: end; }

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: end; }
.hero .kicker { margin-bottom: 34px; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-note { margin-top: 26px; font-size: 0.86rem; color: var(--faint); }
.hero-art { position: relative; aspect-ratio: 4 / 5; max-height: 560px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-art .bar { fill: none; stroke: var(--ink); stroke-width: 1; }
.hero-art .bar-fill { fill: var(--ink); }
.hero-art .base { stroke: var(--line); stroke-width: 1; }
.hero-art .dot { fill: var(--lime); stroke: var(--ink); stroke-width: 1; }
.hero-art .tag { font: 500 11px var(--sans); letter-spacing: .18em; fill: var(--faint); text-transform: uppercase; }
.hero-art .tag-serif { font: italic 400 22px var(--serif); fill: var(--ink); }

.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 84px); }
.page-hero .kicker { margin-bottom: 30px; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 6.2vw, 5.6rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: end; }
.page-hero .lead { max-width: 44ch; }
.crumbs { font-size: .84rem; color: var(--faint); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Dos caminos ---------- */
.paths { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.path { padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px) clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 26px; min-height: 640px; }
.path + .path { border-left: 1px solid var(--line); }
.path.on-ink { border-left: 0; }
.path-top { display: flex; justify-content: space-between; align-items: baseline; }
.path h3 { font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; }
.path .lead { font-size: 1.04rem; max-width: 46ch; }
.path-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.on-ink .path-list { border-top-color: var(--line-dark); }
.path-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.on-ink .path-list li { border-bottom-color: var(--line-dark); color: #dfe7e0; }
.path-list li .num { padding-top: 5px; }
.path-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 18px; }
.path-share { font-size: .82rem; color: var(--faint); }
.on-ink .path-share { color: #8ea39b; }

/* ---------- Cita ---------- */
.statement { text-align: left; }
.statement blockquote { margin: 0; font: 400 clamp(2rem, 4.6vw, 4.1rem)/1.08 var(--serif); letter-spacing: -0.03em; max-width: 22ch; }
.statement blockquote em { font-style: italic; color: var(--green-dark); }
.statement figcaption { margin-top: 32px; font-size: .9rem; color: var(--faint); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); counter-reset: step; }
.on-ink .steps { border-top-color: var(--line-dark); }
.step { padding: 30px 28px 10px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.on-ink .step + .step { border-left-color: var(--line-dark); }
.step h3 { margin: 26px 0 14px; }
.step p { color: var(--muted); font-size: .98rem; max-width: 30ch; }
.on-ink .step p { color: #b9c6bf; }

/* ---------- Servicios (rejilla numerada) ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 34px 32px 44px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service h3 { margin: 28px 0 14px; font-size: 1.6rem; }
.service p { color: var(--muted); font-size: .98rem; }
.service ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: .78rem; letter-spacing: .02em; padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Diagrama de flujo ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, .8fr) 120px minmax(0, 1fr); align-items: center; }
.flow-col h4 { font: 600 .72rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.flow-col ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.flow-col li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: .96rem; color: #dfe7e0; }
.flow-col li small { color: #8ea39b; font-size: .8rem; }
.flow-link { height: 1px; background: linear-gradient(90deg, transparent, var(--lime), transparent); position: relative; }
.flow-link::after { content: ""; position: absolute; right: 10px; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--lime); border-right: 1px solid var(--lime); transform: rotate(45deg); }
.flow-core { border: 1px solid var(--lime); padding: 40px 28px; text-align: center; position: relative; }
.flow-core .wordmark { font-size: 1.15rem; color: var(--lime); }
.flow-core p { margin-top: 16px; font-size: .9rem; color: #b9c6bf; }
.flow-core::before, .flow-core::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--lime); }
.flow-core::before { top: -5px; left: -5px; }
.flow-core::after { bottom: -5px; right: -5px; }

/* ---------- Fuentes de datos ---------- */
.sources { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.source { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.source img { width: 30px; height: 30px; filter: grayscale(1) contrast(1.05); opacity: .78; transition: filter .3s, opacity .3s; }
.source:hover img { filter: none; opacity: 1; }

/* ---------- Audiencias ---------- */
.audience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; }
.audience-col h3 { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.audience-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.audience-list li { padding: 15px 0; border-bottom: 1px solid var(--line); font: 400 1.32rem/1.2 var(--serif); display: flex; justify-content: space-between; align-items: baseline; }
.audience-list li small { font: 400 .8rem var(--sans); color: var(--faint); }
.audience-more { margin-top: 22px; font-size: .92rem; color: var(--muted); }

/* ---------- Portal (vista previa) ---------- */
.portal-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.portal-copy h2 { margin: 22px 0 26px; }
.portal-points { list-style: none; padding: 0; margin: 34px 0 40px; border-top: 1px solid var(--line-dark); }
.portal-points li { padding: 15px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 36px 1fr; color: #dfe7e0; }
.preview {
  background: #fbfcf8; color: var(--ink); padding: 26px 26px 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  position: relative;
}
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.preview-bar .wordmark { font-size: .7rem; }
.preview-bar small { font-size: .72rem; color: var(--faint); }
.preview-title { margin: 20px 0 4px; font: 400 1.5rem/1.1 var(--serif); }
.preview-sub { font-size: .78rem; color: var(--faint); }
.preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-kpi { padding: 14px 12px 14px 0; }
.preview-kpi + .preview-kpi { padding-left: 14px; border-left: 1px solid var(--line); }
.preview-kpi span { display: block; font-size: .7rem; color: var(--muted); }
.preview-kpi b { display: block; font: 400 1.9rem/1.1 var(--serif); margin-top: 6px; font-variant-numeric: tabular-nums; }
.preview-kpi i { font-style: normal; font-size: .72rem; color: var(--green-dark); }
.preview-chart svg { width: 100%; height: auto; }
.preview-chart .grid { stroke: #e6e9e2; stroke-width: 1; }
.preview-chart .col { fill: #0f7a38; }
.preview-chart .col-2 { fill: #2a78d6; }
.preview-chart .axis { font: 400 9px var(--sans); fill: var(--faint); }
.preview-legend { display: flex; gap: 18px; font-size: .72rem; color: var(--muted); margin-top: 8px; }
.preview-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: 0; }
.preview-tag { position: absolute; top: -12px; right: 22px; background: var(--lime); color: var(--ink); font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 7px 10px; }

/* ---------- Cierre / CTA ---------- */
.closing { padding: clamp(96px, 12vw, 170px) 0; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: end; }
.closing h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); max-width: 14ch; }
.closing-side p { color: #b9c6bf; margin-bottom: 30px; max-width: 38ch; }
.closing-side .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6bf; padding: 0 0 40px; font-size: .88rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 64px 0 56px; border-top: 1px solid var(--line-dark); }
.footer-top .wordmark { color: #fff; margin-bottom: 20px; }
.footer-top p { max-width: 32ch; }
.footer-top h4 { font: 600 .7rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #8ea39b; margin-bottom: 18px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: #8ea39b; flex-wrap: wrap; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
.js .hero .rise { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.js .hero .rise.d1 { animation-delay: .1s; } .js .hero .rise.d2 { animation-delay: .22s; } .js .hero .rise.d3 { animation-delay: .34s; }
.hero-art .grow { transform-box: fill-box; transform-origin: bottom; }
.js .hero-art .grow { transform: scaleY(0); animation: grow 1.4s var(--ease) forwards; }
.js .hero-art .pop { opacity: 0; animation: fade .6s ease forwards 1.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .rise, .js .hero-art .grow, .js .hero-art .pop { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Contacto (modal) ---------- */
.ws-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(11, 36, 33, .62); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.ws { position: relative; width: min(1040px, 100%); background: var(--paper); max-height: calc(100vh - 48px); overflow-y: auto; }
.ws-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); cursor: pointer; z-index: 2; }
.ws-close svg { width: 14px; height: 14px; }
.ws-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.ws-side { background: var(--ink); color: #f2f5ef; padding: 48px 40px; display: flex; flex-direction: column; gap: 22px; }
.ws-side h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.ws-side p { color: #b9c6bf; font-size: .96rem; }
.ws-points { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line-dark); }
.ws-points li { padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: .92rem; color: #dfe7e0; }
.ws-main { padding: 48px 40px 40px; }
.ws-field { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; min-width: 0; }
.ws-field legend, .ws-field label { font-size: .84rem; font-weight: 500; padding: 0; margin-bottom: 4px; }
.ws-field b { color: var(--green-dark); font-weight: 500; }
.ws-field.is-optional b { visibility: hidden; }
.ws-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ws input[type="text"], .ws input[type="email"], .ws input[type="tel"], .ws textarea, .auth input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: #fff; border-radius: 0;
  font: 400 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .2s;
}
.ws input:focus, .ws textarea:focus, .auth input:focus { outline: none; border-color: var(--ink); }
.ws input:disabled { background: var(--paper-2); }
.ws [aria-invalid="true"] { border-color: #b42318 !important; }
.ws textarea { resize: vertical; min-height: 120px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 13px; border: 1px solid var(--line); background: #fff; font-size: .84rem; transition: all .2s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.anon { margin: -4px 0 18px; padding: 14px; border: 1px dashed var(--line); font-size: .86rem; }
.anon small { display: block; color: var(--faint); margin-top: 4px; }
.err { color: #b42318; font-size: .82rem; }
.ws-count { font-size: .76rem; color: var(--faint); text-align: right; }
.ws-formerr { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ws-success { padding: 72px 48px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.ws-success h2 { font-size: clamp(2rem, 4vw, 3rem); }
.ws-ref b { display: inline-block; margin-left: 6px; padding: 6px 10px; background: var(--ink); color: var(--lime); font: 600 .9rem/1 var(--sans); letter-spacing: .08em; }
.ws-note { color: var(--muted); }

/* ---------- Acceso ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { padding: 48px clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.auth-side .wordmark { color: #fff; }
.auth-side blockquote { margin: 0; font: 400 clamp(2rem, 3.6vw, 3.2rem)/1.08 var(--serif); letter-spacing: -0.03em; max-width: 16ch; }
.auth-side blockquote em { color: var(--lime); font-style: italic; }
.auth-side small { color: #8ea39b; font-size: .82rem; }
.auth-main { display: grid; place-items: center; padding: 48px 28px; }
.auth-form { width: min(400px, 100%); display: grid; gap: 22px; }
.auth-form h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.auth-form p { color: var(--muted); }
.auth-form label { display: grid; gap: 8px; font-size: .86rem; font-weight: 500; }
.auth-form .btn { justify-content: center; width: 100%; padding: 17px; }
.auth-form .btn[disabled] { opacity: .6; cursor: progress; }
.auth-help { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.auth-back { font-size: .86rem; color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--ink); }
.auth-error { padding: 12px 14px; border-left: 2px solid #b42318; background: #fdf1ef; color: #7a1a12; font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 22px; }
  .nav-login span { display: none; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
  .sources { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-link { width: 1px; height: 48px; margin: 0 auto; background: linear-gradient(180deg, transparent, var(--lime), transparent); }
  .flow-link::after { right: -4px; top: auto; bottom: 6px; transform: rotate(135deg); }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 28px 28px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-cta { display: none; }
  .hero-grid, .page-hero-grid, .section-head, .portal-grid, .closing-grid, .audience, .ws-grid, .auth { grid-template-columns: 1fr; }
  .hero-art { max-height: 340px; aspect-ratio: 5 / 4; justify-self: stretch; }
  .page-hero-grid { gap: 28px; }
  .section-head .lead { justify-self: start; }
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .path + .path { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .on-ink .step:nth-child(n + 3) { border-top-color: var(--line-dark); }
  .audience { gap: 56px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .auth-side { min-height: 0; padding-block: 32px; }
  .auth-side blockquote { display: none; }
  .ws-side { padding: 40px 28px 28px; }
  .ws-main { padding: 32px 28px; }
}
@media (max-width: 620px) {
  :root { --wrap: calc(100% - 40px); }
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .on-ink .step + .step { border-top-color: var(--line-dark); }
  .sources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-row { grid-template-columns: 1fr; }
  .preview-kpis { grid-template-columns: 1fr 1fr; }
  .preview-kpi:nth-child(3) { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-login { font-size: .84rem; }
}
