﻿:root {
  --ink: #27313C;
  --muted: #64748B;
  --line: #E9ECEF;
  --paper: #F7F7F7;
  --panel: #FFFFFF;
  --primary: #3B82F6;
  --blue: #1F4E79;
  --blue-2: #00A3E0;
  --gold: #84A400;
  --green: #84A400;
  --green-soft: #E9ECEF;
  --yellow: #00A3E0;
  --yellow-soft: #E9ECEF;
  --red: #1F4E79;
  --red-soft: #E9ECEF;
  --shadow: 0 18px 42px rgba(28, 28, 28, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 8%, rgba(59, 130, 246, .16), transparent 28%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper) 42%, #FFFFFF 100%);
}

/* Documentos para socios */
.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.document-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 26px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(31, 78, 121, .08);
}

.document-card h2 { margin: 6px 0 10px; color: var(--blue); }
.document-card p { color: var(--muted); line-height: 1.6; }

.document-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 96px;
  border-radius: 12px;
  background: #EAF3D0;
  color: #4D6500;
  font-weight: 900;
  letter-spacing: .06em;
}

.document-icon.pdf { background: #FEE2E2; color: #991B1B; }

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.document-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 9px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.document-button.primary { background: var(--blue); color: #FFFFFF; }

@media (max-width: 1100px) {
  .document-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .document-card { grid-template-columns: 1fr; }
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  padding: 16px;
  color: var(--ink);
  background: #F5F9FF;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border: 0;
}

.brand span, .source-card span, .source-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nav {
  display: grid;
  gap: 3px;
}

.nav button {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  min-height: 38px;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  border-left: 3px solid transparent;
  border-radius: 0 7px 7px 0;
}

.nav button:hover {
  color: var(--ink);
  background: #EAF4FF;
  border-left-color: #00A3E0;
}

.nav button.active {
  color: #FFFFFF;
  background: #3B82F6;
  border-left-color: #00A3E0;
}

.source-card {
  margin-top: auto;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(31, 78, 121, .08);
}

main {
  margin-left: 260px;
  padding: 32px;
}

.page { display: none !important; }
.page.active { display: block !important; animation: fade .35s ease both; }
.page.active.executive-summary { display: grid !important; }
.internal-only { display: none !important; }

@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  min-height: 320px;
  padding: 42px;
  color: #FFFFFF;
  background:
    linear-gradient(90deg, rgba(19,43,77,.96), rgba(23,54,93,.76)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 18px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.hero h1, .section-title h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-logo {
  width: 118px;
  max-width: 42vw;
  height: auto;
  background: transparent;
  padding: 0;
  margin-bottom: 22px;
  border-radius: 0;
  box-shadow: none;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-status {
  padding: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
}

.income-hero {
  min-height: auto;
  margin: 0 0 16px;
  padding: 28px 32px 24px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,247,250,.96)),
    linear-gradient(90deg, rgba(59,130,246,.12), rgba(132,164,0,.08));
  box-shadow: 0 24px 70px rgba(31, 78, 121, .12);
  overflow: hidden;
  animation: fade .45s ease both;
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 26px;
  border: 1px solid var(--line);
  position: relative;
}

.income-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--primary), var(--blue), var(--green));
}

.income-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 18px;
  align-items: start;
  margin-bottom: 0;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.income-hero-head h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: .96;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--blue);
}

.hero-highlight {
  background: linear-gradient(180deg, #FFFFFF, #F5F7FA);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 14px 32px rgba(31, 78, 121, .10);
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  border-top: 6px solid var(--green);
  min-height: 0;
  align-self: start;
}

.hero-highlight span,
.hero-highlight small {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-highlight small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

#incomeGrowthBadge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: var(--green);
  background: transparent;
  font-size: clamp(38px, 4.2vw, 52px);
  border-radius: 0;
  box-shadow: none;
  line-height: .95;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(420px, 1.3fr);
  gap: 14px;
  align-items: start;
}

.income-hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}

.income-hero-cards article {
  padding: 15px 20px;
  background: #FFFFFF;
  color: #1C1C1C;
  border: 1px solid rgba(233,236,239,.78);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(31, 78, 121, .10);
  animation: rise .55s ease both;
  min-height: unset;
  display: grid;
  align-content: center;
}

.income-hero-cards article:nth-child(1) { border-top: 5px solid var(--blue); }
.income-hero-cards article:nth-child(2) { animation-delay: .08s; }
.income-hero-cards article:nth-child(2) { border-top: 5px solid var(--primary); }
.income-hero-cards article:nth-child(3) { animation-delay: .16s; border-top: 5px solid var(--green); }

