/**
 * Centro de Control — claridad bloques deep (Gemelo / Benchmark / Insights /
 * Inteligencia animal / Prescriptiva / Repro / Búfalos).
 * SERIO V2 + paleta SLATE. Acento: raya recta 2px izquierda (no franja curva).
 */
#pg-exec.exec-serio-v1 {
  --exec-deep-radius: 12px;
  --exec-deep-gap: 8px;
}

/* ── Paneles deep: cabecera de sección más legible ── */
#pg-exec .exec-hub-deep-panel .exec-hub-scorecard,
#pg-exec .exec-hub-deep-panel .exec-hub-insights-band,
#pg-exec .exec-hub-deep-panel .exec-hub-gemelo-band {
  background: var(--gris-0, #fff);
  border: var(--borde-fino, 1px solid #cbd5e1);
  border-radius: var(--exec-deep-radius);
  padding: 12px 12px 14px;
  margin: 10px 0;
  box-shadow: var(--manto-serio-panel-drop, 0 2px 8px rgba(15, 23, 42, 0.06));
}
#pg-exec .exec-hub-deep-panel .exec-hub-scorecard__tit {
  font-size: 15px;
  font-weight: 900;
  color: var(--texto-fuerte, #0f172a);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

/* ── Gemelo: anillo + nivel + pilares ── */
#pg-exec .exec-hub-gemelo-card {
  display: grid;
  grid-template-columns: minmax(100px, 120px) minmax(0, 1fr);
  gap: 14px 16px;
  align-items: start;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
@media (max-width: 480px) {
  #pg-exec .exec-hub-gemelo-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  #pg-exec .exec-hub-gemelo-card .exec-hub-pilar-list {
    text-align: left;
    width: 100%;
  }
}
#pg-exec .exec-hub-gemelo-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}
@media (max-width: 480px) {
  #pg-exec .exec-hub-gemelo-head {
    align-items: center;
  }
}
#pg-exec .exec-hub-gemelo-tit {
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  color: var(--texto-fuerte, #0f172a);
}
#pg-exec .exec-hub-gemelo-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--texto-suave, #64748b);
  margin: 0 0 4px;
  max-width: 36em;
}
#pg-exec .exec-hub-gemelo-clas {
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}
#pg-exec .exec-hub-pilar-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
#pg-exec .exec-hub-pilar-row {
  display: grid;
  grid-template-columns: minmax(72px, 96px) 1fr 40px;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-base, #334155);
}
#pg-exec .exec-hub-pilar-row__lbl {
  font-weight: 700;
  color: var(--texto-fuerte, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#pg-exec .exec-hub-pilar-row__val {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: right;
  color: var(--texto-fuerte, #0f172a);
}
#pg-exec .exec-hub-pilar-bar {
  height: 7px;
  background: var(--gris-200, #e2e8f0);
  border-radius: 0;
  overflow: hidden;
}
#pg-exec .exec-hub-pilar-bar > span {
  border-radius: 0;
  background: #475569;
}
#pg-exec .exec-hub-pilar-row--low .exec-hub-pilar-bar > span {
  background: #b45309;
}
#pg-exec .exec-hub-pilar-row--zero .exec-hub-pilar-bar > span {
  background: #94a3b8;
  min-width: 0;
}
#pg-exec .exec-hub-pilar-row--ok .exec-hub-pilar-bar > span {
  background: #334155;
}

