/* ==========================================================================
   Civitas Consulting — sistema visual
   Canon institucional oscuro. Vara de oficio: consultora global.
   Autoridad tipográfica, retícula disciplinada, densidad controlada.

   1.  Tokens
   2.  Base, reset y tipografía
   3.  Retícula y ritmo de sección
   4.  Botones, enlaces e iconos
   5.  Cabecera y navegación
   6.  Portada (hero) y figura de datos
   7.  Principios, prácticas y productos
   8.  Informes (destacado en portada, listado y artículo)
   9.  Perfil, preguntas y avisos
   10. Formularios
   11. Pie de página
   12. Movimiento
   13. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  /* Tinta: rampa azul-negra, nunca gris puro */
  --ink-900: #050B15;
  --ink-850: #08111F;
  --ink-800: #0B1727;
  --ink-750: #0F1E31;
  --ink-700: #13253C;

  /* Líneas */
  --line: #17293F;
  --line-strong: #22405F;
  --line-soft: #101E30;

  /* Texto */
  --text: #E8EEF7;
  --text-2: #A7B9D0;
  --text-3: #8296B1;

  /* Marca */
  --accent: #4C9AF0;
  --accent-strong: #7FB8FA;
  --accent-press: #3A82D8;
  --accent-ghost: rgba(76, 154, 240, 0.10);
  --brass: #C9A227;
  --brass-soft: rgba(201, 162, 39, 0.12);

  /* Series de datos */
  /* Serie de datos: azul y latón son las únicas voces cromáticas; --data-0 y
     --data-3 son pasos de tinta neutra. --data-4 es solo estado de error. */
  --data-0: #6B819F;
  --data-1: #4C9AF0;
  --data-2: #C9A227;
  --data-3: #7286A8; /* aclarado para que el número oscuro dentro de la barra pase 4.5:1 */
  --data-4: #C0655A;

  /* Tipografía */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Retícula */
  --wrap: 1160px;
  --wrap-wide: 1320px;
  --wrap-narrow: 760px;
  --gutter: 28px;

  /* Escala de espacio (base 4) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;

  /* Esquinas rectas: verificado con getComputedStyle sobre botones y tarjetas
     reales de mckinsey.com — border-radius: 0 en todos los casos probados. */
  --radius-xs: 0;
  --radius: 0;
  --radius-lg: 0;

  --shadow-raised: 0 18px 40px -24px rgba(0, 0, 0, 0.85);
  --shadow-header: 0 12px 28px -20px rgba(0, 0, 0, 0.9);

  --dur-fast: 140ms;
  --dur: 220ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base, reset y tipografía ---------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: normal;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 5.2vw, 62px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.35; }

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

strong { font-weight: 600; color: var(--text); }

svg { display: block; }

img { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.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;
}

.skip-link {
  position: absolute;
  top: -200%;
  left: var(--s4);
  z-index: 200;
  background: var(--accent);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
}

.skip-link:focus { top: var(--s3); }

/* Etiqueta de dato o de widget. Nunca sobre un encabezado: rotula fichas,
   tablas y navegación auxiliar. */
.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.num { font-variant-numeric: tabular-nums; }

/* 3. Retícula y ritmo de sección -------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding: var(--s9) 0;
  border-top: 1px solid var(--line-soft);
}

.section--tint { background: var(--ink-850); }
.section--flush { border-top: 0; }

.section-head { margin-bottom: var(--s7); }

.section-head h2 { max-width: 20ch; }

.section-head .lede {
  margin-top: var(--s4);
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s7);
  align-items: end;
}

.section-head--split .lede { margin-top: 0; text-align: justify; hyphens: auto; }

.section-head--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-head--center h2, .section-head--center .lede { max-width: none; margin-left: auto; margin-right: auto; }

/* 4. Botones, enlaces e iconos ---------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #04101E;
}

.btn--primary:hover { background: var(--accent-strong); }
.btn--primary:active { background: var(--accent-press); }

.btn--primary:disabled {
  background: var(--ink-700);
  color: var(--text-3);
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.link:hover {
  color: var(--accent-strong);
  border-bottom-color: currentColor;
}

.link .icon { transition: transform var(--dur) var(--ease); }
.link:hover .icon { transform: translateX(3px); }

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon--lg { width: 20px; height: 20px; }

.link--quiet { color: var(--text-2); }
.link--quiet:hover { color: var(--text); }

.prose-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(76, 154, 240, 0.4);
}

.prose-link:hover { border-bottom-color: currentColor; }

/* 5. Cabecera y navegación --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  margin-right: auto;
}

.brand__mark { width: 30px; height: 30px; flex: none; }

.brand__word {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1;
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.nav__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.nav__link:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav__link[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--line-strong);
}

.nav__cta {
  flex: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.nav__cta:hover {
  border-color: var(--accent);
  background: var(--accent-ghost);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__close { display: block; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
}

.back-link:hover { color: var(--text); }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: var(--s5);
}

.breadcrumbs a:hover { color: var(--text-2); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs .current { color: var(--text-2); }

/* 6. Portada (hero) y figura de datos ---------------------------------------- */