.income-hero-cards span {
  display: block;
  margin-bottom: 6px;
  color: #1F4E79;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
}

.income-hero-cards strong {
  display: block;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1;
  color: #1C1C1C;
}

.growth-card {
  background: #FFFFFF !important;
  color: var(--ink) !important;
}

.growth-card span,
.growth-card strong {
  color: var(--green) !important;
}

.income-message {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.5;
  background: linear-gradient(90deg, rgba(245,249,255,.96), rgba(255,255,255,.96));
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(31, 78, 121, .07);
}

.income-hero-chart {
  min-height: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px 14px 6px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(31, 78, 121, .10);
}

.income-hero-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
}

.compact-status {
  justify-self: stretch;
  max-width: none;
  padding: 12px 14px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 78, 121, .08);
}

.quick-status-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.quick-status-cards div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #F8FBFF;
}

.quick-status-cards div:nth-child(1) { border-top: 4px solid var(--green); }
.quick-status-cards div:nth-child(2) { border-top: 4px solid var(--blue-2); }
.quick-status-cards div:nth-child(3) { border-top: 4px solid var(--blue); }
.quick-status-cards div:nth-child(4) { border-top: 4px solid #CBD5E1; }

.quick-status-cards span:last-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--gold);
  font-size: 12px;
}

.section-title {
  margin: 0 0 16px;
  padding: 18px 0 4px;
}

.section-title p {
  max-width: 880px;
  color: var(--muted);
  font-size: 17px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.institutional-slogan {
  display: grid;
  gap: 3px;
  margin: 0 0 14px;
  padding: clamp(24px, 3vw, 38px) clamp(26px, 4vw, 52px);
  border-left: 7px solid var(--green);
  background: linear-gradient(90deg, #F2F7FC, #FFFFFF);
  box-shadow: 0 10px 24px rgba(31, 78, 121, .08);
}

.institutional-slogan span {
  color: var(--blue);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.institutional-slogan strong {
  color: var(--ink);
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.institutional-slogan small {
  color: var(--muted);
  margin-top: 7px;
  font-size: clamp(16px, 1.5vw, 22px);
}

.home-visual-story {
  margin: 18px 0;
  padding: clamp(22px, 3vw, 36px);
  border-top: 7px solid var(--blue);
  background: linear-gradient(145deg, #FFFFFF 0%, #F3F8FC 100%);
  box-shadow: var(--shadow);
}

.home-visual-heading {
  max-width: 980px;
  margin-bottom: 22px;
}

.home-visual-heading h2 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.05;
}

.home-visual-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
}

.home-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-chart-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 16px 34px rgba(31, 78, 121, .09);
}

.chart-kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-chart-card h3 {
  margin: 6px 0 15px;
  color: var(--blue);
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.12;
}

.composition-chart {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 14px;
}

.composition-chart svg,
.semaphore-visual svg {
  width: 100%;
  max-width: 220px;
  margin: auto;
  overflow: visible;
}

.donut-value {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.donut-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.composition-legend {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.composition-legend li {
  display: grid;
  grid-template-columns: 13px 1fr;
  gap: 8px;
  align-items: start;
}

.composition-legend i,
.semaphore-bar-row span i {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 4px;
  background: var(--series);
}

.composition-legend strong,
.composition-legend small {
  display: block;
}

.composition-legend strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.composition-legend small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.semaphore-visual {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 14px;
}

.semaphore-bars {
  display: grid;
  gap: 12px;
}

.semaphore-bar-row {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(48px, 1.15fr) 18px 34px;
  gap: 7px;
  align-items: center;
  font-size: 11px;
}

.semaphore-bar-row > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 750;
}

.semaphore-bar-row > div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #E9ECEF;
}

.semaphore-bar-row > div b {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: var(--series);
}

.semaphore-bar-row strong {
  color: var(--ink);
  font-size: 15px;
}

.semaphore-bar-row small {
  color: var(--muted);
  text-align: right;
}

.home-visual-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.evolution-map-section {
  margin: 18px 0;
  padding: clamp(22px, 3vw, 38px);
  border-top: 7px solid var(--green);
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.evolution-map-heading {
  max-width: 1050px;
  margin-bottom: 22px;
}

.evolution-map-heading h2 {
  margin: 6px 0 9px;
  color: var(--ink);
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1.06;
}

.evolution-map-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.evolution-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.evolution-summary-card {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--status);
  border-radius: 16px;
  background: #F8FBFF;
}

.evolution-summary-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 5px rgba(31, 78, 121, .07);
}

.evolution-summary-card > strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}

