:root {
  --navy: #020178;
  --navy-soft: #0a0aa0;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-bg: #f5f5f7;
  --gray-border: #e2e2e6;
  --gray-text: #5c5c66;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gray-bg);
  color: var(--black);
  line-height: 1.5;
}

/* HEADER */
.header {
  background: var(--navy);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.header__brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header__author {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
}

.header__author-name {
  font-weight: 600;
}

.header__author-role {
  opacity: 0.75;
  font-size: 12px;
}

/* INTRO */
.intro {
  max-width: 720px;
  margin: 48px auto 32px;
  padding: 0 24px;
  text-align: center;
}

.intro h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.intro p {
  color: var(--gray-text);
  font-size: 15px;
}

/* GRID DE 3 BLOQUES */
.grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
}

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

/* CARD BASE */
.card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 24px;
}

.card__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}

/* BLOQUE 1 — INPUTS */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--black);
}

.field input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
  margin-bottom: 4px;
}

.field input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.field__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.field__divider {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 20px 0;
}

.field--static label {
  color: var(--gray-text);
  font-weight: 400;
}

/* BLOQUE 2 — OUTPUTS */
.output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 14px;
}

.output-row span:first-child {
  color: var(--gray-text);
}

.output-row__value {
  font-weight: 600;
  color: var(--black);
}

.output-row--total {
  border-bottom: none;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 2px solid var(--navy);
}

.output-row--total .output-row__value {
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
}

/* BLOQUE 3 — KPIs */
.kpi {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  display: flex;
  flex-direction: column;
}

.kpi:last-child {
  border-bottom: none;
}

.kpi__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.kpi__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--black);
}

.kpi__hint {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 4px;
}

.kpi--highlight {
  background: var(--navy);
  margin: 4px -24px;
  padding: 16px 24px;
  border-bottom: none;
}

.kpi--highlight .kpi__label,
.kpi--highlight .kpi__hint {
  color: rgba(255, 255, 255, 0.7);
}

.kpi--highlight .kpi__value--big {
  color: var(--white);
  font-size: 32px;
}

/* GRÁFICOS (placeholder) */
.charts-placeholder {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 40px 24px;
  text-align: center;
  border: 2px dashed var(--gray-border);
  border-radius: 12px;
  color: var(--gray-text);
  font-size: 14px;
  max-width: 1152px;
}
/* GRÁFICOS */
.charts {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.card--chart {
  display: flex;
  flex-direction: column;
}

/* FOOTER */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
}