/* ==========================================================================
   CandidatosBCS — hoja de estilos
   Diseño deliberadamente simple, responsive, sin frameworks.
   Mobile-first: base = móvil, luego se enriquece en pantallas grandes.
   ========================================================================== */

:root {
  --color-bg: #fafaf7;
  --color-surface: #ffffff;
  --color-ink: #15171a;
  --color-ink-soft: #4a4f57;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-line-strong: #cbd5e1;
  --color-accent: #1e40af;
  --color-accent-soft: #dbeafe;
  --color-warn: #b45309;
  --color-warn-soft: #fef3c7;
  --color-bad: #b91c1c;
  --color-bad-soft: #fee2e2;
  --color-ok: #15803d;
  --color-ok-soft: #dcfce7;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Charter", "Georgia", serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 20px; }
}

/* ---------- Banner de modo validación ---------- */
.validation-banner {
  background: #fef3c7;
  border-bottom: 1px solid #f59e0b;
  color: #78350f;
  padding: 10px 0;
  font-size: 13.5px;
}
.validation-banner .container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.validation-banner strong { color: #92400e; }
.validation-banner code {
  background: rgba(146, 64, 14, .12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

/* ---------- Banner de borrador (perfil en investigación) ---------- */
.borrador-banner {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-left: 5px solid #2563eb;
  color: #1e3a8a;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 14px;
}
.borrador-banner strong { color: #1d4ed8; display: block; margin-bottom: 4px; }
.borrador-banner p { margin: 0; color: #1e3a8a; line-height: 1.5; }

/* ---------- Banners de modo de carga (work / fixtures / bloqueo) ----------
   Usados por candidato.js, app.js y comparativa.js cuando el frontend
   carga data/work/ o data/fixtures/ por un parámetro URL. ---------- */
.banner {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid;
}
.banner strong { display: block; margin-bottom: 4px; }
.banner-revision {
  background: #fef3c7;
  border-color: #fcd34d;
  border-left: 5px solid #d97706;
  color: #78350f;
}
.banner-revision strong { color: #92400e; }
.banner-fixtures {
  background: #f3e8ff;
  border-color: #d8b4fe;
  border-left: 5px solid #7c3aed;
  color: #581c87;
}
.banner-fixtures strong { color: #6b21a8; }
.banner-bloqueo {
  background: #fee2e2;
  border-color: #fca5a5;
  border-left: 5px solid #dc2626;
  color: #7f1d1d;
}
.banner-bloqueo strong { color: #991b1b; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 700;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius);
  font-size: 11px;
  letter-spacing: .04em;
}
.brand-name { font-size: 16px; }

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--color-ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.site-nav a:hover { color: var(--color-ink); background: var(--color-bg); }
.site-nav a[aria-current="page"] {
  color: var(--color-ink);
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--color-line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(30, 64, 175, .08) 0%, rgba(30, 64, 175, 0) 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 999px;
  font-weight: 700;
}
.hero-title {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -.02em;
  color: var(--color-ink);
  font-weight: 800;
}
.hero-lead {
  font-size: 16.5px;
  color: var(--color-ink-soft);
  max-width: 68ch;
  margin: 0 0 6px;
  line-height: 1.5;
}
.hero-lead strong { color: var(--color-ink); font-weight: 600; }

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.hero-highlight {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.hero-highlight-icon {
  display: inline-block;
  font-size: 20px;
  margin-bottom: 4px;
}
.hero-highlight-title {
  font-size: 15px;
  margin: 0 0 4px;
  letter-spacing: -.005em;
}
.hero-highlight p {
  font-size: 13.5px;
  color: var(--color-ink-soft);
  margin: 0;
  line-height: 1.45;
}

@media (min-width: 720px) {
  .hero { padding: 56px 0 40px; }
  .hero-lead { font-size: 17px; }
  .hero-highlights { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Hero compacto (reducción para subir el grid) ---------- */
.hero-compact {
  padding: 24px 0 22px;
}
.hero-compact .hero-title {
  font-size: clamp(22px, 4.2vw, 32px);
  margin: 0 0 10px;
}
.hero-compact .hero-lead {
  font-size: 15px;
  margin: 0 0 6px;
  max-width: 70ch;
}
@media (min-width: 720px) {
  .hero-compact { padding: 28px 0 24px; }
  .hero-compact .hero-title { font-size: clamp(26px, 3.6vw, 34px); }
}

/* ---------- Secciones ---------- */
.section { padding: 28px 0; }
.section h2 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.section-lead {
  font-size: 14.5px;
  color: var(--color-ink-soft);
  margin: 0 0 16px;
  max-width: 70ch;
}

@media (min-width: 720px) {
  .section { padding: 40px 0; }
  .section h2 { font-size: 22px; }
}

/* ---------- Tarjetas de candidatos (mobile-first) ---------- */
.candidate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .candidate-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 960px) {
  .candidate-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.candidate-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
}
.candidate-card:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}
.candidate-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.cc-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}
.cc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-line);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--color-line);
}
.cc-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-ink);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.cc-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 4px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  color: var(--color-ink);
}
.cc-sub {
  font-size: 12.5px;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.cc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.cc-metric {
  background: #fbfdfa;
  border: 1px solid #dfe5de;
  border-radius: 7px;
  padding: 8px 11px;
  position: relative;
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cc-metric-senalamiento { border-left: 3.5px solid #776879; }
.cc-metric-proceso { border-left: 3.5px solid #866b65; }
.cc-metric-sancion { border-left: 3.5px solid #8b5757; }
.cc-metric-alerta { border-left: 3.5px solid #9b8262; }
.cc-metric-pregunta { border-left: 3.5px solid #4f6d7a; }
.cc-metric-fuente { border-left: 3.5px solid #52796f; }
.cc-metric .v {
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.15;
  color: #17242a;
  font-variant-numeric: tabular-nums;
}
.cc-metric .v.is-na {
  font-weight: 500;
  font-size: 0.85rem;
  color: #72828b;
}
.cc-metric .l {
  font-size: 0.72rem;
  color: #556770;
  margin-top: 2px;
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.cc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 16px;
  background: #233038;
  color: #ffffff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  letter-spacing: .01em;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.candidate-card:hover .cc-cta {
  background: #141c21;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
.candidate-card .cc-cta:hover {
  background: #0c1216;
  color: #ffffff !important;
}
.candidate-card:focus-visible .cc-cta,
.candidate-card .cc-cta:focus-visible {
  outline: 2px solid #233038;
  outline-offset: 2px;
}
.candidate-card:active .cc-cta {
  background: #080c0e;
  transform: translateY(1px);
}
.cc-cta::after {
  content: "→";
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease;
}
.candidate-card:hover .cc-cta::after {
  transform: translateX(4px);
}
.cc-foot {
  font-size: 11.5px;
  color: var(--color-muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------- Chips / Tags (mismas del esquema) ---------- */
.chip {
  display: inline-block;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-line);
  color: var(--color-ink-soft);
  border: 1px solid transparent;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .02em;
}
.chip.is-personaje      { background: #f1f5f9; color: #334155; }
.chip.is-aspirante      { background: #ecfeff; color: #155e75; }
.chip.is-precandidato   { background: var(--color-accent-soft); color: var(--color-accent); }
.chip.is-candidato      { background: #f5d0fe; color: #86198f; }
.chip.is-registrado     { background: #fde68a; color: #92400e; }
.chip.is-no-contendera  { background: #f3f4f6; color: #6b7280; text-decoration: line-through; }

.chip.is-hecho          { background: var(--color-ok-soft); color: var(--color-ok); }
.chip.is-senalamiento   { background: var(--color-warn-soft); color: var(--color-warn); }
.chip.is-investigacion  { background: #ede9fe; color: #5b21b6; }
.chip.is-proceso        { background: #fce7f3; color: #9d174d; }
.chip.is-resolucion     { background: #fee2e2; color: var(--color-bad); }
.chip.is-no-verificado  { background: #f3f4f6; color: #6b7280; }
.chip.is-borrador       { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.chip.is-preview        { background: #fef3c7; color: #92400e; border-color: #f59e0b; font-weight: 600; }

/* ---------- Empty state ---------- */
.empty {
  background: var(--color-surface);
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  color: var(--color-ink-soft);
}
.empty h3 { margin: 0 0 8px; font-size: 17px; color: var(--color-ink); }
.empty p { margin: 0; }

/* ---------- Alertas de gestión pública y Preguntas sin respuesta ---------- */
.alerta-card {
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-warn);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  background: #fffaf0;
}
.alerta-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--color-ink);
  line-height: 1.3;
}
.alerta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.alerta-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin: 0 0 10px;
}
.alerta-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 12px;
  margin: 0 0 10px;
  font-size: 13.5px;
}
.alerta-fields dt {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 6px;
}
.alerta-fields dd {
  margin: 0 0 0 0;
  color: var(--color-ink);
  line-height: 1.5;
}
@media (min-width: 720px) {
  .alerta-fields {
    grid-template-columns: 200px 1fr;
    gap: 4px 16px;
  }
  .alerta-fields dt {
    margin-top: 0;
  }
}
.pregunta-interes {
  background: #fef9e7;
  border-left: 3px solid var(--color-warn);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 14px;
  border-radius: 4px;
  color: var(--color-ink);
}
.alerta-notas {
  font-size: 12.5px;
  color: var(--color-muted);
  margin: 8px 0 0;
}
.alerta-count {
  font-size: 13.5px;
  color: var(--color-muted);
  margin: 0 0 14px;
  font-style: italic;
}

.preguntas-list {
  margin: 0;
  padding-left: 22px;
}
.preguntas-list li {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}
.pregunta-texto {
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 4px;
}
.pregunta-base {
  margin: 0 0 4px;
  color: var(--color-ink-soft);
  font-size: 13.5px;
}
.pregunta-estado {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-muted);
}

.reconstruccion-procesal {
  margin-top: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 13.5px;
}
.reconstruccion-procesal h5 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--color-ink);
}
.reconstruccion-procesal h6 {
  margin: 12px 0 4px;
  font-size: 13px;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.reconstruccion-procesal dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 12px;
  font-size: 13px;
}
@media (min-width: 720px) {
  .reconstruccion-procesal dl {
    grid-template-columns: 220px 1fr;
  }
}
.reconstruccion-procesal dt {
  color: var(--color-muted);
  font-weight: 600;
  margin-top: 4px;
}
.reconstruccion-procesal dd {
  margin: 0;
  color: var(--color-ink);
}
.reconstruccion-procesal ol,
.reconstruccion-procesal ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}
.reconstruccion-procesal li {
  margin-bottom: 4px;
}

/* ---------- Sección institucional ---------- */
.section-institutional {
  padding-bottom: 48px;
}
.institutional-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.institutional-card h2 {
  font-size: 19px;
  margin: 0 0 10px;
}
.institutional-card h3 {
  font-size: 15px;
  margin: 18px 0 6px;
  color: var(--color-ink);
}
.institutional-card p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: var(--color-ink-soft);
}
.institutional-card strong { color: var(--color-ink); }
.institutional-card a { color: var(--color-accent); }

@media (min-width: 720px) {
  .institutional-card { padding: 28px 32px; }
}

/* ---------- Marco editorial: atribución, interés público, bloqueo ---------- */
.atribucion {
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--color-accent);
  background: #f8fafc;
  border-radius: 4px;
  font-size: 13.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.atribucion strong { display: block; margin-bottom: 4px; color: var(--color-ink); }
.atribucion-nota {
  margin: 0 0 6px !important;
  font-size: 12.5px;
  font-style: italic;
  color: var(--color-muted);
}
.atribucion dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px 12px;
  min-width: 0;
}
@media (min-width: 720px) {
  .atribucion dl { grid-template-columns: 220px minmax(0, 1fr); }
}
.atribucion dt { color: var(--color-muted); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.atribucion dd { margin: 0; color: var(--color-ink); min-width: 0; overflow-wrap: anywhere; }

.interes-publico {
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 3px solid var(--color-ok);
  background: #f1faf4;
  border-radius: 4px;
  font-size: 13.5px;
}
.interes-publico strong { color: var(--color-ink); }

.bloqueo-publicacion {
  margin-top: 12px;
  padding: 12px 14px;
  border: 2px solid #b91c1c;
  background: #fef2f2;
  border-radius: 6px;
  font-size: 13.5px;
  color: #7f1d1d;
}
.bloqueo-publicacion strong { color: #7f1d1d; display: block; margin-bottom: 4px; }
.bloqueo-publicacion p { margin: 0; }
.bloqueo-publicacion code {
  background: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 12.5px;
}

.estado-juridico-justificacion {
  margin-top: 6px;
  padding: 6px 10px;
  background: #f8fafc;
  border-left: 2px solid var(--color-muted);
  font-size: 13px;
  color: var(--color-ink-soft);
}
.estado-juridico-justificacion strong { color: var(--color-ink); }

.senal-item { transition: border-color .15s ease; }
.senal-item:hover { border-color: var(--color-accent) !important; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  margin-top: 36px;
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--color-ink-soft);
}
.site-footer .muted { color: var(--color-muted); font-size: 12.5px; margin-top: 4px; }

/* ---------- Páginas de artículo (perfil, metodología) ---------- */
.prose {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.prose h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.01em; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; letter-spacing: -.005em; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--color-accent); }
.prose hr { border: 0; border-top: 1px solid var(--color-line); margin: 24px 0; }
.prose .lead {
  font-size: 16px;
  color: var(--color-ink-soft);
  margin: 0 0 20px;
}
.prose .muted { color: var(--color-muted); font-size: 13.5px; }

.toc {
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 16px 0 24px;
}
.toc h2 { font-size: 13px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); }
.toc ol { margin: 0; padding-left: 22px; }
.toc a { color: var(--color-ink-soft); text-decoration: none; }
.toc a:hover { color: var(--color-ink); text-decoration: underline; }

.certeza dt { font-weight: 700; margin-top: 12px; color: var(--color-ink); }
.certeza dd { margin: 4px 0 0 0; color: var(--color-ink-soft); }

@media (min-width: 720px) {
  .prose { padding: 32px 36px; }
  .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 22px; }
}

/* ---------- Perfil de candidato ---------- */
.profile-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 22px;
  margin: 24px 0 20px;
  position: relative;
  overflow: hidden;
}
.profile-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent) 0%, #3b82f6 100%);
}
.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-line);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--color-line);
}
.profile-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  background: var(--color-ink);
  font-weight: 700;
}
.profile-name {
  font-size: 26px;
  margin: 0 0 10px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--color-ink);
}
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.profile-summary { color: var(--color-ink-soft); margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; }
.profile-updated { font-size: 12.5px; color: var(--color-muted); margin-top: 8px; }

@media (min-width: 720px) {
  .profile-header { grid-template-columns: 140px 1fr; gap: 28px; padding: 28px; }
  .profile-photo, .profile-photo-fallback { width: 140px; height: 140px; }
  .profile-name { font-size: 32px; }
}

.section-block {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 22px;
  margin: 0 0 16px;
}
.section-block h2 {
  font-size: 18px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line);
  letter-spacing: -.005em;
  font-weight: 700;
}
.section-block h3 {
  font-size: 15px;
  margin: 16px 0 8px;
  color: var(--color-ink);
  font-weight: 600;
}

.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 0;
  font-size: 14px;
}
.kv dt { color: var(--color-muted); margin-top: 8px; }
.kv dd { margin: 0; color: var(--color-ink); }