/* ── Benchmark: resumen chips + filas ── */
#pg-exec .exec-hub-bench-resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
  color: var(--texto-suave, #64748b);
  margin: 0 0 10px;
  line-height: 1.35;
}
#pg-exec .exec-hub-bench-resumen strong {
  color: var(--texto-fuerte, #0f172a);
  font-weight: 800;
}
#pg-exec .exec-hub-bench-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#pg-exec .exec-hub-bench-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(64px, auto) minmax(72px, 1fr) minmax(48px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: var(--gris-50, #f8fafc);
  border: 1px solid var(--gris-200, #e2e8f0);
  border-radius: 10px;
  font-size: 12px;
}
@media (max-width: 520px) {
  #pg-exec .exec-hub-bench-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "kpi kpi"
      "val pctl"
      "gap gap";
  }
  #pg-exec .exec-hub-bench-row__kpi { grid-area: kpi; }
  #pg-exec .exec-hub-bench-row__val { grid-area: val; }
  #pg-exec .exec-hub-bench-row__pctl { grid-area: pctl; }
  #pg-exec .exec-hub-bench-row__gap { grid-area: gap; }
}
#pg-exec .exec-hub-bench-row__kpi {
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
}
#pg-exec .exec-hub-bench-row__val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--texto-base, #334155);
}
#pg-exec .exec-hub-bench-row__pctl {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
#pg-exec .exec-hub-bench-row__pctl-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--texto-suave, #64748b);
  font-variant-numeric: tabular-nums;
}
#pg-exec .exec-hub-bench-row__gap {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-suave, #64748b);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#pg-exec .exec-hub-bench-table {
  display: none; /* lista supera a tabla en móvil; desktop puede usar lista también */
}

/* ── Insights: tipo + mensaje legible ── */
#pg-exec .exec-hub-insights-feed {
  max-height: none;
  gap: 8px;
}
#pg-exec .exec-hub-insight {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 10px 12px 10px 14px;
  background: var(--gris-0, #fff);
  border: 1px solid var(--gris-200, #e2e8f0);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--texto-base, #334155);
}
#pg-exec .exec-hub-insight::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 0;
  background: color-mix(in srgb, #64748b 45%, transparent);
}
#pg-exec .exec-hub-insight--alta::before,
#pg-exec .exec-hub-insight--high::before,
#pg-exec .exec-hub-insight--critical::before {
  background: color-mix(in srgb, #b91c1c 75%, transparent);
}
#pg-exec .exec-hub-insight--media::before,
#pg-exec .exec-hub-insight--medium::before {
  background: color-mix(in srgb, #b45309 70%, transparent);
}
#pg-exec .exec-hub-insight__tipo {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-muted, #94a3b8);
  min-width: 0;
}
#pg-exec .exec-hub-insight__txt {
  font-weight: 600;
  color: var(--texto-fuerte, #0f172a);
}