.hero {
  padding: var(--s9) 0 var(--s8);
  position: relative;
  overflow: hidden;
}

/* Solo el lavado de tinta en la parte alta. La retícula decorativa que había
   aquí no se alineaba con ninguna columna real: un falso orden es justo lo que
   esta dirección no puede permitirse. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 23, 39, 0.85) 0%, rgba(5, 11, 21, 0) 72%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero__grid { max-width: none; text-align: center; }

.hero__title { max-width: 20ch; margin-left: auto; margin-right: auto; }

/* Portada: titular en una sola línea (a diferencia de hero--page en páginas
   interiores, que envuelve normalmente a 20ch). */
.hero:not(.hero--page) .hero__title {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(38px, 5.2vw, 51px);
}

/* CISEPI y PlanDes: mismo tamaño de titular que la portada. Sus textos son
   más largos, así que aquí sí puede envolver a varias líneas (sin nowrap)
   en vez de forzar una sola línea a costa de encogerlo. */
.hero--product .hero__title {
  max-width: none;
  font-size: clamp(38px, 5.2vw, 51px);
}

.hero__deck {
  margin-top: var(--s5);
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.hero__deck--split {
  margin-top: var(--s7);
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--s7);
  text-align: left;
  font-size: 18px;
}

.hero__deck--split p:last-child {
  padding-left: var(--s7);
  border-left: 1px solid var(--line-strong);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
  margin-top: var(--s6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--text-3);
}

.hero--page { padding-bottom: var(--s7); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  color: var(--text-2);
}

.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status--live { color: var(--accent-strong); border-color: rgba(76, 154, 240, 0.42); }
.status--dev { color: var(--brass); border-color: rgba(201, 162, 39, 0.42); }

/* Figura de datos: cifras propias, no adorno */
.figure {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  box-shadow: var(--shadow-raised);
}

.figure__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}

.figure__title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.figure__note { font-size: 12.5px; color: var(--text-3); flex: none; }

.figure__caption {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}

/* Identidad de producto: CISEPI se apoya en azul (la voz del resultado),
   PlanDes en latón (la voz de lo pendiente) — el mismo reparto que ya usan
   .status--live/.status--dev. Se define un token nuevo y local al hero de
   producto, no se reasignan --accent/--brass, para que nada se filtre a
   botones o foco en el resto del sitio. */
.hero--product[data-product] { --product-voice: var(--accent); }
.hero--product[data-product="plandes"] { --product-voice: var(--brass); }

/* .figure sigue siendo el mismo panel legal (fondo, borde, radio, sombra
   sin cambios) — solo se le agrega una raya de 3px en el borde superior. */
.hero--product .figure { position: relative; }
.hero--product .figure::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--product-voice);
}

/* Migas de pan: el nombre de la página activa toma la voz del producto. */
.hero--product .breadcrumbs .current { color: var(--product-voice); }

/* 7. Principios, prácticas y productos --------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  border-top: 1px solid var(--line);
  padding-top: var(--s7);
}

/* Grid "cómo ayudamos": tarjeta con imagen editorial + título con chevron y
   descripción — patrón verificado en el código fuente real de mckinsey.com
   ("How we help clients"). Decisión 2026-08-07: se reemplazó la marca SVG
   abstracta original (node-and-edge, nunca fotografía) por fotografía
   editorial generada — sin caras, sin cifras inventadas, sin pretender ser
   evidencia de cliente — por decisión explícita del fundador. */
.help-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.help-card__viz {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  background: var(--ink-850);
  border: 1px solid var(--line-soft);
}

