/* ============================================================
   smgr · css/pages/viz_ventajas.css — DISEÑO de las OCHO tarjetas-heatmap
   capturables de "Ventajas y remontadas por minuto"
   (visualizacion_ventajas.php). Portado 1:1 del clásico.

   MULTI-CAPTURA: hay ocho targets (cap1..cap8), no #captureArea, así que el
   reset scopeado de viz.css no los cubre → aquí se replica ese reset bajo la
   clase .viz-card (común a las ocho tarjetas). El diseño de tarjeta va
   scopeado bajo .viz-card; sólo los helpers de maquetación (.viz-capbar /
   .viz-scroll / .threshold-form / .group-divider), fuera de las tarjetas, van
   sin scope. Ancho de tarjeta fijo 1010px; en móvil se hace scroll horizontal.
   ============================================================ */

/* ---------- Maquetación fuera de las tarjetas (chrome Foco) ---------- */
.viz-capbar { display: flex; justify-content: flex-end; margin-top: var(--sp-4); }
.viz-scroll { margin-top: var(--sp-2); overflow-x: auto; }

.threshold-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  font-size: 14px;
  color: var(--ink);
}
.threshold-form input[type=number] {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.group-divider {
  margin-top: var(--sp-5);
  border-top: 2px dashed #2d3748;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.group-divider span {
  background: var(--bg);
  padding: 0 14px;
  position: relative;
  top: -10px;
}

/* ---------- Reset scopeado (equivalente al de viz.css para #captureArea) ---------- */
.viz-card, .viz-card * { margin: 0; padding: 0; box-sizing: border-box; }
.viz-card { line-height: normal; color: #2d3748; }

/* ---------- Tarjeta-heatmap ---------- */
.viz-card {
  font-family: 'Inter', sans-serif;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  width: 1010px;
}

.viz-card .viz-title {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 10px;
  letter-spacing: 0.3px;
}

.viz-card .hm-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}
.viz-card .hm-table th, .viz-card .hm-table td {
  text-align: center;
  padding: 0;
  line-height: 1;
}
.viz-card .hm-table th {
  background: #2d3748;
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  height: 18px;
}
.viz-card .hm-table th.col-team { width: 42px; background: #1a202c; }
.viz-card .hm-table th.col-min { width: 22px; }
.viz-card .hm-table th.col-total { width: 38px; background: #4a5568; }
.viz-card .hm-table th.col-pct { width: 38px; background: #4a5568; }
.viz-card .hm-table th.qbreak, .viz-card .hm-table td.qbreak { border-left: 2px solid #2d3748; }

.viz-card .hm-table td {
  height: 19px;
  font-weight: 700;
  font-size: 11px;
  color: #2d3748;
}
.viz-card .hm-table td.cell-team {
  background: #2d3748;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.viz-card .hm-table td.hm-cell {
  border-right: 1px solid rgba(255,255,255,0.4);
}
.viz-card .hm-table td.hm-total {
  font-weight: 800;
  font-size: 11px;
  border-left: 2px solid #2d3748;
}
.viz-card .hm-table td.hm-pct {
  background: #f7fafc;
  font-weight: 700;
  color: #2d3748;
  font-size: 10px;
}

.viz-card .viz-foot {
  background: #2d3748;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.3px;
}