.evolution-summary-card b,
.evolution-summary-card small {
  display: block;
}

.evolution-summary-card b {
  color: var(--ink);
  font-size: 15px;
}

.evolution-summary-card small {
  color: var(--muted);
  font-size: 11px;
}

.evolution-transition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.transition-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.transition-colors {
  display: flex;
  align-items: center;
  gap: 4px;
}

.transition-colors i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--from);
}

.transition-colors span {
  color: var(--muted);
  font-size: 12px;
}

.transition-card > strong {
  color: var(--blue);
  font-size: 23px;
}

.transition-card > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.evolution-message {
  margin: 16px 0 22px;
  padding: 18px 20px;
  border-left: 7px solid var(--green);
  background: linear-gradient(90deg, #F4F8E8, #FFFFFF);
}

.evolution-message strong {
  color: var(--blue);
  font-size: 20px;
}

.evolution-message p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.evolution-groups {
  display: grid;
  gap: 24px;
}

.evolution-group h3 {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 10px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-size: 20px;
}

.evolution-group h3 span {
  color: var(--green);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.evolution-group > div {
  display: grid;
  gap: 10px;
}

.evolution-indicator-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(125px, .72fr) minmax(105px, .55fr) minmax(125px, .72fr) minmax(260px, 1.45fr);
  gap: 10px;
  align-items: stretch;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(31, 78, 121, .06);
}

.evolution-indicator-name,
.year-result,
.evolution-arrow,
.evolution-evaluation {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.evolution-indicator-name span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.evolution-indicator-name strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.year-result {
  padding: 11px;
  border-left: 6px solid var(--status);
  border-radius: 10px;
  background: #F8FBFF;
}

.year-result.current {
  background: #F4F8E8;
}

.year-result > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.year-result > strong {
  margin: 5px 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
}

.year-result small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.year-result small i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--status);
}

.evolution-arrow {
  align-items: center;
  text-align: center;
}

.evolution-arrow strong {
  color: var(--blue);
  font-size: 14px;
}

.evolution-arrow > span {
  color: var(--green);
  font-size: 33px;
  line-height: .9;
}

.evolution-arrow small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.evolution-evaluation {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.evolution-evaluation > strong {
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
}

.evolution-evaluation p {
  margin: 5px 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.evolution-evaluation details {
  color: var(--muted);
  font-size: 11px;
}

.evolution-evaluation summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 750;
}

.evolution-evaluation details span {
  display: block;
  margin-top: 5px;
}

.semaphore-radiography {
  margin-bottom: 20px;
  padding: clamp(20px, 3vw, 34px);
  border-top: 7px solid var(--blue);
  background: linear-gradient(145deg, #FFFFFF, #F4F8FC);
  box-shadow: var(--shadow);
}

.radiography-heading h2 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 45px);
  line-height: 1.05;
}

.radiography-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.radiography-years {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.radiography-year {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 14px 30px rgba(31, 78, 121, .08);
}

.radiography-year > header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 17px 18px;
  background: var(--blue);
  color: #FFFFFF;
}

.radiography-year > header span,
.radiography-year > header strong {
  display: block;
}

.radiography-year > header div:first-child > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.radiography-year > header div:first-child > strong {
  margin-top: 2px;
  font-size: 34px;
  line-height: 1;
}

.radiography-counts {
  display: flex;
  gap: 8px;
}

.radiography-counts span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 39px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  font-weight: 850;
  font-size: 12px;
}

.radiography-counts i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--status);
}

.radiography-column-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  gap: 8px;
  padding: 9px 12px;
  background: #EAF1F7;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.radiography-column-labels span:last-child {
  text-align: center;
}

.radiography-list {
  display: grid;
}

.radiography-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 134px;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
}

.radiography-row:last-child {
  border-bottom: 0;
}

.radiography-row > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 10px 12px;
}

.radiography-row > div:first-child strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.radiography-row > div:first-child span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radiography-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 8px;
  background: var(--status);
  color: #FFFFFF;
  text-align: center;
}

.radiography-status.status-Amarillo,
.radiography-status.status-Sin-datos {
  color: #27313C;
}

.radiography-status i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
}

.radiography-status strong {
  font-size: 12px;
}

.radiography-changes {
  margin-top: 18px;
  padding: 17px;
  border-left: 6px solid var(--yellow);
  background: #FFFBEA;
}

.radiography-changes > strong {
  color: var(--ink);
  font-size: 17px;
}