.help-card h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 22px;
  margin: var(--s4) 0 var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.help-card h3 .icon { stroke: var(--accent); stroke-width: 2; transition: transform var(--dur) var(--ease); }
.help-card:hover h3 .icon { transform: translateX(3px); }

.help-card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 38ch;
}

/* Líneas de trabajo, como índice editorial */
.practice {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: var(--s7);
  padding: var(--s7) 0;
  border-top: 1px solid var(--line);
}

.practice:last-of-type { border-bottom: 1px solid var(--line); }

.practice__title { margin-bottom: var(--s4); max-width: 28ch; text-transform: uppercase; }

.practice__summary {
  color: var(--text-2);
  max-width: 46ch;
  font-size: 16.5px;
}

.practice__prompt {
  margin-top: var(--s5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--text);
  max-width: 34ch;
  padding-left: var(--s4);
  border-left: 1px solid var(--brass);
}

.practice__subcaps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}

.subcap {
  padding-top: var(--s4);
  border-top: 1px solid var(--line-soft);
}

.subcap h4 { margin-bottom: var(--s2); }

.subcap p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.5;
}

.practice__foot { margin-top: var(--s5); }

/* Productos */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}

/* Entradas regladas, no tarjetas: el filete superior las separa y la marca
   abstracta las encabeza. */
.product {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s5);
}

.product__viz {
  width: 100%;
  height: 108px;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s4);
}

.product__body {
  padding-top: var(--s5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* El estado va en la línea del título, no encima: suelto sobre el nombre del
   producto se leería como antetítulo. */
.product__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s4);
  margin: var(--s4) 0 var(--s1);
}

.product__title {
  font-size: 30px;
  letter-spacing: normal;
}

.product__tagline {
  font-size: 15px;
  color: var(--text-3);
  margin-bottom: var(--s4);
}

.product__body > p {
  color: var(--text-2);
  font-size: 16px;
  text-align: justify;
  hyphens: auto;
}

.product__facts {
  margin: var(--s5) 0 0;
  border-top: 1px solid var(--line);
}

.product__facts div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: var(--s4);
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}

.product__facts dt { color: var(--text-3); }
.product__facts dd { color: var(--text-2); }

.product__foot { margin-top: auto; padding-top: var(--s5); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

.tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

/* Pasos: aquí la secuencia sí es información */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  border-top: 1px solid var(--line);
}

.step {
  padding: var(--s6) var(--s5) var(--s6) 0;
  border-right: 1px solid var(--line);
}

.step:last-child { border-right: 0; }
.step:not(:first-child) { padding-left: var(--s5); }

.step__num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.step h3 { font-size: 19px; margin-bottom: var(--s2); }

.step p { font-size: 15.5px; color: var(--text-2); }

/* Fichas de uso */
.uses { border-top: 1px solid var(--line); }

.use {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr);
  gap: var(--s6);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line-soft);
}

.use h3 { font-size: 20px; }
.use p { color: var(--text-2); font-size: 16px; max-width: 60ch; }

/* Llamado de cierre */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto;
  gap: var(--s7);
  align-items: center;
  margin-top: var(--s8);
  padding-top: var(--s6);
  border-top: 1px solid var(--line-strong);
}

.cta h3 { max-width: 24ch; margin-bottom: var(--s3); }
.cta p { color: var(--text-2); max-width: 56ch; font-size: 16px; }

/* Franja de cierre a color sólido — patrón verificado en mckinsey.com (banda
   "McKinsey.org" antes del footer). Único lugar del sistema donde el azul
   cubre un fondo completo en vez de acentuar sobre tinta. */
.cta-band { background: var(--accent); }

.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s7);
  flex-wrap: wrap;
  padding: var(--s8) 0;
}

.cta-band h2 {
  color: #04101E;
  font-weight: 300;
  max-width: 32ch;
  margin: 0;
}

.cta-band p {
  margin-top: var(--s3);
  color: rgba(4, 16, 30, 0.75);
  max-width: 52ch;
  font-size: 16px;
}

.btn--dark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: #04101E;
  color: var(--text);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 600;
  flex: none;
}

.notice {
  margin-top: var(--s6);
  padding: var(--s5);
  background: var(--brass-soft);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius);
  font-size: 15.5px;
  color: var(--text-2);
}

.notice strong { color: var(--text); }

