/* pagina.css: generado desde las páginas de landing (fase 2). Ver DESIGN.md. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #12233E;
  --graphite: #2C3340;
  --cyan: #009ACE;
  --sky: #A7DCEE;
  --paper: #FAFAF7;
  --mist: #E8EAEC;
  --slate: #5F6673;
  --bg-base: var(--paper);
  --bg-subtle: #F4F4F0;
  --bg-elevated: #FFFFFF;
  --bg-brand-soft: #E6F4F9;
  --rule: rgba(18, 35, 62, 0.10);
  --rule-strong: rgba(18, 35, 62, 0.18);
  --w-page: 1180px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg-base); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.display { font-family: var(--font-display); font-stretch: 90%; letter-spacing: -0.01em; }
.page { max-width: var(--w-page); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }
.eyebrow { font-family: var(--font-body); font-size: 0.8125rem; color: var(--cyan-ink); margin-bottom: 1rem; font-weight: 600; }
h1.display { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.05; margin-bottom: 1.25rem; }
h2.display { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; line-height: 1.1; margin-bottom: 1rem; }
h3.display { font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.75rem; }
.lead { font-size: 1.05rem; color: var(--graphite); max-width: 640px; line-height: 1.7; }
.accent { color: var(--cyan); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--cyan-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, 0.92); border-bottom: 1px solid var(--rule); }
.nav-inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.nav-brand { display: flex; align-items: center; gap: 0; }
.nav-brand-logo, .nav-brand-certs { display: flex; align-items: center; text-decoration: none; }
.nav-brand-certs:hover .nav-cert-badges { opacity: 1; }
.logo-mask {
  display: inline-block;
  background-color: var(--ink);
  -webkit-mask: url('/logo_white.png') no-repeat left center / contain;
  mask: url('/logo_white.png') no-repeat left center / contain;
}
.nav-logo { width: 160px; height: 72px; }
.nav-cert-badges { height: 56px; width: auto; object-fit: contain; opacity: 0.92; margin-left: -0.75rem; }
.nav-links { display: flex; justify-content: center; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--graphite); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--cyan-ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--cyan-ink); }
.hero { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--rule); }
.hero-content { max-width: 720px; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}
.service-card { background: var(--bg-elevated); padding: 2.2rem 1.8rem; }
.service-num { font-family: var(--font-data); font-size: 0.75rem; color: var(--cyan-ink); letter-spacing: 0.15em; margin-bottom: 1rem; }
.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.92rem; color: var(--slate); line-height: 1.65; }
.protocols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.protocol-card { background: var(--bg-elevated); border: 1px solid var(--rule); padding: 2rem; }
.protocol-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.protocol-card p { font-size: 0.9rem; color: var(--slate); line-height: 1.7; }
.protocol-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  background: var(--bg-brand-soft);
  color: var(--cyan-ink);
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.diff-card { border: 1px solid var(--rule); padding: 2rem; background: var(--bg-elevated); }
.diff-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.diff-card p { font-size: 0.88rem; color: var(--slate); line-height: 1.7; }
.cta-section { background: var(--ink); color: var(--paper); text-align: center; padding: 5rem 2rem; }
.cta-section h2 { color: var(--paper); margin-bottom: 0.8rem; }
.cta-section p { color: var(--sky); max-width: 540px; margin: 0 auto 2rem; }
.cta-section .btn-primary { background: var(--cyan); color: var(--ink); }
.cta-section .btn-primary:hover { background: var(--sky); }
footer { padding: 2.5rem 2rem; border-top: 1px solid var(--rule); background: var(--ink); color: var(--paper); }
.footer-inner { max-width: var(--w-page); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 2rem 3rem; align-items: start; }
.footer-logo { width: 140px; height: 40px; background-color: var(--paper); }
.footer-contact { display: grid; gap: 0.35rem; font-size: 0.88rem; line-height: 1.6; }
.footer-contact a { color: var(--sky); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.footer-contact a:hover { text-decoration-thickness: 2px; }
.footer-meta {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(167, 220, 238, 0.15);
  font-size: 0.875rem;
  color: rgba(250, 250, 247, 0.55);
}
@media (max-width: 960px) {
  .nav-cert-badges { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .protocols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  section { padding: 3.5rem 0; }
  .page, .nav-inner { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
/* ── Debida diligencia ── */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hero-content { max-width: 780px; }
.lead strong, .prose strong, .cell p strong { color: var(--ink); font-weight: 600; }
.prose { font-size: 0.98rem; color: var(--graphite); line-height: 1.75; max-width: 46rem; margin-top: 1rem; }
.band { background: var(--bg-subtle); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dark { background: var(--ink); color: var(--paper); }
.dark h2 { color: var(--paper); }
.dark .lead { color: rgba(250, 250, 247, 0.82); }
.fine + .fine { margin-top: 0.8rem; }
.stats {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: rgba(167, 220, 238, 0.2);
  margin-top: 2.5rem;
  border: 1px solid rgba(167, 220, 238, 0.2);
}
.stat { background: var(--ink); padding: 2rem 1.8rem; }
.stat-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.stat:first-child .stat-val { color: var(--cyan); }
.stat p { margin-top: 0.8rem; font-size: 0.9rem; line-height: 1.6; color: rgba(250, 250, 247, 0.82); }
.src {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}
.fine { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.65; color: rgba(250, 250, 247, 0.72); max-width: 52rem; }
.grid { display: grid; gap: 1px; margin-top: 2.5rem; background: var(--rule-strong); border: 1px solid var(--rule-strong); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.cell { background: var(--bg-elevated); padding: 2rem 1.8rem; }
.cell h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.6rem; }
.cell p { font-size: 0.9rem; color: var(--graphite); line-height: 1.65; }
.cell ul { margin-top: 0.9rem; padding-left: 1.1rem; }
.cell li { font-size: 0.88rem; color: var(--graphite); line-height: 1.6; margin-bottom: 0.35rem; }
.cell li::marker { color: var(--cyan-ink); }
.tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--cyan-ink);
  margin-bottom: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.norm {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.cmp { width: 100%; border-collapse: collapse; margin-top: 2.5rem; background: var(--bg-elevated); border: 1px solid var(--rule-strong); }
.cmp th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.cmp td {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--graphite);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cmp tr:last-child td { border-bottom: none; }
.cmp td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cmp td:last-child { color: var(--ink); }
.scroll-x { overflow-x: auto; }
/* flujo por carriles */
.flow-box { margin-top: 2.5rem; border: 1px solid var(--rule-strong); background: var(--bg-elevated); }
.flow-box svg { display: block; width: 100%; min-width: 760px; height: auto; }
.flow-caption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--graphite);
}
.flow-caption::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }
.lane { fill: var(--bg-subtle); }
.lane-mid { fill: var(--bg-brand-soft); }
.lane-label { font-family: var(--font-body); font-size: 10px; fill: var(--slate); }
.edge { fill: none; stroke: var(--rule-strong); stroke-width: 1.5; transition: stroke 180ms cubic-bezier(0.16, 1, 0.3, 1); }
.edge.alt { stroke-dasharray: 4 5; }
.edge.done { stroke: var(--cyan); }
.edge-label { font-family: var(--font-body); font-size: 8.5px; fill: var(--cyan-ink); }
.node rect {
  fill: var(--bg-elevated);
  stroke: var(--rule-strong);
  stroke-width: 1.2;
  transition: stroke 180ms cubic-bezier(0.16, 1, 0.3, 1), stroke-width 180ms;
}
.node .n { font-family: var(--font-data); font-size: 9px; fill: var(--cyan-ink); }
.node .l { font-family: var(--font-display); font-size: 11px; font-weight: 600; fill: var(--ink); }
.node .s { font-family: var(--font-body); font-size: 10.5px; fill: var(--graphite); }
.node.done rect { stroke: var(--cyan); }
.node.on rect { stroke: var(--cyan); stroke-width: 2.4; }
.live .node { opacity: 0.55; transition: opacity 180ms; }
.live .node.on, .live .node.done { opacity: 1; }
.token { fill: var(--cyan); }
.steps { margin-top: 2rem; padding-left: 1.2rem; max-width: 46rem; }
.steps li { font-size: 0.92rem; color: var(--graphite); line-height: 1.65; margin-bottom: 0.45rem; }
.steps li::marker { font-family: var(--font-data); font-size: 0.78rem; color: var(--cyan-ink); }
.steps strong { color: var(--ink); }
.limits {
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  background: var(--bg-brand-soft);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--graphite);
  max-width: 52rem;
}
.limits strong { color: var(--ink); }
.disclaimer { margin-top: 2rem; font-size: 0.875rem; color: var(--graphite); line-height: 1.6; max-width: 52rem; }
.cta-section .btn-ghost { color: var(--paper); border-color: rgba(250, 250, 247, 0.35); }
/* selector de frente */
.mode { margin-top: 2rem; }
.mode-label { font-family: var(--font-body); font-size: 0.8125rem; color: var(--slate); margin-bottom: 0.6rem; font-weight: 600; }
.mode-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); border-radius: 2px; }
.mode-tab {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.3rem;
  background: transparent;
  color: var(--ink);
  border: none;
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.16, 1, 0.3, 1), color 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mode-tab:hover { background: var(--bg-brand-soft); }
.mode-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
html[data-mode="contratistas"] [data-for="beneficiarios"], html[data-mode="beneficiarios"] [data-for="contratistas"] { display: none; }
html:not([data-mode]) .mode { display: none; }
/* pregunta inicial: dos caminos, sin contenido hasta elegir */
.chooser { display: none; }
html[data-mode="elegir"] .chooser { display: block; }
html[data-mode="elegir"] .hero-detail, html[data-mode="elegir"] #contenido, html[data-mode="elegir"] .nav-links { display: none; }
html[data-mode="elegir"] .hero { border-bottom: none; padding-bottom: 5rem; min-height: calc(100vh - 260px); }
.chooser-q {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--graphite);
}
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.5rem; background: var(--ink); border: 1px solid var(--ink); }
.choice {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 2.5rem 2.2rem;
  background: var(--bg-elevated);
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.choice-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.choice-text { margin-top: 1rem; font-size: 0.98rem; line-height: 1.65; color: var(--graphite); max-width: 26rem; transition: color 180ms; }
.choice-go { margin-top: auto; padding-top: 2rem; font-size: 0.88rem; font-weight: 600; color: var(--cyan-ink); }
.choice:hover, .choice:focus-visible { background: var(--ink); color: var(--paper); }
.choice:hover .choice-text, .choice:focus-visible .choice-text { color: rgba(250, 250, 247, 0.82); }
.choice:hover .tag, .choice:hover .choice-go, .choice:focus-visible .tag, .choice:focus-visible .choice-go { color: var(--sky); }
@media (max-width: 760px) {
  .chooser-grid { grid-template-columns: 1fr; }
  .choice { min-height: 0; padding: 2rem 1.5rem; }
}
.stat-h { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--paper); }
.stat:first-child .stat-h { color: var(--cyan); }
@media (max-width: 520px) {
  .mode-tabs { display: flex; flex-direction: column; }
}
@media (max-width: 960px) {
  .stats, .g2, .g3 { grid-template-columns: 1fr; }
  .cmp td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
/* ── monitoreo mensual ── */
.monitor {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding: 2.2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--ink);
  scroll-margin-top: calc(var(--nav-h, 73px) + 3.5rem);
}
.monitor h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.7rem; }
.monitor p { font-size: 0.94rem; color: var(--graphite); line-height: 1.7; }
.monitor p strong { color: var(--ink); font-weight: 600; }
.monitor-list { list-style: none; display: grid; gap: 1.1rem; align-content: center; }
.monitor-list li { font-size: 0.9rem; line-height: 1.6; color: var(--graphite); padding-left: 1.1rem; }
.monitor-list strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 960px) {
  .monitor { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.6rem; }
}

