/* ============================================================
   smgr · css/pages/viz_edades.css — DISEÑO DE LA TARJETA capturable de
   "Edad ponderada por equipo" (visualizacion_edades.php). Portado del clásico,
   con TODO scopeado bajo #captureArea. Tarjeta OSCURA (#2d3748). Sin reset
   global ni body{background} (los aporta viz.css). Ancho fijo 1100px.
   ============================================================ */

#captureArea {
  font-family: 'Inter', sans-serif;
  background: #2d3748;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 1100px;
}
#captureArea * { box-sizing: border-box; }

/* ---------- Cabecera ---------- */
#captureArea .chart-header {
  padding: 20px 30px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}
#captureArea .logo {
  width: 70px; height: 53px; background: #fff; border-radius: 15%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.3); overflow: hidden;
  flex-shrink: 0;
}
#captureArea .logo img { width: 100%; height: 100%; object-fit: contain; }
#captureArea .chart-header h2 { color: #fff; font-size: 20px; font-weight: 700; }
#captureArea .chart-header p { color: #a0aec0; font-size: 12px; margin-top: 4px; }

/* ---------- Leyenda ---------- */
#captureArea .legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 12px 20px 5px;
  flex-wrap: wrap;
}
#captureArea .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0aec0;
  font-size: 11px;
  font-weight: 600;
}

/* ---------- Gráfico SVG + escudos superpuestos ---------- */
#captureArea .tooltip-container { position: relative; }
#captureArea .chart-plot { position: relative; }
#captureArea .shield-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
#captureArea .shield-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  object-fit: contain;
}
#captureArea .svg-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
  display: none;
  white-space: nowrap;
  z-index: 100;
}

/* ---------- Estado vacío ---------- */
#captureArea .empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #a0aec0;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Pie ---------- */
#captureArea .chart-footer {
  padding: 10px 20px;
  text-align: center;
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
#captureArea .chart-footer span { color: #fff; opacity: 0.8; }