.radiography-changes > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.radiography-changes article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid #E7D27A;
  border-radius: 12px;
  background: #FFFFFF;
}

.radiography-changes article > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.radiography-changes article > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.radiography-changes article i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--status);
}

.radiography-changes article b {
  color: var(--muted);
}

.radiography-changes article small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.radiography-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.board-opening {
  display: grid;
  grid-template-columns: minmax(330px, .9fr) minmax(440px, 1.25fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  margin: 0 0 18px;
  padding: clamp(26px, 4vw, 58px);
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.president-portrait {
  display: grid;
  place-items: center;
}

.president-portrait img {
  width: min(100%, 500px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% 50% 48% 48% / 45% 45% 55% 55%;
}

.president-message {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 480px;
}

.president-role {
  color: #555;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.president-message h1 {
  margin: 7px 0 22px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 1;
}

.president-message > p:not(.president-signature) {
  max-width: 760px;
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}

.president-signature {
  margin: 24px 0 8px;
  color: #68707A;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 28px;
}

.binational-flags {
  justify-self: end;
  width: min(64%, 500px);
  margin-top: 10px;
}

.official-source-link {
  justify-self: end;
  margin-top: 5px;
  color: var(--blue);
  font-size: 11px;
}

.board-composition {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.board-composition h2 {
  margin: 5px 0 8px;
  color: var(--blue);
}

.board-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.board-period {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #FFFFFF;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.board-composition > div:first-child p,
.board-verification-note {
  color: var(--muted);
  line-height: 1.55;
}

.board-role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.board-role {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid #CBD5E1;
  background: #F8FBFF;
}

.board-role.leadership {
  border-left-color: var(--green);
  background: #F6FAE9;
}

.board-role.management {
  border-left-color: var(--blue-2);
  background: #EAF7FC;
}

.board-role strong,
.board-role span {
  display: block;
}

.board-role strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.board-role span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.governance-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.governance-group {
  padding: 16px;
  border-top: 4px solid var(--blue-2);
  background: #F8FAFC;
}

.governance-group h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 15px;
}

.governance-group ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.governance-group li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.governance-group li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.governance-group strong,
.governance-group span {
  display: block;
}

.governance-group strong {
  font-size: 12px;
  line-height: 1.35;
}

.governance-group span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.board-verification-note {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.presidential-stage-page {
  min-height: calc(100vh - 64px);
}

.presidential-stage {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 82px);
  padding: clamp(36px, 4vw, 58px);
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .99) 0%, rgba(244, 246, 247, .98) 56%, rgba(229, 233, 235, .98) 100%),
    radial-gradient(circle at 78% 24%, rgba(0, 163, 224, .18), transparent 34%);
  box-shadow: 0 28px 70px rgba(39, 49, 60, .18);
}

.presidential-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(132, 164, 0, .14), transparent 24%),
    linear-gradient(270deg, rgba(0, 163, 224, .15), transparent 26%),
    repeating-linear-gradient(125deg, rgba(39, 49, 60, .035) 0 1px, transparent 1px 24px);
}

.presidential-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, #27313C 0 42%, #84A400 42% 72%, #00A3E0 72%);
}

.presidential-stage-glow {
  position: absolute;
  z-index: -1;
  width: 680px;
  height: 680px;
  right: -130px;
  top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 164, 0, .20), rgba(0, 163, 224, .10) 38%, transparent 70%);
  filter: blur(4px);
}

.presidential-stage-copy {
  position: relative;
  z-index: 2;
}

.presidential-stage-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(26px, 3vw, 40px);
}

.presidential-stage-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(39, 49, 60, .18));
}

.presidential-stage-brand span,
.presidential-stage-brand strong {
  display: block;
}

.presidential-stage-brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.presidential-stage-brand strong {
  margin-top: 5px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.presidential-stage blockquote {
  position: relative;
  max-width: 1050px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.2vw, 54px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 8px 24px rgba(39, 49, 60, .10);
}

.presidential-stage blockquote::before {
  content: "“";
  position: absolute;
  left: -.42em;
  top: -.28em;
  color: var(--blue-2);
  font-size: 2.3em;
  line-height: 1;
  opacity: .8;
}

.presidential-stage-author {
  display: grid;
  justify-items: start;
  margin-top: clamp(24px, 3vw, 38px);
  padding-left: 20px;
  border-left: 5px solid var(--green);
}

.presidential-stage-author span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.presidential-stage-author strong {
  margin-top: 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.4vw, 38px);
}

.presidential-stage-author small {
  margin-top: 5px;
  color: var(--muted);
}