/* 8. Informes ---------------------------------------------------------------- */

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid currentColor;
}

.badge--institucional { color: var(--accent-strong); }
.badge--territorial { color: var(--brass); }
.badge--electoral { color: #E0928A; }

.report-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s7);
  align-items: center;
  padding: var(--s7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-feature__meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
  font-size: 13.5px;
  color: var(--text-3);
}

.report-feature h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: var(--s4); }
.report-feature p { color: var(--text-2); max-width: 52ch; text-align: justify; hyphens: auto; }
.report-feature .link { margin-top: var(--s5); }

.report-list { margin-top: var(--s6); }

.report-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: var(--s5);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.report-item__meta { font-size: 13.5px; color: var(--text-3); padding-top: 4px; }
.report-item h4 { font-family: var(--serif); font-size: 20px; margin-bottom: var(--s2); }
.report-item p { color: var(--text-2); font-size: 15.5px; max-width: 68ch; text-align: justify; hyphens: auto; }

/* Listado */
.informes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}

.filter-group { display: flex; flex-wrap: wrap; gap: var(--s2); }

.filter-button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.filter-button:hover { color: var(--text); border-color: var(--line-strong); }

.filter-button[aria-pressed='true'] {
  color: var(--accent-strong);
  border-color: var(--accent);
  background: var(--accent-ghost);
}

.search-field { position: relative; min-width: 280px; }

.search-field .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px 10px 38px;
}

.search-field input::placeholder { color: var(--text-3); }
.search-field input:focus { border-color: var(--accent); outline: none; }
.search-field input:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; }

.informes-status {
  margin: var(--s4) 0 var(--s6);
  font-size: 13.5px;
  color: var(--text-3);
}

.informes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: var(--s6);
}

.informe-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.informe-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.informe-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink-850);
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.informe-card__body {
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.informe-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
  font-size: 13px;
  color: var(--text-3);
}

.informe-card h3 { font-size: 22px; margin-bottom: var(--s3); }
.informe-card p { font-size: 15px; color: var(--text-2); }
.informe-card__foot { margin-top: auto; padding-top: var(--s5); }
.informe-card .link { pointer-events: none; }

.empty-state {
  padding: var(--s8) 0;
  text-align: center;
  color: var(--text-2);
  font-size: 16px;
}

.empty-state.is-hidden { display: none; }

/* Artículo */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  font-size: 13.5px;
  color: var(--text-3);
}

.article-meta .draft { color: var(--brass); }

.article-title { max-width: 18ch; margin: var(--s5) 0 var(--s4); }

.article-deck {
  max-width: 60ch;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-2);
}

.article-figure { margin-top: var(--s7); }

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 104px;
  padding-right: var(--s5);
  border-right: 1px solid var(--line);
}

.article-aside .label { margin-bottom: var(--s3); }

.article-jumpnav {
  display: grid;
  gap: var(--s1);
  margin-bottom: var(--s6);
}

.article-jumpnav a {
  font-size: 14.5px;
  color: var(--text-2);
  padding: 5px 0 5px var(--s3);
  border-left: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.article-jumpnav a:hover { color: var(--text); border-left-color: var(--accent); }

.article-aside dl { border-top: 1px solid var(--line); }

.article-aside dl div {
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-soft);
}

.article-aside dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}

.article-aside dd { font-size: 14.5px; color: var(--text-2); }

.article-byline {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}

.byline-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.byline-name { display: block; font-size: 14.5px; font-weight: 600; }
.byline-role { display: block; font-size: 13px; color: var(--text-3); line-height: 1.4; }

.article-prose { max-width: 68ch; }

.article-prose p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.72;
  color: #DCE5F1;
  margin-bottom: var(--s5);
}

.article-prose h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin: var(--s8) 0 var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.article-prose h3 { margin: var(--s6) 0 var(--s3); }

.article-prose ul,
.article-prose ol { margin: 0 0 var(--s5) var(--s5); }

.article-prose li {
  font-family: var(--serif);
  font-size: 18.5px;
  line-height: 1.7;
  color: #DCE5F1;
  margin-bottom: var(--s2);
}

.article-callout {
  margin: var(--s6) 0;
  padding: var(--s5) var(--s6);
  background: var(--ink-800);
  border: 1px solid rgba(201, 162, 39, 0.34);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}