/* ── línea de contexto sobre el título: texto de apoyo, sin mayúsculas espaciadas ni monoespaciada ── */
.eyebrow { display: block; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; line-height: 1.4;
  color: var(--slate-ink); letter-spacing: 0; text-transform: none; margin-bottom: 0.6rem; }
.dark .eyebrow, .promise .eyebrow, .contact .eyebrow, .cta-section .eyebrow { color: var(--sky); }

/* ── tablas comparativas: la primera celda de cada fila es su encabezado ── */
.cmp caption { caption-side: top; }
.cmp tbody th { text-align: left; padding: 1rem 1.2rem; font-size: 0.9rem; line-height: 1.55; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--rule); vertical-align: top; white-space: nowrap; font-family: var(--font-body);
  letter-spacing: 0; text-transform: none; }
.cmp tbody tr:last-child th { border-bottom: none; }
.cmp thead th { border-bottom: 1px solid var(--ink); }
@media (max-width: 960px) { .cmp tbody th { white-space: normal; } }
.scroll-x:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 4px; }

/* ── recuadros destacados: fondo de marca suave, sin borde lateral ── */
.limits { border-radius: 2px; }
.mode-tabs { gap: 1px; background: var(--ink); }
.mode-tab { background: var(--bg-elevated); }
.mode-tab[aria-selected="true"] { background: var(--ink); }
.monitor { border-top: 3px solid var(--cyan); }
.monitor-list li { padding-left: 0; }
.monitor-list li + li { padding-top: 1.1rem; border-top: 1px solid var(--rule); }