.presidential-stage-flags {
  width: min(300px, 52%);
  margin-top: 20px;
  filter: drop-shadow(0 12px 28px rgba(39, 49, 60, .20));
}

.presidential-stage-portrait {
  position: relative;
  align-self: end;
  margin: 0;
  min-height: 660px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateY(-120px);
}

.presidential-stage-portrait > img {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  max-height: 680px;
  object-fit: cover;
  object-position: center top;
  border-radius: 48% 48% 18px 18px / 35% 35% 18px 18px;
  border: 1px solid rgba(39, 49, 60, .14);
  box-shadow: 0 34px 72px rgba(39, 49, 60, .28);
}

.presidential-stage-halo {
  position: absolute;
  width: min(38vw, 570px);
  aspect-ratio: 1;
  bottom: 72px;
  border: 1px solid rgba(0, 163, 224, .24);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(132, 164, 0, .055),
    0 0 0 58px rgba(0, 163, 224, .045);
}

.presidential-stage-portrait figcaption {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: 24px;
  min-width: 190px;
  padding: 15px 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border-left: 6px solid var(--green);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
}

.presidential-stage-portrait figcaption span,
.presidential-stage-portrait figcaption strong {
  display: block;
}

.presidential-stage-portrait figcaption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.presidential-stage-portrait figcaption strong {
  margin-top: 3px;
  color: var(--blue);
  font-size: 23px;
}

.page-explanation {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.page-explanation-head span {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.page-explanation-head h2 {
  margin: 4px 0 14px;
  color: var(--blue);
  font-size: 22px;
}

.page-explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-explanation-grid > div {
  padding: 13px;
  background: #F8FAFC;
  border-left: 4px solid var(--primary);
}

.page-explanation-grid strong {
  color: var(--ink);
  font-size: 13px;
}

.page-explanation-grid p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.kpi-card,
.panel,
.story-card,
.table-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.kpi-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--status);
}

.kpi-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.kpi-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi-value {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  font-weight: 850;
  margin-bottom: 8px;
}

.kpi-copy {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.status-dot {
  min-width: 0;
  width: 32px;
  height: 32px;
  text-align: center;
  color: var(--status);
  background: #FFFFFF;
  border: 2px solid rgba(31, 78, 121, .10);
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(31, 78, 121, .10);
}

.grid {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  align-items: start;
}

.grid.two { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.compact-section .section-title {
  margin-bottom: 14px;
  padding-bottom: 0;
}

.compact-section .section-title h1 {
  font-size: clamp(32px, 4vw, 50px);
}

.compact-section .section-title p {
  margin-top: 8px;
  max-width: 760px;
}

.page.active.executive-summary {
  display: grid;
  gap: 14px;
}

.executive-summary .kpi-grid {
  gap: 10px;
  margin: 0;
}

.summary-table-panel {
  padding: 16px;
}

.summary-table-panel .executive-table {
  max-height: 330px;
  overflow: auto;
  padding-right: 2px;
}

.summary-support-grid,
.summary-story-grid {
  margin-top: 0;
}

.summary-story-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
}

.summary-story-grid .compact-card {
  padding: 14px 18px 12px;
}

.summary-story-grid .panel-head {
  margin-bottom: 6px;
}

.summary-story-grid .panel h2 {
  font-size: 20px;
}

.compact-grid {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
  margin: 12px 0 0;
}

.compact-card {
  height: auto;
  min-height: unset;
  padding: 18px 18px 16px;
  align-self: start;
}

.compact-card .panel-head {
  margin-bottom: 8px;
}

.compact-chart,
.chart.compact-chart {
  height: auto;
  min-height: unset;
  display: block;
}

.ranking-card {
  padding-bottom: 14px;
}

.chart-card {
  padding-bottom: 12px;
}

.panel {
  padding: 18px;
  min-width: 0;
  align-self: start;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
}

.panel h2 {
  margin: 0;
  font-size: 21px;
}

.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #E9ECEF;
  color: var(--blue);
  padding: 7px 10px;
  font-weight: 800;
  font-size: 12px;
}