.article-callout strong.callout-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s3);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s6) 0;
  font-family: var(--sans);
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 11px var(--s3);
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.data-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line-strong);
}

.data-table td + td,
.data-table th + th {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 96px;
}

.data-table tbody tr:hover { background: var(--ink-850); }

.data-table tfoot td {
  padding-top: var(--s4);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
  text-align: left;
  border-bottom: 0;
  width: auto;
}

.table-scroll { overflow-x: auto; }

.article-references {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.article-references h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 var(--s4);
  border: 0;
  padding: 0;
}

.article-references ol { margin-left: var(--s5); }

.article-references li {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-3);
  margin-bottom: var(--s3);
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-bottom: var(--s4);
  font-size: 13px;
  color: var(--text-2);
}

.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }

.chart-legend i {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-xs);
  flex: none;
}

.legend-1 { background: var(--data-1); }
.legend-2 { background: var(--data-2); }
.legend-3 { background: var(--data-3); }

/* Barras apiladas (composición del Congreso) */
.stack {
  display: grid;
  gap: var(--s5);
  margin-top: var(--s5);
}

.stack__row { display: grid; gap: 7px; }

.stack__label {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-2);
}

.stack__bar {
  display: flex;
  height: 26px;
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.stack__bar svg { display: block; }

.stack__seg {
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #04101E;
  font-variant-numeric: tabular-nums;
}

.stack__seg--1 { background: var(--data-1); }
.stack__seg--2 { background: var(--data-2); }
.stack__seg--3 { background: var(--data-3); }

/* Texto y relleno dentro de los SVG de portada de informe (el CSP no admite
   style="" en el markup, tampoco dentro del SVG). */
.viz-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--text);
}

.viz-1 { fill: var(--data-1); }
.viz-2 { fill: var(--data-2); }
.viz-3 { fill: var(--data-3); }
.viz-bg { fill: var(--ink-850); }

/* Curules por bloque. Senado 108: 38 · 33 · 37. Cámara 182: 60 · 47 · 75. */
.seg--sen-1 { width: 35.2%; }
.seg--sen-2 { width: 30.6%; }
.seg--sen-3 { width: 34.2%; }
.seg--cam-1 { width: 33.0%; }
.seg--cam-2 { width: 25.8%; }
.seg--cam-3 { width: 41.2%; }

/* 9. Perfil, preguntas y avisos ---------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}

.profile__portrait {
  position: relative;
  width: 200px;
  height: 267px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.profile__portrait img { width: 100%; height: 100%; object-fit: cover; }

.profile__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  color: var(--text-3);
}

.profile__name { font-family: var(--serif); font-size: 28px; font-weight: 600; }

.profile__role { font-size: 15px; color: var(--accent-strong); margin-top: var(--s1); }

.profile__bio {
  margin-top: var(--s5);
  color: var(--text-2);
  max-width: 66ch;
  font-size: 16.5px;
  text-align: justify;
  hyphens: auto;
}

.profile__credentials {
  list-style: none;
  margin-top: var(--s6);
  border-top: 1px solid var(--line);
}

.profile__credentials li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15.5px;
  color: var(--text-2);
  max-width: 72ch;
}

.profile__credentials strong { color: var(--text); }

.profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  margin-top: var(--s5);
}

.qa { border-top: 1px solid var(--line); }

.qa__item { border-bottom: 1px solid var(--line-soft); }

.qa__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s5);
  padding: var(--s5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--dur-fast) var(--ease);
}

.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary:hover { color: var(--accent-strong); }

.qa__item summary .icon {
  color: var(--text-3);
  transition: transform var(--dur) var(--ease), color var(--dur-fast) var(--ease);
}

.qa__item[open] summary .icon { transform: rotate(45deg); color: var(--accent); }

.qa__item > p {
  padding-bottom: var(--s5);
  max-width: 74ch;
  color: var(--text-2);
  font-size: 16.5px;
  text-align: justify;
  hyphens: auto;
}

/* 10. Formularios ------------------------------------------------------------ */

/* Un solo filete cruza las dos columnas: así el bloque lateral y la primera
   fila del formulario cuelgan de la misma línea, en vez de casi alinearse. */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: var(--s8);
  align-items: start;
  padding-top: var(--s5);
  border-top: 1px solid var(--line-strong);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5);
}