/* ── Inteligencia animal ── */
#pg-exec .exec-hub-intel-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--gris-50, #f8fafc);
  border: 1px solid var(--gris-200, #e2e8f0);
  border-radius: 10px;
}
#pg-exec .exec-hub-intel-promedio {
  margin: 0;
  font-size: 13px;
  color: var(--texto-suave, #64748b);
}
#pg-exec .exec-hub-intel-promedio strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--texto-fuerte, #0f172a);
  font-variant-numeric: tabular-nums;
}
#pg-exec .exec-hub-intel-dist {
  gap: 6px;
}
#pg-exec .exec-hub-intel-dist-chip {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
}
#pg-exec .exec-hub-intel-clas--riesgo {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
#pg-exec .exec-hub-rank-grid {
  gap: 12px;
}
#pg-exec .exec-hub-rank-col {
  background: var(--gris-50, #f8fafc);
  border: 1px solid var(--gris-200, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
}
#pg-exec .exec-hub-rank-col h3 {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto-suave, #64748b);
  margin: 0 0 8px;
}
#pg-exec .exec-hub-rank-ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
#pg-exec .exec-hub-rank-ol li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--gris-200, #e2e8f0);
  font-size: 13px;
  color: var(--texto-fuerte, #0f172a);
  font-weight: 600;
}
#pg-exec .exec-hub-rank-ol li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
#pg-exec .exec-hub-rank-ol__meta {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--texto-base, #334155);
  background: var(--gris-0, #fff);
  border: 1px solid var(--gris-300, #cbd5e1);
  border-radius: 999px;
  padding: 2px 8px;
}
#pg-exec .exec-hub-rank-ol__meta--riesgo {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* ── Prescriptiva: menos ruido, más jerarquía ── */
#pg-exec .exec-pf-card {
  position: relative;
  padding: 12px 12px 12px 14px;
  border-radius: 12px;
}
#pg-exec .exec-pf-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 0;
  background: color-mix(in srgb, #64748b 40%, transparent);
}
#pg-exec .exec-pf-card--critical::before {
  background: color-mix(in srgb, #b91c1c 80%, transparent);
}
#pg-exec .exec-pf-card--high::before {
  background: color-mix(in srgb, #c2410c 75%, transparent);
}
#pg-exec .exec-pf-card--medium::before {
  background: color-mix(in srgb, #b45309 70%, transparent);
}
#pg-exec .exec-pf-card__tit {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}
#pg-exec .exec-pf-card__desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--texto-base, #334155);
}
#pg-exec .exec-pf-card__meta {
  font-size: 14px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
  font-variant-numeric: tabular-nums;
}
#pg-exec .exec-pf-card__acts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
#pg-exec .exec-pf-btn {
  min-height: 36px;
  font-size: 12px;
  border-radius: 10px;
  width: 100%;
  padding: 0 6px;
}
#pg-exec .exec-pf-card__acts--out .exec-pf-btn {
  background: var(--gris-100, #f1f5f9);
}
#pg-exec .exec-pf-notes-lbl {
  margin-top: 4px;
}
#pg-exec .exec-pf-pri-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── KPIs de dominio (Repro / Leche / Sanidad) — reemplazo pot-dash-kpi ── */
#pg-exec .exec-hub-domain {
  background: var(--gris-0, #fff);
  border: var(--borde-fino, 1px solid #cbd5e1);
  border-radius: var(--exec-deep-radius);
  padding: 12px;
  margin: 10px 0;
  box-shadow: var(--manto-serio-panel-drop, 0 2px 8px rgba(15, 23, 42, 0.06));
}
#pg-exec .exec-hub-domain .ani-serio-v2-subl {
  font-size: 14px;
  font-weight: 900;
  color: var(--texto-fuerte, #0f172a);
  margin: 0 0 6px;
  text-transform: none;
  letter-spacing: 0;
}
#pg-exec .exec-hub-domain-lead {
  font-size: 12px;
  color: var(--texto-suave, #64748b);
  margin: 0 0 12px;
  line-height: 1.4;
}
#pg-exec .exec-hub-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 560px) {
  #pg-exec .exec-hub-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#pg-exec .exec-hub-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--gris-50, #f8fafc);
  border: 1px solid var(--gris-200, #e2e8f0);
  border-radius: 10px;
  min-height: 64px;
}
#pg-exec .exec-hub-metric__lbl {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--texto-suave, #64748b);
}
#pg-exec .exec-hub-metric__val {
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--texto-fuerte, #0f172a);
  line-height: 1.1;
}
#pg-exec .exec-hub-metric__meta {
  font-size: 10px;
  color: var(--texto-muted, #94a3b8);
  line-height: 1.3;
}
#pg-exec .exec-hub-metric--warn .exec-hub-metric__val {
  color: #b45309;
}
#pg-exec .exec-hub-metric--crit .exec-hub-metric__val {
  color: #b91c1c;
}

/* ── Búfalos: etiquetas legibles ── */
#pg-exec .exec-buf-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 560px) {
  #pg-exec .exec-buf-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
#pg-exec .exec-buf-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--gris-50, #f8fafc);
  border: 1px solid var(--gris-200, #e2e8f0);
  border-radius: 10px;
}
#pg-exec .exec-buf-kpi__lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-suave, #64748b);
  word-break: normal;
}
#pg-exec .exec-buf-kpi strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--texto-fuerte, #0f172a);
  font-variant-numeric: tabular-nums;
}
#pg-exec .exec-buf-narr {
  margin: 10px 0 0;
  padding: 0 0 0 16px;
  font-size: 12px;
  color: var(--texto-base, #334155);
  line-height: 1.45;
}
