* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f4f6fb; color: #1a2236; }

.c-good { color: #047857; }
.c-bad  { color: #b91c1c; }

/* ========== Top bar ========== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(135deg, #0b1e40 0%, #1e3a8a 60%, #2b5edb 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(16,39,86,0.18);
}
.topbar .brand { display: flex; align-items: center; gap: 14px; }
.topbar .logo { font-size: 28px; color: #7cc8ff; }
.topbar .title { font-weight: 700; font-size: 18px; letter-spacing: -0.2px; }
.topbar .subtitle { font-size: 12px; opacity: 0.85; margin-top: 2px; }

main { max-width: 1400px; margin: 0 auto; padding: 32px 24px 24px; }

/* ========== EXECUTIVE SUMMARY ========== */
.exec-summary {
  background: linear-gradient(135deg, #0b1e40 0%, #1e3a8a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 44px 56px 40px;
  margin-bottom: 32px;
  box-shadow: 0 12px 40px rgba(11,30,64,0.25);
  position: relative;
  overflow: hidden;
}
.exec-summary::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 10%, rgba(239,68,68,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.exec-head { margin-bottom: 24px; }
.exec-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: #7cc8ff; margin-bottom: 8px;
}
.exec-title {
  margin: 0 0 8px; font-size: 22px; font-weight: 600;
  color: #e2e8f0; line-height: 1.3; letter-spacing: -0.2px;
}
.exec-sub { font-size: 14px; color: #cbd5e1; line-height: 1.5; }
.exec-sub span { color: #fff; font-weight: 600; }

.exec-amount {
  font-size: 72px; font-weight: 900; line-height: 1;
  margin: 8px 0 28px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1.5px;
}

.split-bar {
  display: flex;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 28px;
}
.split-green, .split-red {
  padding: 16px 22px;
  color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  transition: flex 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
}
.split-green { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.split-red   { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.split-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.9; }
.split-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.split-pct { font-size: 13px; opacity: 0.9; font-weight: 600; }

.exec-findings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.exec-findings li {
  background: rgba(255,255,255,0.08);
  border-left: 3px solid #ef4444;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #e2e8f0;
}
.exec-findings li strong { color: #fff; font-weight: 700; }

@media (max-width: 900px) {
  .exec-summary { padding: 32px 24px; }
  .exec-amount { font-size: 48px; letter-spacing: -1px; }
  .split-bar { height: auto; flex-direction: column; }
}

/* ========== KPIs ========== */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(26,34,54,0.06);
  border-top: 3px solid #2b5edb;
}
.kpi .label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.kpi .value { font-size: 26px; font-weight: 800; color: #0f172a; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -0.5px; }
.kpi .sub { font-size: 12px; color: #6b7280; margin-top: 6px; line-height: 1.4; }

/* ========== Cards ========== */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(26,34,54,0.06);
}
.card-header { margin-bottom: 20px; }
.card-header h2 {
  margin: 0 0 6px; font-size: 18px; color: #0f172a;
  font-weight: 700; letter-spacing: -0.2px;
}
.card-header p { margin: 0; font-size: 13px; color: #6b7280; max-width: 900px; line-height: 1.55; }
.card-header p strong { color: #0f172a; }

.chart-wrap { position: relative; height: 340px; }
.chart-wrap.big  { height: 500px; }
.chart-wrap.tall { height: 500px; }

/* ========== 2 columnas ========== */
.grid-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 1100px) { .grid-two { grid-template-columns: 1fr; } }

.footnote {
  font-size: 12px;
  color: #64748b;
  margin-top: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  border-radius: 6px;
  line-height: 1.55;
}
.footnote .marker { color: #1e3a8a; font-weight: 700; }

/* ========== Footer ========== */
.verif {
  background: #eff6ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: #1e3a8a;
  text-align: left;
  font-size: 13px;
}
.verif a {
  color: #2b5edb;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  display: inline-block;
  margin-top: 4px;
}
.verif a:hover { background: #dbeafe; }
footer {
  text-align: center;
  color: #64748b;
  font-size: 11px;
  padding: 32px 24px;
  line-height: 1.7;
  max-width: 1000px;
  margin: 0 auto;
}
footer strong { color: #334155; }
footer code { background: #e5e7eb; padding: 1px 5px; border-radius: 4px; color: #475569; font-size: 11px; }