.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:hover,
.field textarea:hover { border-color: var(--line-strong); }

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--ink-800);
  outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; }

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] { border-color: var(--data-4); }

.field-error {
  font-size: 13.5px;
  color: #E4938B;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

.form-status { font-size: 14.5px; color: var(--text-2); }
.form-status.ok { color: var(--accent-strong); }
.form-status.error { color: #E4938B; }

.contact-aside { padding-left: 0; }

.contact-aside h3 { font-size: 20px; margin-bottom: var(--s3); }
.contact-aside p { font-size: 15px; color: var(--text-2); margin-bottom: var(--s5); }

.contact-aside dl { border-top: 1px solid var(--line); }

.contact-aside dl div {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-aside dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}

.contact-aside dd { font-size: 15px; color: var(--text-2); }

.contact-aside dd a { color: var(--accent); }
.contact-aside dd a:hover { color: var(--accent-strong); }

/* 11. Pie de página ---------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-850);
  padding: var(--s8) 0 var(--s6);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s7);
  padding-bottom: var(--s7);
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: var(--s4);
  font-size: 14.5px;
  color: var(--text-3);
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s4);
}

.footer-col ul { list-style: none; display: grid; gap: 9px; }

.footer-col a {
  font-size: 14.5px;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover { color: var(--text); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  justify-content: space-between;
  padding-top: var(--s5);
  font-size: 13.5px;
  color: var(--text-3);
}

/* 12. Movimiento ------------------------------------------------------------- */
/* Sin keyframes autorales: el sistema se mueve solo por transición de estado
   (--dur-fast / --dur), nunca por una animación de carga o de scroll. */

/* 13. Responsive ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero:not(.hero--page) .hero__title { max-width: 20ch; white-space: normal; }
  .hero--product .hero__title { max-width: 20ch; white-space: normal; }
  .hero__deck--split { grid-template-columns: 1fr; row-gap: var(--s5); max-width: 560px; }
  .hero__deck--split p:last-child { padding-left: 0; padding-top: var(--s5); border-left: 0; border-top: 1px solid var(--line-strong); }
  .article-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .article-aside {
    position: static;
    padding-right: 0;
    padding-bottom: var(--s5);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .practice { grid-template-columns: 1fr; gap: var(--s5); }
  .report-feature { grid-template-columns: 1fr; gap: var(--s5); }
}

@media (max-width: 900px) {
  .site-header__inner { position: relative; }

  .nav {
    position: absolute;
    top: 72px;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-850);
    border-bottom: 1px solid var(--line);
    padding: var(--s3) var(--gutter) var(--s5);
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav__link {
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 16px;
  }

  .nav__link:hover { border-bottom-color: var(--line-soft); }

  .nav-toggle { display: block; order: 3; }

  .principles { grid-template-columns: 1fr; }

  .principle {
    padding: var(--s5) 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:not(:first-child) { padding-left: 0; }
  .principle:last-child { border-bottom: 0; }

  .products { grid-template-columns: 1fr; }

  .cta { grid-template-columns: 1fr; gap: var(--s5); }

  .profile { grid-template-columns: 1fr; gap: var(--s6); }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }

  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
  .step:not(:first-child) { padding-left: 0; }
  .step:last-child { border-bottom: 0; }

  .use { grid-template-columns: 1fr; gap: var(--s2); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  body { font-size: 16px; }

  .section { padding: var(--s8) 0; }

  .hero { padding: var(--s7) 0; }

  .section-head--split { grid-template-columns: 1fr; gap: var(--s4); }

  .form { grid-template-columns: 1fr; }

  .practice__subcaps { grid-template-columns: 1fr; }

  .figure { padding: var(--s5); }

  .report-item { grid-template-columns: 1fr; gap: var(--s2); }

  .informes-toolbar { align-items: stretch; }

  .search-field { min-width: 0; width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }

  .article-prose p,
  .article-prose li { font-size: 17.5px; }

  .product__facts div { grid-template-columns: 1fr; gap: 2px; }

  .hero__actions .btn { width: 100%; justify-content: center; }

  .cta .btn { width: 100%; justify-content: center; }
}

/* Por debajo de ~520px la marca, el CTA y el botón de menú no caben en una
   línea. El CTA sale: la acción ya está en el menú abierto y en la portada. */
@media (max-width: 520px) {
  .nav__cta { display: none; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__word { font-size: 18px; }
}