.pill.muted { color: var(--muted); background: #E9ECEF; }

.executive-table {
  display: grid;
  gap: 8px;
}

.exec-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(7, minmax(104px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #FFFFFF;
}

.exec-head {
  background: var(--blue);
  color: #FFFFFF;
  font-weight: 850;
}

.exec-row span,
.exec-row em {
  text-align: right;
  font-size: 13px;
}

.icon-only {
  font-size: 18px;
  line-height: 1;
}

.exec-row em {
  justify-self: end;
  min-width: 0;
  width: 34px;
  height: 34px;
  color: var(--status);
  background: #FFFFFF;
  border: 2px solid rgba(31, 78, 121, .12);
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 8px 16px rgba(31, 78, 121, .10);
}

.progress-cell {
  position: relative;
  overflow: hidden;
  min-height: 28px;
  display: grid;
  align-items: center;
  padding-right: 6px;
  border: 1px solid var(--line);
}

.progress-cell i {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(112, 173, 71, .28);
}

.semaphore-law,
.scenario-strip,
.explain-grid {
  display: grid;
  gap: 12px;
}

.semaphore-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  background: #FFFFFF;
}

.semaphore-item > span {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--status);
}

.semaphore-item strong {
  display: block;
  margin-bottom: 4px;
}

.semaphore-item p,
.scenario-pill small,
.explain-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.scenario-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.interpretation-panel {
  margin: 16px 0;
  border-top: 5px solid #FACC15;
}

.warning-pill {
  background: #FFF3BF;
  color: #725500;
}

.yellow-explanations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.yellow-note {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 11px;
  padding: 14px;
  border: 1px solid #E7D27A;
  background: #FFFBEA;
}

.yellow-note-dot {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border-radius: 50%;
  background: #FACC15;
}

.status-transition {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #FFF3BF;
  color: #725500;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.evidence-panel {
  margin: 16px 0;
  border-top: 5px solid var(--blue);
}

.closure-page {
  padding-bottom: 24px;
}

.closure-title {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  color: #FFFFFF;
  background:
    linear-gradient(120deg, rgba(7, 36, 66, .98), rgba(31, 78, 121, .94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 22px);
  border-bottom: 7px solid var(--green);
  box-shadow: var(--shadow);
}

.closure-title::after {
  content: "2024 → 2025";
  position: absolute;
  right: clamp(24px, 4vw, 58px);
  bottom: 20px;
  color: rgba(255, 255, 255, .08);
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 900;
  letter-spacing: -.05em;
}

.closure-title .eyebrow,
.closure-title h1,
.closure-title p {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}

.closure-title p {
  max-width: 920px;
  color: rgba(255, 255, 255, .78);
}

.evidence-intro,
.evidence-source {
  color: var(--muted);
  line-height: 1.55;
}

.evidence-table-shell {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
}

.evidence-table {
  min-width: 1180px;
}

.evidence-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--blue);
  white-space: nowrap;
}

.radiography-year>header{position:sticky;top:0;z-index:6;background:var(--blue)}
.visual-calculation{margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.visual-calculation summary{cursor:pointer;color:var(--blue);font-weight:850}
.visual-calculation p{margin:6px 0;line-height:1.4}
.criteria-display .semaphore-item strong{font-size:1.35rem}
.criteria-display .semaphore-item p{font-size:1.12rem;line-height:1.55}
.criteria-details h2{font-size:1.65rem}
.criteria-details p{font-size:1.18rem;line-height:1.65}

.evidence-table td {
  vertical-align: top;
  line-height: 1.45;
}

.evidence-table td:nth-child(3),
.evidence-table td:nth-child(5) {
  white-space: nowrap;
  font-weight: 750;
}

.evidence-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-weight: 800;
  color: var(--ink);
}

.evidence-status i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 4px rgba(31, 78, 121, .08);
}

.evidence-source {
  margin: 12px 0 0;
  font-size: 12px;
}

.evidence-callout {
  margin: 16px;
  padding: 16px 18px;
  border-left: 5px solid var(--green);
  border-radius: 10px;
  color: var(--ink);
  background: linear-gradient(100deg, rgba(132, 164, 0, .12), rgba(0, 163, 224, .08));
}

.evidence-callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.evidence-callout p {
  margin: 0;
  line-height: 1.6;
}

.yellow-note strong {
  color: var(--ink);
}

.yellow-note p,
.inflation-disclosure p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.inflation-disclosure {
  margin-top: 14px;
  padding: 16px;
  border-left: 6px solid var(--blue);
  background: #F2F7FC;
}

.inflation-disclosure > strong {
  color: var(--blue);
  font-size: 16px;
}

.inflation-disclosure a {
  color: var(--blue);
  font-weight: 800;
}

.inflation-disclosure .source-line {
  color: var(--ink);
}