/* ── ritmo: no todo es una caja. Los momentos se leen como una secuencia sobre una línea,
   y las garantías como una lista con reglas, sin tarjetas. ── */
#servicios .grid.g3 { gap: 0 2rem; background: none; border: none; }
#servicios .g3 .cell { background: none; padding: 1.25rem 0 0.25rem; border-top: 2px solid var(--ink); }
#garantias .grid { gap: 0 2.5rem; background: none; border: none; }
#garantias .cell { background: none; padding: 1.5rem 0 1.25rem; border-top: 1px solid var(--rule-strong); }
@media (max-width: 960px) { #servicios .g3 .cell + .cell, #garantias .cell + .cell { margin-top: 0.5rem; } }

/* ── barra superior sólida (sin vidrio esmerilado) ── */
nav, nav.is-scrolled { background: var(--paper); }

/* ── textos del diagrama de proceso (antes en atributos style) ── */
#flow .node .l { font-size: 13px; }
#flow .node .s { font-size: 10px; }

/* ── en las superficies Ink el cian de marca ya contrasta (4,9:1): ahí es el color de texto ── */
.dark, .stat, .promise, .contact, .cta-section, footer, .attractor-overlay,
.line:hover, .line:focus-visible, .choice:hover, .choice:focus-visible { --cyan-ink: var(--cyan); }
