h2 { font-size: 1.35rem; font-weight: 500; margin-bottom: 0.75rem; }
h3 { font-size: 1rem; font-weight: 500; margin: 1.25rem 0 0.6rem; color: var(--accent); }
p { margin-bottom: 0.75rem; color: var(--text); font-size: 0.92rem; }
ul { margin: 0.5rem 0 1rem 1.25rem; font-size: 0.92rem; }
li { margin-bottom: 0.35rem; }

.callout { background: var(--surface2); padding: 0.85rem 1rem; border-radius: 8px; margin: 1rem 0; font-size: 0.88rem; }

/* Panel parámetros — columna derecha fija */
.params-sidebar {
  width: var(--params-w); min-width: var(--params-w); background: var(--bg);
  border-left: 1px solid var(--border); position: fixed;
  top: var(--topbar-h); right: 0; height: calc(100vh - var(--topbar-h));
  overflow-y: auto; z-index: 100; padding: 1.25rem 1rem;
  transition: transform 0.22s ease;
}
body.sidebar-right-closed .params-sidebar { transform: translateX(100%); }
.params-sidebar h3 { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: 0.03em; }
.params-table { margin: 0; width: 100%; font-size: 0.8rem; }
.params-table th { background: transparent; padding: 0.45rem 0.35rem; font-size: 0.72rem; }
.params-table th.num { text-align: right; }
.params-table td { padding: 0.4rem 0.35rem; vertical-align: middle; }
.params-table td:first-child { color: var(--muted); width: 54%; font-size: 0.78rem; line-height: 1.35; }
.params-table td.num { text-align: right; width: 46%; }
.param-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.3rem; width: 100%; }
.param-input {
  border: none; background: transparent; color: var(--text);
  font: inherit; font-size: 0.85rem; font-variant-numeric: tabular-nums;
  text-align: right; width: auto; flex: 1; min-width: 2rem; max-width: 5.5rem;
  padding: 0.15rem 0.1rem; margin: 0;
  outline: none; cursor: text; border-radius: 4px;
  -moz-appearance: textfield; appearance: textfield;
}
.param-unit { color: var(--muted); font-size: 0.72rem; white-space: nowrap; flex-shrink: 0; font-weight: 500; }
.params-note { font-size: 0.72rem; color: var(--muted); line-height: 1.45; margin-top: 0.75rem; }
.param-input::-webkit-outer-spin-button,
.param-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.param-input:hover { background: rgba(0,0,0,0.04); }
.param-input:focus { background: rgba(0,0,0,0.06); }
.params-table tr:hover .param-input { background: rgba(0,0,0,0.04); }
.params-table tr:hover .param-input:focus { background: rgba(0,0,0,0.06); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.85rem; }
th, td { padding: 0.55rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface2); color: var(--muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: rgba(0,0,0,0.03); }
td.num { font-weight: 500; }
td.positive { color: var(--green); }
td.negative { color: var(--red); }
td.highlight { color: var(--green); font-weight: 500; }
tr.total td { font-weight: 500; border-top: 2px solid var(--border); }

.hero { margin-bottom: 2rem; }
.hero h2 { font-size: 1.6rem; border: none; margin-bottom: 0.25rem; }
.hero .sub { color: var(--muted); font-size: 0.9rem; }

.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-bottom: 1rem;
}
.kpi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 1.25rem 1rem; text-align: center;
}
.kpi-card.primary { border-color: var(--accent); background: linear-gradient(180deg, #eef4ff 0%, var(--surface) 100%); }
.kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; margin-bottom: 0.35rem; }
.kpi-value { font-size: 1.75rem; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-card.primary .kpi-value { color: var(--accent); }
.kpi-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 96px; padding: 0.75rem 1rem; background: var(--surface2); border-radius: 8px; }

.callout.warn { background: #fff8eb; }
.callout.ok { background: #ecfdf5; }
.footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.78rem; }

/* Market map infographic */
.market-map-infographic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 1.25rem 0 2rem;
  box-shadow: 0 8px 28px rgba(26, 29, 38, 0.06);
}
.market-map-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8faff 0%, var(--surface) 100%);
}
.market-map-head h3 {
  margin: 0; font-size: 1.05rem; color: var(--text); text-transform: none; letter-spacing: 0;
}
.market-map-head p {
  margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--muted); max-width: 34rem;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; font-size: 0.78rem; color: var(--muted);
}