.inflation-disclosure .consistency-note {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.scenario-pill {
  border: 1px solid var(--line);
  border-left: 7px solid var(--scenario);
  background: #FFFFFF;
  padding: 12px;
  min-height: unset;
}

.scenario-pill span,
.scenario-pill strong,
.scenario-pill small {
  display: block;
}

.scenario-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.scenario-pill strong {
  margin: 6px 0 4px;
  font-size: 21px;
  line-height: 1;
}

.explain-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.explain-card {
  border: 1px solid var(--line);
  border-left: 7px solid var(--status);
  background: #FFFFFF;
}

.explain-card summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.explain-card summary::-webkit-details-marker { display: none; }

.explain-card summary span {
  font-weight: 850;
}

.explain-card summary strong {
  font-size: 18px;
}

.explain-card summary em {
  min-width: 78px;
  color: #FFFFFF;
  background: var(--status);
  text-align: center;
  padding: 5px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.explain-body {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.chart {
  min-height: 0;
  width: 100%;
}

.chart.tall { min-height: 0; }

svg { max-width: 100%; height: auto; display: block; }

.risk-matrix {
  display: grid;
  gap: 8px;
}

.risk-item,
.alert-item {
  border: 1px solid var(--line);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #FFFFFF;
}

.risk-bar { align-self: stretch; background: var(--status); }
.risk-item strong, .alert-item strong { display: block; margin-bottom: 2px; }
.risk-item span, .alert-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.summary-risk-card .risk-matrix {
  grid-template-columns: 1fr;
}

.summary-risk-card .risk-item:nth-child(n+6) {
  display: none;
}

.summary-risk-card .risk-item:nth-child(n+4) {
  display: none;
}

.summary-risk-card .risk-item span {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.summary-risk-card::after {
  content: "Vista ejecutiva: se muestran los principales puntos para lectura rapida.";
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.summary-takeaways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.summary-takeaways article {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #F8FBFF;
  border-top: 4px solid var(--status);
}

.summary-takeaways span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.summary-takeaways strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 17px;
  line-height: 1.1;
}

.narrative {
  display: grid;
  align-content: start;
  gap: 14px;
}

.narrative blockquote {
  margin: 0;
  padding: 18px;
  border-left: 5px solid var(--gold);
  background: #E9ECEF;
  color: #1C1C1C;
  line-height: 1.55;
}

.mini-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: #FFFFFF;
}

.mini-card strong { display: block; font-size: 24px; margin: 8px 0; }
.mini-card span { color: var(--muted); }

.gauge-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
}

.donut-legend {
  display: grid;
  gap: 10px;
}

.donut-legend div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.donut-legend span {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.donut-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.donut-summary article {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #F8FBFF;
}

.donut-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.donut-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.1;
}

.visual-ranking {
  min-height: 0;
  display: grid;
  gap: 7px;
  align-content: start;
}

.visual-ranking.empty {
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #F8FBFF;
  color: var(--blue);
}

.rank-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(138px, auto);
  grid-template-rows: auto 10px;
  gap: 5px 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #FFFFFF;
  box-shadow: 0 10px 22px rgba(31, 78, 121, .07);
}

.rank-meta {
  display: grid;
  grid-column: 1 / 3;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
}

.rank-meta span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #FFFFFF;
  background: var(--status);
  font-weight: 850;
  font-size: 13px;
}

.rank-meta strong {
  color: var(--blue);
  font-size: 15px;
  line-height: 1.15;
}

.rank-meta em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  display: none;
}

.rank-value {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  text-align: right;
}

.rank-value strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.rank-value span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.rank-track {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background: #EAF4FF;
  overflow: hidden;
}

.rank-track i {
  display: block;
  height: 100%;
  width: var(--width);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--status));
}

.alert-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
}

.critical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.critical-card {
  border: 1px solid var(--line);
  background: #FFFFFF;
  padding: 16px;
  box-shadow: var(--shadow);
}

.critical-card.positive-note {
  grid-column: 1 / -1;
  border-color: rgba(46, 125, 50, .25);
  background: #FFFFFF;
}

.positive-note {
  min-height: 0;
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.closing-pill {
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--status);
  border-radius: 16px;
  background: #F8FBFF;
}

.closing-pill strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 6px;
}

.closing-pill span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.critical-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  background: #FFFFFF;
  padding: 12px 14px;
  font: inherit;
}

.table-shell {
  overflow: auto;
  max-height: 68vh;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
  background: #FFFFFF;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  background: var(--blue);
  color: #FFFFFF;
  z-index: 1;
}

.status-text {
  display: inline-block;
  min-width: 78px;
  text-align: center;
  color: #FFFFFF;
  background: var(--status);
  padding: 5px 8px;
  font-weight: 800;
  font-size: 12px;
}