@media (min-width: 720px) {
  .kv { grid-template-columns: 180px 1fr; gap: 4px 16px; }
  .kv dt { margin-top: 0; }
  .section-block { padding: 24px 28px; }
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--color-line);
}
.timeline li {
  position: relative;
  padding: 6px 0 12px 16px;
  font-size: 14px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-line-strong);
}
.timeline .fecha {
  display: inline-block;
  font-size: 11.5px;
  color: var(--color-muted);
  margin-right: 6px;
}

.fuente-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.fuente-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13.5px;
  background: #fcfcfb;
}
.fuente-item .fuente-titulo { font-weight: 600; }
.fuente-item .fuente-meta {
  color: var(--color-muted);
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fuente-item a { color: var(--color-accent); word-break: break-word; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.metric {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fcfcfb;
}
.metric .v { font-size: 18px; font-weight: 700; line-height: 1.1; }
.metric .l { font-size: 12px; color: var(--color-muted); margin-top: 3px; line-height: 1.25; }

@media (min-width: 720px) {
  .metric-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

.empty-block {
  color: var(--color-muted);
  font-size: 14px;
  font-style: italic;
}

/* ==========================================================================
   Portada pública (ETAPA 2.5) — secciones del rediseño de index.html
   ========================================================================== */

/* ---------- Header: tagline discreto ---------- */
.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-tagline {
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: .01em;
}

/* ---------- Sección con fondo alterno ---------- */
.section-alt {
  background: #f4f6fb;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

/* ---------- Estadísticas generales ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  opacity: .7;
}
.stat-card .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.stat-card .lbl {
  font-size: 11.5px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}
.stats-note {
  font-size: 12.5px;
  color: var(--color-muted);
  margin: 14px 0 0;
  max-width: 70ch;
  line-height: 1.55;
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stat-card .num { font-size: 34px; }
}

.chart-note {
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 14px 0 0;
  border-top: 1px solid var(--color-line);
  padding-top: 12px;
}
.panorama-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.panorama-table th,
.panorama-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-line);
}
.panorama-table thead th {
  background: #f8fafc;
  font-weight: 600;
}
.panorama-table tbody th {
  font-weight: 600;
}

/* ---------- Cómo leer esta página ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.guide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.guide-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: -.005em;
}
.guide-card p {
  font-size: 13.5px;
  color: var(--color-ink-soft);
  margin: 0;
  line-height: 1.5;
}
.guide-hecho        { border-left-color: var(--color-ok); }
.guide-senalamiento { border-left-color: var(--color-warn); }
.guide-alerta       { border-left-color: #d97706; }
.guide-pregunta     { border-left-color: var(--color-muted); }
@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .guide-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Tarjetas: resumen corto y chip ficticio ---------- */
.cc-summary {
  font-size: 13.5px;
  color: var(--color-ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-line);
}
.chip.is-ficticio { background: #f3f4f6; color: #4b5563; border-color: var(--color-line-strong); }

/* ---------- Tarjetas: barra de cobertura documental ---------- */
.cc-coverage {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: 10px;
}
.cc-coverage-pending {
  background: #fff7ed;
  border-color: #fed7aa;
}
.cc-coverage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.cc-coverage-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 600;
}
.cc-coverage-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.cc-coverage-track {
  position: relative;
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.cc-coverage-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 999px;
  transition: width .3s ease;
}
.cc-coverage-note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--color-muted);
}
.cc-coverage-na .cc-coverage-value { color: var(--color-muted); font-weight: 500; }
/* Aviso editorial: indica estado de revisión, NO completitud de
   investigación. Es_evaluable_indice mide capacidad de cálculo del IID,
   no se usa para inferir completitud. */
.cc-coverage-incomplete {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-left: 3px solid #b45309;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #7c2d12;
}
.cc-coverage-incomplete strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #b45309;
  margin-bottom: 3px;
}

/* ---------- Tarjetas: hallazgos documentales (5 métricas con acento semántico) ---------- */
.cc-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-bottom: 14px;
}
.cc-metric {
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.cc-metric::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-accent);
}
.cc-metric-senalamiento::before { background: #7c3aed; }
.cc-metric-proceso::before       { background: #475569; }
.cc-metric-sancion::before       { background: #dc2626; }
.cc-metric-alerta::before        { background: #d97706; }
.cc-metric-pregunta::before      { background: #0891b2; }
.cc-metric-fuente::before        { background: #059669; }

.cc-metric .v {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.cc-metric .v.is-na {
  font-weight: 500;
  font-size: 16px;
  color: var(--color-muted);
}
.cc-metric .l {
  font-size: 11px;
  color: var(--color-muted);
  text-align: left;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

@media (min-width: 520px) {
  .cc-metrics { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Dossier Dashboard (Cabecera visual del perfil) ---------- */
.dossier-dashboard {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 0 0 20px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) {
  .dossier-dashboard {
    padding: 28px;
  }
}
.dossier-dashboard .profile-header {
  border-bottom: 1px solid var(--color-line);
  padding: 0 0 20px 0;
  margin: 0 0 20px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.dashboard-coverage-card {
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.dashboard-section-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
}
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 980px) {
  .dashboard-metrics-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.dash-metric {
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.dash-metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.dash-metric-senalamiento::before { background: #7c3aed; }
.dash-metric-proceso::before       { background: #475569; }
.dash-metric-sancion::before       { background: #dc2626; }
.dash-metric-alerta::before        { background: #d97706; }
.dash-metric-pregunta::before      { background: #0891b2; }
.dash-metric-fuente::before        { background: #059669; }

.dash-metric .dash-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.dash-metric .dash-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: 2px;
}
.dash-metric .dash-sub {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.3;
}
.dash-disclaimer {
  padding: 10px 14px;
  background: #fefce8;
  border: 1px solid #fef08a;
  border-left: 3px solid #ca8a04;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #854d0e;
}

/* ---------- Panorama grid y cards ---------- */
.panorama-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 860px) {
  .panorama-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.panorama-chart-card {
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.panorama-card-head {
  margin-bottom: 4px;
}
.panorama-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
}
.panorama-chart-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0 0;
  color: var(--color-ink);
}
.panorama-card-desc {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0 0 10px;
  line-height: 1.35;
}
.panorama-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 280px;
  flex-grow: 1;
}
@media (min-width: 720px) {
  .panorama-chart-wrap { height: 320px; }
}

/* ---------- Leyenda de indicadores debajo del grid ---------- */
.legend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.legend-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-line-strong);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.legend-card h3 {
  font-size: 14px;
  margin: 0 0 4px;
  letter-spacing: -.005em;
  color: var(--color-ink);
}
.legend-card p {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin: 0;
  line-height: 1.45;
}
.legend-warning {
  margin: 18px 0 0;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-left: 4px solid #b45309;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
  color: #78350f;
  max-width: 70ch;
}
.legend-warning strong {
  color: #92400e;
}
@media (min-width: 640px) {
  .legend-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 960px) {
  .legend-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Sección de candidatos: menos padding superior ---------- */
.section-candidatos {
  padding-top: 28px;
  padding-bottom: 20px;
}
@media (min-width: 720px) {
  .section-candidatos { padding-top: 36px; padding-bottom: 32px; }
}

/* ---------- Correcciones y derecho de réplica ---------- */
.corrections-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.corrections-card h2 {
  font-size: 19px;
  margin: 0 0 10px;
}
.corrections-card p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 8px;
  color: var(--color-ink-soft);
}
.corrections-card .corrections-note {
  font-size: 13px;
  color: var(--color-muted);
}
.corrections-card a { color: var(--color-accent); }
@media (min-width: 720px) {
  .corrections-card { padding: 24px 32px; }
}

/* ---------- Footer de la portada ---------- */
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-brand p { margin: 6px 0 0; max-width: 52ch; }
.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
}
.footer-nav a {
  color: var(--color-ink-soft);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--color-ink);
  text-decoration: underline;
}
.footer-pending {
  color: var(--color-muted);
}
.footer-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--color-line);
}

/* WEB-DESIGN-2: neutral editorial system, shared across public routes. */
:root {
  --color-bg: #f7f6f2;
  --color-surface: #fff;
  --color-ink: #24292d;
  --color-ink-soft: #4f585e;
  --color-muted: #606a70;
  --color-line: #dddfdb;
  --color-accent: #354b58;
  --color-accent-soft: #e9eef0;
  --max-width: 1200px;
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { font-size: 1rem; line-height: 1.65; }
a { color: var(--color-accent); }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #354b58; outline-offset: 5px;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: #fff; }
.skip-link:focus { top: 12px; }
.public-notice { background: #eaece7; color: #4f585e; font-size: .8125rem; }
.public-notice .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.site-header { background: #f7f6f2; }
.site-header .container { min-height: 80px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; font-size: 12px; letter-spacing: .06em; background: #303b42; }
.brand-name { letter-spacing: -.04em; font-size: 1.35rem; }
.site-tagline { font-size: .8125rem; }
.site-nav { gap: 8px; }
.site-nav a { font-size: .875rem; padding: 10px 14px; min-height: 44px; border-radius: 6px; }
.site-nav a[aria-current="page"] { background: #e6e9e5; color: #24292d; border-color: transparent; box-shadow: none; }
.hero, .hero.hero-compact { background: none; padding: 48px 0 34px; border: 0; }
.hero-title, .hero h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); max-width: 1000px; line-height: 1.13; letter-spacing: -.045em; font-weight: 650; margin: 14px 0 18px; }
.hero-title span { color: #5b686e; }
.hero-eyebrow, .eyebrow { padding: 0; border: 0; border-radius: 0; background: none; color: #556268; font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 650; margin: 0 0 10px; }
.hero-lead { max-width: 650px; font-size: 1.0625rem; color: var(--color-ink-soft); margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 48px; padding: 12px 20px; border-radius: 7px; background: #303d45; color: #fff; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.button:hover { background: #1e2d36; color: #fff; }
.text-link { display: inline-block; font-size: .9375rem; font-weight: 600; text-underline-offset: 5px; padding: 10px 0; }
.section { padding: 42px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
.section-heading h2 { margin: 0; }
.count-label { font-size: .875rem; white-space: nowrap; border: 1px solid #d4d9d5; border-radius: 20px; padding: 5px 14px; }
.section-candidatos { padding-top: 28px; }
.section-candidatos .section-lead { max-width: 720px; margin: 14px 0 26px; font-size: .9375rem; }
.candidate-grid { gap: 20px; }
.candidate-card { padding: 22px; border-radius: 12px; box-shadow: none; border-color: #d7ddd9; overflow: hidden; }
.candidate-card:hover { border-color: #7a8a90; box-shadow: 0 12px 30px #2330370d; transform: translateY(-3px); }
.cc-head { display: block; margin: 0; }
.cc-avatar { width: 100%; height: 142px; border-radius: 7px; border: 0; box-shadow: none; margin-bottom: 21px; }
.cc-avatar-fallback { background: #e9edeb; color: #394b52; font-family: var(--font-serif); font-weight: 400; font-size: 4.15rem; letter-spacing: -.065em; }
.cc-name { font-size: 1.65rem; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 16px; overflow-wrap: normal; }
.cc-chips { gap: 7px; margin-bottom: 14px; }
.cc-chips .chip, .profile-meta .chip { background: #f0f2ee; border-color: #dce1da; color: #4b575b; font-size: .75rem; font-weight: 550; letter-spacing: .015em; }
.cc-chips .is-borrador { background: transparent; border: 0; padding-left: 0; color: #65716f; }
.cc-summary { font-size: .875rem; color: #626d70; margin: 0 0 22px; line-height: 1.6; }
.cc-sub { font-size: .875rem; margin: 0 0 12px; }
.cc-cta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: auto; border-top: 1px solid #e3e7e1; color: #303e45; font-size: .9375rem; font-weight: 650; }
.cc-cta::after { content: '↗'; font-size: 1.35rem; }
.cc-coverage-fill { background: #71848a; }
.cc-coverage-na .cc-coverage-track { display: none; }
.iid-highlight { display: flex; flex-direction: column; padding: 18px; margin: 0 0 18px; background: #edf0ed; border-radius: 8px; font-size: .8125rem; }
.iid-highlight strong, .iid-value { font-size: 3rem; line-height: 1.25; font-weight: 650; margin: 0; }
.iid-highlight small, .iid-value small { font-size: 1.25rem; font-weight: 400; margin-left: 5px; }
.process-section { border-block: 1px solid var(--color-line); background: #eeefe9; margin-top: 20px; padding: 48px 0; }
.process-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 30px 0 16px; }
.process-grid li { border-top: 1px solid #c6cdc6; padding-top: 16px; }
.process-grid li > span { color: #63716e; font-size: .8125rem; }
.process-grid h3 { font-size: 1.125rem; margin: 10px 0 6px; }
.process-grid p { font-size: .9375rem; color: #58635f; margin: 0; }
.institutional-card, .corrections-card { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; max-width: 850px; }
#sobre { padding-bottom: 10px; }
.site-footer { border-top: 1px solid var(--color-line); background: #eaece7; padding: 32px 0; }
.footer-grid { gap: 24px; }
.footer-nav a { padding: 10px 0; }
#perfil { padding-top: 25px; padding-bottom: 50px; }
.back-link { display: inline-block; font-size: .875rem; padding: 10px 0; margin-bottom: 16px; }
.profile-header { align-items: center; gap: 32px; padding: 32px 0; }
.profile-photo { width: 160px; height: 160px; border-radius: 14px; box-shadow: none; border: 0; }
.profile-photo-fallback { display: flex; align-items: center; justify-content: center; background: #e5eae6; color: #394b52; font-family: var(--font-serif); font-size: 4.5rem; font-weight: 400; letter-spacing: -.06em; }
.profile-name { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 18px; }
.profile-summary { font-size: .9375rem; }
.review-note { background: #ecefe9; border-left: 3px solid #84958a; padding: 24px 28px; margin: 22px 0 28px; border-radius: 0 10px 10px 0; }
.review-note h2 { font-size: 1.35rem; margin: 0 0 8px; }
.review-note p { margin: 0; max-width: 750px; }
.section-block { border-radius: 10px; padding: 28px; box-shadow: none; min-width: 0; }
.profile-data { display: grid; grid-template-columns: minmax(150px, 250px) minmax(0, 1fr); gap: 18px 30px; margin-top: 28px; }
.profile-data dt { font-size: .875rem; color: #5c686b; }
.profile-data dd { margin: 0; }
.profile-data dd, .section-block p, .prose, .atribucion dd, .alerta-fields dd, .alerta-desc, .alerta-card { overflow-wrap: anywhere; min-width: 0; }
.profile-index { margin: 24px 0; padding: 16px 22px; border: 1px solid var(--color-line); border-radius: 8px; }
summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 600; }
.profile-index nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.profile-index a { padding: 8px 0; font-size: .875rem; }
.dossier-dashboard { box-shadow: none; background: #fff; border-color: var(--color-line); }
.dashboard-coverage-card { background: #eef1ed; border-color: #d4dbd4; }
.dash-metric, .cc-metric { background: #f5f6f3; border-color: #dbe0d9; }
.dash-num, .cc-metric .v { color: #37454b; }
#tablaComparativa.empty { max-width: 850px; margin: 0 auto 30px; background: #fff; border: 1px solid #d7ddd9; border-radius: 14px; padding: 45px; }
#tablaComparativa.empty h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
#tablaComparativa.empty p { max-width: 580px; margin-left: auto; margin-right: auto; }
#tablaComparativa.empty .button { margin: 18px 12px 8px; }
#tablaComparativa.empty .text-link { display: block; }
.empty-symbol { font-size: 3rem; color: #52666d; line-height: 1.2; margin-bottom: 24px; }
.comparison-scroll { overflow: auto; max-height: 75vh; padding: 0; }
.comparison-scroll thead th { position: sticky; top: 0; z-index: 2; min-width: 190px; }
.comparison-scroll tbody th { position: sticky; left: 0; max-width: 200px; z-index: 1; }
.comparison-scroll thead th:first-child { left: 0; z-index: 3; }
.methodology-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 50px; align-items: start; padding-top: 40px; }
.methodology-index { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.methodology-index summary { font-size: .875rem; }
.methodology-index .toc { background: none; padding: 0 8px 0 0; margin: 0; border: 0; }
.toc h2 { display: none; }
.toc ol { padding-left: 20px; }
.toc li { padding: 4px 0; font-size: .875rem; line-height: 1.45; }
.toc a { display: block; padding: 4px 0; }
.prose { max-width: 74ch; padding-top: 0; font-size: 1rem; }
.prose h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -.045em; margin-top: 0; }
.prose h2 { font-size: 1.65rem; line-height: 1.25; padding-top: 25px; margin-top: 35px; border-top: 1px solid var(--color-line); }
.prose h3 { font-size: 1.2rem; }
.prose pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.prose .lead { font-size: 1.0625rem; }
@media (max-width: 959px) {
  .methodology-layout { grid-template-columns: 1fr; gap: 26px; }
  .methodology-index { position: static; max-height: 280px; border-bottom: 1px solid var(--color-line); }
  .methodology-index .toc ol { columns: 2; column-gap: 30px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 639px) {
  .public-notice { font-size: .75rem; }
  .public-notice span { display: none; }
  .site-header .container { gap: 4px; padding-block: 12px 8px; }
  .brand-name { font-size: 1.25rem; }
  .brand-block { width: 100%; }
  .site-tagline { display: none; }
  .site-nav { width: 100%; justify-content: flex-start; gap: 6px; }
  .site-nav a { padding: 8px 12px; }
  .hero, .hero.hero-compact { padding: 30px 0 24px; }
  .hero-title, .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { gap: 8px 18px; margin-top: 18px; }
  .button { font-size: .875rem; gap: 16px; padding: 11px 16px; }
  .text-link { font-size: .875rem; }
  .section { padding-block: 30px; }
  .section-candidatos { padding-top: 18px; }
  .section-heading { align-items: center; gap: 10px; }
  .section-heading h2 { font-size: 1.6rem; }
  .count-label { padding: 4px 10px; font-size: .75rem; }
  .candidate-card { padding: 20px; }
  .cc-avatar { height: 132px; margin-bottom: 20px; }
  .cc-name { font-size: 1.7rem; }
  .process-grid { gap: 22px; }
  .profile-header { flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 8px; }
  .profile-photo { width: 116px; height: 116px; font-size: 3.5rem; }
  .profile-name { font-size: 2.3rem; }
  .section-block { padding: 20px; }
  .review-note { padding: 20px; }
  .profile-data { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .profile-data dd { margin-bottom: 16px; }
  #tablaComparativa.empty { padding: 26px 20px; }
  .methodology-layout { padding-top: 25px; }
  .methodology-index .toc ol { columns: 1; }
  .prose h1 { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .candidate-card:hover { transform: none; }
}
/* ==========================================================================
   HERO PERIODÍSTICO & VISUAL ENGAGEMENT PASS (ETAPA WEB-DESIGN-3)
   ========================================================================== */
.hero.hero-journalistic {
  background: linear-gradient(180deg, #fdfefe 0%, #f5f8f4 100%);
  border-bottom: 1px solid #dce3dc;
  padding: 42px 0 36px;
}
.hero-journalistic .hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4a5c64;
  margin-bottom: 12px;
}
.hero-journalistic .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: #162127;
  max-width: 980px;
  margin: 0 0 16px;
}
.hero-journalistic .hero-title span {
  color: #556872;
  font-weight: 400;
}
.hero-journalistic .hero-lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: #3b4952;
  max-width: 740px;
  margin: 0 0 22px;
}

/* Tira de estadísticas del Hero */
.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 26px;
  max-width: 920px;
}
.hero-stat-item {
  background: #ffffff;
  border: 1px solid #dce2db;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.hero-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #c2ccc0;
}
.hero-stat-num {
  display: block;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: #17242a;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.hero-stat-lbl {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #5a6b73;
  line-height: 1.25;
}

/* Botones de acción del Hero */
.hero-journalistic .hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #233038;
  color: #ffffff !important;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.button-primary:hover {
  background: #141c21;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}
.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #233038 !important;
  border: 1px solid #d0d8ce;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.button-secondary:hover {
  background: #f7f9f6;
  border-color: #233038;
  transform: translateY(-1px);
}

/* Showcase de Protagonistas */
.hero-showcase {
  background: #edf2ec;
  border: 1px solid #d2ded0;
  border-radius: 12px;
  padding: 18px 20px 22px;
  margin-top: 8px;
}
.hero-showcase-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.hero-showcase-label {
  font-size: 0.8125rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #35474f;
}
.hero-showcase-note {
  font-size: 0.8125rem;
  color: #64757e;
}
.hero-protagonists {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.hero-proto-card {
  background: #ffffff;
  border: 1px solid #d8e0d6;
  border-radius: 10px;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.hero-proto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: #233038;
}
.hero-proto-avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-proto-avatar .cc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.hero-proto-avatar .cc-avatar-fallback {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #e2e8e2;
  color: #28373e;
  font-size: 1.4rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  border: 1px solid #cfd8ce;
}
.hero-proto-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}
.hero-proto-cond {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 750;
  color: #556770;
  margin-bottom: 3px;
}
.hero-proto-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #17242a;
  line-height: 1.25;
  margin-bottom: 3px;
}
.hero-proto-partido {
  font-size: 0.72rem;
  color: #697a82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hero-proto-cta {
  font-size: 0.6875rem;
  font-weight: 650;
  color: #233038;
  background: #eef2ec;
  padding: 4px 8px;
  border-radius: 5px;
  margin-top: auto;
  border: 1px solid #d4ded3;
  transition: background 0.15s ease, color 0.15s ease;
}
.hero-proto-card:hover .hero-proto-cta {
  background: #233038;
  color: #ffffff;
  border-color: #233038;
}

/* Responsiveness for Hero */
@media (max-width: 1024px) {
  .hero-protagonists {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .hero.hero-journalistic {
    padding: 20px 0 16px;
  }
  .hero-journalistic .hero-title {
    font-size: 1.65rem;
    margin: 6px 0 10px;
  }
  .hero-journalistic .hero-lead {
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }
  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0 16px;
  }
  .hero-stat-item {
    padding: 10px 12px;
  }
  .hero-stat-num {
    font-size: 1.55rem;
  }
  .hero-stat-lbl {
    font-size: 0.6875rem;
  }
  .hero-journalistic .hero-actions {
    gap: 8px;
    margin-bottom: 16px;
  }
  .hero-showcase {
    padding: 12px 10px 14px;
    border-radius: 10px;
  }
  .hero-protagonists {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hero-proto-card {
    padding: 8px 6px;
  }
  .hero-proto-avatar, .hero-proto-avatar .cc-avatar, .hero-proto-avatar .cc-avatar-fallback {
    width: 48px;
    height: 48px;
  }
  .hero-proto-name {
    font-size: 0.8125rem;
  }
  .hero-actions { gap: 14px; }
  .hero-actions .text-link { white-space: nowrap; }
  .section-candidatos .section-lead { margin: 10px 0 18px; }
  .section-heading h2 { font-size: 1.5rem; }
  .candidate-card .cc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
  .candidate-card .cc-avatar { width: 86px; height: 94px; margin: 0; font-size: 2.8rem; }
  .candidate-card .cc-name { font-size: 1.6rem; margin: 0; }
  .candidate-card .cc-chips { margin-bottom: 18px; }
}
.hero::before, .profile-header::before { display: none; }
.profile-header { display: flex; padding: 28px; }
.profile-header > div:last-child { min-width: 0; }
.profile-photo { flex-shrink: 0; }
.comparison-picker { border: 1px solid var(--color-line); border-radius: 10px; padding: 18px 22px; margin: 0 0 24px; }
.comparison-picker legend { padding: 0 8px; font-weight: 600; }
.comparison-options { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.comparison-options label { display: flex; align-items: center; min-height: 44px; gap: 10px; font-size: .9375rem; }
.comparison-options input { width: 18px; height: 18px; accent-color: #354b58; }
.comparison-avatar { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 8px; background: #e5eae6; color: #394b52; font-family: var(--font-serif); font-size: 1.7rem; margin-bottom: 12px; }
@media (max-width: 639px) { .profile-header { padding: 22px; } }
/* Evidence categories stay distinct without alarm styling. */
.cc-metric-senalamiento::before, .dash-metric-senalamiento::before { background: #776879; }
.cc-metric-sancion::before, .dash-metric-sancion::before { background: #866b65; }
.cc-metric-alerta::before, .dash-metric-alerta::before { background: #9b8262; }
.cc-metric-pregunta::before, .dash-metric-pregunta::before { background: #647f8b; }
.cc-metric-fuente::before, .dash-metric-fuente::before { background: #718576; }
.chip.is-proceso, .chip.is-resolucion { background: #eee9e5; color: #624f49; }
.chip.is-investigacion { background: #ece8ee; color: #61536a; }
.cc-metric .l, .dash-metric .dash-lbl { font-size: .8125rem; text-transform: none; letter-spacing: 0; }
.cc-coverage-note, .dash-metric .dash-sub { font-size: .8125rem; line-height: 1.45; }

/* ==========================================================================
   EDITORIAL IMPACT BANNER (ETAPA WEB-DESIGN-4)
   Estética de investigación periodística, contraste cinematográfico,
   collage documental, acentos rojos de atención y tipografía contundente.
   ========================================================================== */

.editorial-impact-banner {
  background-color: #12181b;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(38, 50, 56, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(26, 35, 39, 0.8) 0%, transparent 70%),
    linear-gradient(180deg, #101518 0%, #171f24 100%);
  border-bottom: 3px solid #b71c1c;
  color: #f0f4f8;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -10px 25px rgba(0, 0, 0, 0.45);
}

.eib-texture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.6;
}

.eib-container {
  display: grid;
  grid-template-columns: 1.18fr 1.02fr 0.8fr;
  gap: 22px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
}

/* Columna Izquierda: Titulares y CTA */
.eib-col-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eib-kicker-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.eib-badge-tape {
  background: #c62828;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  border-radius: 2px;
  display: inline-block;
}

.eib-kicker-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9cb0ba;
  text-transform: uppercase;
}

.eib-title {
  margin: 0 0 10px;
  line-height: 1.08;
  font-family: var(--font-serif);
}

.eib-title-lead {
  display: block;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 600;
  color: #cfdbe0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eib-title-banner {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 900;
  color: #ffffff;
  background: #b71c1c;
  padding: 5px 14px;
  margin: 5px 0;
  transform: rotate(-1.2deg);
  box-shadow: 0 4px 14px rgba(183, 28, 28, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  border-radius: 2px;
}

.eib-title-sub {
  display: block;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.eib-description {
  color: #a5b6bf;
  font-size: 0.9375rem;
  line-height: 1.45;
  max-width: 440px;
  margin: 0 0 18px;
}

.eib-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.eib-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #12181b !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 750;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.eib-btn-primary:hover {
  background: #f2f6f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.eib-arrow {
  font-size: 1.05rem;
  transition: transform 0.15s ease;
}

.eib-btn-primary:hover .eib-arrow {
  transform: translateY(2px);
}

.eib-link-ghost {
  color: #c4d4dd;
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px dashed rgba(196, 212, 221, 0.5);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.eib-link-ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* Columna Central: Collage de Protagonistas */
.eib-col-collage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eib-portraits-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  height: 235px;
  width: 100%;
}

.eib-card-person {
  position: relative;
  transition: transform 0.25s ease, z-index 0.25s ease;
}

.eib-photo-frame {
  overflow: hidden;
  border: 3.5px solid #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  background: #1e262c;
  position: relative;
}

.eib-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(125%) brightness(95%);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.eib-card-person:hover .eib-photo {
  filter: grayscale(25%) contrast(110%);
  transform: scale(1.03);
}

/* Overlap y orientaciones del collage */
.eib-person-1 {
  z-index: 2;
  transform: rotate(-3deg);
  margin-right: -18px;
}
.eib-person-1 .eib-photo-frame {
  width: 126px;
  height: 164px;
}

.eib-person-2 {
  z-index: 3;
  transform: rotate(1deg) translateY(-14px);
}
.eib-person-2 .eib-photo-frame {
  width: 142px;
  height: 184px;
}

.eib-person-3 {
  z-index: 1;
  transform: rotate(3.5deg);
  margin-left: -18px;
}
.eib-person-3 .eib-photo-frame {
  width: 126px;
  height: 164px;
}

.eib-card-person:hover {
  z-index: 5;
  transform: scale(1.05) translateY(-4px);
}

/* Cintas adhesivas con preguntas desfasadas para evitar choques */
.eib-tag-tape {
  position: absolute;
  width: max-content;
  font-size: 0.625rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.18;
  text-align: center;
  padding: 4px 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  z-index: 6;
}

.eib-person-1 .eib-tag-tape {
  bottom: 14px;
  left: -12px;
  transform: rotate(-5deg);
}

.eib-person-2 .eib-tag-tape {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  z-index: 7;
}

.eib-person-3 .eib-tag-tape {
  bottom: 14px;
  right: -12px;
  left: auto;
  transform: rotate(4deg);
}

.eib-tag-red {
  background: #b71c1c;
  color: #ffffff;
}

.eib-tag-paper {
  background: #fbf9f2;
  color: #1a242a;
  border: 1px solid #ddd5c5;
}

.eib-tag-dark {
  background: #253138;
  color: #eef4f8;
  border: 1px solid #435560;
}

.eib-collage-caption {
  font-size: 0.72rem;
  color: #82949f;
  text-align: center;
  margin: 6px 0 0;
  letter-spacing: 0.02em;
}

/* Columna Derecha: Identidad BCS, Ficha y Sello */
.eib-col-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.eib-territory-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
}

.eib-territory-svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.eib-territory-text {
  display: flex;
  flex-direction: column;
}

.eib-territory-state {
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eib-territory-tag {
  color: #ef5350;
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.eib-dossier-card {
  background: #fdfcf7;
  color: #1a252c;
  border-radius: 6px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  border: 1px solid #dfd8cb;
  transform: rotate(1deg);
  width: 100%;
}

.eib-dossier-header {
  display: block;
  font-size: 0.6875rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  color: #53626b;
  margin-bottom: 6px;
}

.eib-dossier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1a252c;
  line-height: 1.55;
}

.eib-bullet {
  color: #b71c1c;
  font-weight: 900;
  margin-right: 4px;
}

.eib-stamp {
  display: inline-block;
  border: 2.5px dashed #e53935;
  outline: 1.5px solid rgba(229, 57, 53, 0.4);
  outline-offset: 3px;
  color: #ef5350;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-5deg);
  text-align: center;
  border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.12);
  background: rgba(229, 57, 53, 0.08);
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS FOR EDITORIAL IMPACT BANNER
   ========================================================================== */

@media (max-width: 1024px) {
  .eib-container {
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 24px;
  }
  .eib-col-identity {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .eib-territory-badge, .eib-dossier-card {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .eib-container {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 24px;
    padding-bottom: 20px;
  }
  .eib-col-lead {
    text-align: center;
    align-items: center;
  }
  .eib-description {
    margin-left: auto;
    margin-right: auto;
  }
  .eib-actions {
    justify-content: center;
  }
  .eib-col-identity {
    flex-wrap: wrap;
    justify-content: center;
  }
  .eib-territory-badge, .eib-dossier-card {
    flex: 1 1 240px;
  }
}

@media (max-width: 480px) {
  .editorial-impact-banner {
    border-bottom: 2px solid #b71c1c;
  }
  .eib-container {
    padding-top: 20px;
    padding-bottom: 18px;
    gap: 16px;
  }
  .eib-badge-tape {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  .eib-kicker-sub {
    font-size: 0.6875rem;
  }
  .eib-title-lead {
    font-size: 1rem;
  }
  .eib-title-banner {
    font-size: 1.45rem;
    padding: 3px 8px;
    margin: 4px 0;
  }
  .eib-title-sub {
    font-size: 1.15rem;
  }
  .eib-description {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 16px;
  }
  .eib-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .eib-btn-primary {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.875rem;
  }
  .eib-link-ghost {
    margin-left: 0;
    font-size: 0.8125rem;
  }
  .eib-portraits-stage {
    height: 190px;
  }
  .eib-person-1 .eib-photo-frame, .eib-person-3 .eib-photo-frame {
    width: 96px;
    height: 125px;
  }
  .eib-person-2 .eib-photo-frame {
    width: 110px;
    height: 145px;
  }
  .eib-tag-tape {
    font-size: 0.55rem;
    padding: 3px 5px;
  }
  .eib-person-1 .eib-tag-tape {
    bottom: 18px;
    left: -8px;
  }
  .eib-person-2 .eib-tag-tape {
    bottom: -6px;
  }
  .eib-person-3 .eib-tag-tape {
    bottom: 18px;
    right: -8px;
  }
  .eib-collage-caption {
    font-size: 0.6875rem;
  }
  .eib-col-identity {
    gap: 10px;
  }
  .eib-territory-badge {
    padding: 6px 10px;
  }
  .eib-dossier-card {
    padding: 10px 12px;
  }
  .eib-stamp {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}
