
/* ===== HEADER ===== */
.site-header {
  background: var(--ink); padding: calc(14px + var(--safe-t)) 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 80;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg,#7B1FA2,#1565C0);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 900; color: white;
}
.logo-text { font-size: .95rem; font-weight: 800; color: white; letter-spacing: -.3px; line-height: 1.1; }
.logo-sub { display: block; font-size: .6rem; font-weight: 400; color: rgba(255,255,255,.45); }
.hdr-btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px; padding: 7px 16px;
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.8);
  cursor: pointer; font-family: var(--font); text-decoration: none;
  transition: background .15s;
}
.hdr-btn:hover { background: rgba(255,255,255,.18); }

/* ===== HERO ===== */
.hero {
  /* =====   ===== */
  background: linear-gradient(135deg, #0A0A1A 0%, #1a1a3e 100%);

  padding: 48px 20px 52px; text-align: center; color: white;
}
.hero-title { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 900; letter-spacing: -.5px; margin-bottom: 10px; }
.hero-sub { font-size: .92rem; color: rgba(255,255,255,.6); line-height: 1.7; max-width: 520px; margin: 0 auto 28px; }
.hero-kpis { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.kpi {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px 24px; text-align: center; min-width: 110px;
}
.kpi-num { font-size: 2rem; font-weight: 900; color: white; line-height: 1; }
.kpi-lbl { font-size: .68rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .4px; margin-top: 4px; }

/* ===== MAIN ===== */
main { max-width: 1100px; margin: 0 auto; padding: 32px 16px calc(40px + var(--safe-b)); }
.section { margin-bottom: 40px; }
.section-title {
  font-size: 1.15rem; font-weight: 900; letter-spacing: -.3px; margin-bottom: 4px;
}
.section-sub { font-size: .82rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 22px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }

/* ===== BRECHA DE CREDIBILIDAD ===== */
.brecha-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.brecha-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.brecha-lbl { width: 130px; flex-shrink: 0; }
.brecha-lbl strong { font-size: .8rem; color: var(--ink); display: block; }
.brecha-lbl small { font-size: .68rem; color: var(--muted); }
.brecha-bars { flex: 1; }
.brecha-bar-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.brecha-bar-lbl { font-size: .63rem; font-weight: 700; color: var(--muted); width: 52px; text-align: right; flex-shrink: 0; }
.brecha-bar-track { flex: 1; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.brecha-bar-fill { height: 100%; border-radius: 5px; transition: width .6s ease; }
.brecha-val { font-size: .72rem; font-weight: 700; width: 28px; flex-shrink: 0; }
.brecha-gap-badge {
  flex-shrink: 0; border-radius: 20px; padding: 4px 10px;
  font-size: .68rem; font-weight: 800; color: white; white-space: nowrap;
}
.no-data { color: var(--muted); font-size: .82rem; font-style: italic; }

/* ===== HEATMAP ===== */
.heatmap-wrap { overflow-x: auto; }
.heatmap { border-collapse: collapse; width: 100%; font-size: .8rem; }
.heatmap th { padding: 8px 10px; text-align: center; font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.heatmap td { padding: 8px 10px; text-align: center; border-radius: 6px; font-weight: 700; }
.hm-af { text-align: left !important; font-weight: 700; font-size: .78rem; white-space: nowrap; }
.hm-empty { color: var(--muted); font-weight: 400; font-size: .75rem; }

/* ===== TOPICS ===== */
.topic-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.topic-row:last-child { border-bottom: none; }
.topic-name { width: 150px; font-size: .82rem; font-weight: 600; flex-shrink: 0; }
.topic-bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.topic-bar-fill { height: 100%; border-radius: 4px; background: var(--accent); }
.topic-cnt { font-size: .75rem; color: var(--muted); width: 30px; text-align: right; flex-shrink: 0; }

/* ===== CROSS INDEX ===== */
.cross-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.cross-row:last-child { border-bottom: none; }
.cross-lbl { width: 130px; font-size: .8rem; font-weight: 600; flex-shrink: 0; }
.cross-bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.cross-bar-fill { height: 100%; border-radius: 4px; }
.cross-pct { font-size: .75rem; font-weight: 700; width: 34px; text-align: right; flex-shrink: 0; }
.cross-lbl-txt { font-size: .68rem; color: var(--muted); }

/* ===== CHART ===== */
.chart-wrap { position: relative; height: 220px; }

/* ===== DEMO ===== */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .demo-grid { grid-template-columns: 1fr; } }

/* ===== NOTA AL PIE ===== */
.footer-note {
  text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.7;
  padding: 24px 16px; border-top: 1px solid var(--border); margin-top: 10px;
}
.footer-note a { color: var(--accent); text-decoration: none; }

/* ===== CTA PARTICIPA ===== */
.cta-section {
  background: linear-gradient(135deg, #6366F1, #7B1FA2);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  color: white; margin-bottom: 32px;
}
.cta-section h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 8px; }
.cta-section p { font-size: .85rem; opacity: .85; margin-bottom: 20px; line-height: 1.65; }
.cta-btn {
  display: inline-block; background: white; color: #6366F1;
  border: none; border-radius: 14px; padding: 13px 28px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
  font-family: var(--font); text-decoration: none; transition: all .2s;
}
.cta-btn:hover { transform: scale(1.04); box-shadow: 0 6px 24px rgba(0,0,0,.2); }

/* Badge vacío */
.empty-badge {
  text-align: center; color: var(--muted); padding: 28px; font-size: .85rem;
  background: var(--bg); border-radius: 12px;
}

/* ===== CORRIENTE PICKER — circles ===== */
.cor-row {
  display: flex; gap: 6px; margin-bottom: 26px; padding: 0px 20%;
}
.cor-item { flex: 1; text-align: center; cursor: pointer; }
.cor-item input[type=radio] { display: none; }
.cor-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ci-col);
  border: 3px solid transparent;
  margin: 0 auto 7px;
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.cor-item input:checked + .cor-circle {
  border-color: var(--ink);
  transform: scale(1.22);
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
}
.cor-lbl {
  font-size: .95rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .2px; color: var(--ci-col);
  display: block; line-height: 1.25;
}