.tooltip {
  position: fixed;
  pointer-events: none;
  display: none;
  max-width: 280px;
  padding: 10px 12px;
  background: rgba(23,32,51,.95);
  color: #FFFFFF;
  font-size: 12px;
  line-height: 1.45;
  z-index: 100;
}

.site-footer {
  margin-left: 260px;
  padding: 28px 32px 32px;
  border-top: 1px solid var(--line);
  background: #172033;
  color: rgba(255, 255, 255, .78);
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
}

.site-footer p {
  margin: 2px 0;
}

.site-footer-copyright {
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: .02em;
}

@media (max-width: 1100px) {
  .sidebar {
    position: static;
    width: auto;
  }
  main { margin-left: 0; padding: 18px; }
  .site-footer { margin-left: 0; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .grid.two, .grid.three, .compact-grid, .kpi-grid, .critical-grid, .scenario-strip, .explain-grid, .income-hero-cards, .income-hero-head, .hero-metrics-row, .closing-grid, .yellow-explanations, .page-explanation-grid, .board-opening {
    grid-template-columns: 1fr;
  }
  .president-message { min-height: 0; }
  .board-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .governance-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-chart-grid { grid-template-columns: 1fr; }
  .evolution-summary-grid,
  .evolution-transition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evolution-indicator-row { grid-template-columns: minmax(170px, 1fr) 1fr 100px 1fr; }
  .evolution-evaluation { grid-column: 1 / -1; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .radiography-years { grid-template-columns: 1fr; }
  .composition-chart,
  .semaphore-visual { grid-template-columns: minmax(190px, .8fr) minmax(240px, 1.2fr); }
  .quick-status-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .income-hero-chart { min-height: unset; }
  .presidential-stage {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .presidential-stage-copy { padding-bottom: 20px; }
  .presidential-stage-portrait {
    min-height: 520px;
    max-width: 620px;
    justify-self: center;
    transform: translateY(-64px);
  }
}

@media (max-width: 640px) {
  .sidebar { padding: 16px; }
  .nav { grid-template-columns: 1fr; }
  .hero { padding: 24px; min-height: auto; }
  .income-hero { padding: 22px; }
  .income-hero-head, .hero-metrics-row { display: grid; grid-template-columns: 1fr; }
  .income-hero-head h1 { font-size: 38px; }
  .hero-highlight { padding: 22px; }
  #incomeGrowthBadge { font-size: 44px; }
  .income-hero-chart { min-height: unset; padding: 10px; }
  .quick-status-cards { grid-template-columns: 1fr; }
  .board-opening { padding: 20px; }
  .board-role-grid { grid-template-columns: 1fr; }
  .board-heading { display: grid; }
  .board-period { justify-self: start; }
  .governance-groups { grid-template-columns: 1fr; }
  .binational-flags,
  .official-source-link { justify-self: start; }
  .institutional-slogan strong { font-size: 36px; }
  .composition-chart,
  .semaphore-visual { grid-template-columns: 1fr; }
  .evolution-summary-grid,
  .evolution-transition-grid { grid-template-columns: 1fr; }
  .evolution-indicator-row { grid-template-columns: 1fr 1fr; }
  .evolution-indicator-name,
  .evolution-evaluation { grid-column: 1 / -1; }
  .evolution-arrow { display: none; }
  .radiography-year > header { align-items: flex-start; flex-direction: column; }
  .radiography-column-labels,
  .radiography-row { grid-template-columns: minmax(0, 1fr) 108px; }
  .hero h1, .section-title h1 { font-size: 34px; }
  .toolbar { flex-direction: column; }
  .exec-row {
    grid-template-columns: 1fr;
  }
  .exec-row span,
  .exec-row em {
    text-align: left;
    justify-self: stretch;
  }
  .explain-card summary {
    grid-template-columns: 1fr;
  }
  .presidential-stage {
    min-height: auto;
    padding: 30px 24px 0;
  }
  .presidential-stage-brand { margin-bottom: 34px; }
  .presidential-stage-brand img { width: 64px; height: 64px; }
  .presidential-stage-brand span { font-size: 9px; }
  .presidential-stage-brand strong { font-size: 19px; }
  .presidential-stage blockquote { font-size: 34px; }
  .presidential-stage blockquote::before { left: -.18em; }
  .presidential-stage-flags { width: 76%; }
  .presidential-stage-portrait {
    min-height: 430px;
    transform: translateY(-38px);
  }
  .presidential-stage-portrait figcaption { right: 0; }
}
