/* ============================================================
   smgr · css/pages/viz_descenso_j34.css — DISEÑO de la tarjeta capturable de
   "El descenso en tiempo real" (visualizacion_descenso_j34.php). Portado 1:1
   del clásico. Captura ÚNICA (#captureArea): el reset scopeado ya lo aporta
   viz.css; aquí sólo el diseño, todo bajo #captureArea. Gráfico SVG plano +
   tooltip interactivo.
   ============================================================ */

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

#captureArea .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff; padding: 20px; text-align: center;
}
#captureArea .header h1 { font-size: 28px; font-weight: 800; margin: 0; }
#captureArea .header p { font-size: 13px; opacity: 0.9; margin-top: 4px; }

#captureArea .empty-state {
  padding: 60px 24px; text-align: center; color: #718096;
  font-size: 15px; font-weight: 600;
}

#captureArea .legend {
  display: flex; justify-content: center; gap: 24px;
  padding: 12px 20px 0; flex-wrap: wrap;
  font-size: 12px;
}
#captureArea .legend-item { display: flex; align-items: center; gap: 6px; }
#captureArea .legend-swatch { width: 16px; height: 4px; border-radius: 2px; }
#captureArea .legend-team { font-weight: 600; color: #2d3748; }
#captureArea .legend-vs { color: #718096; }

#captureArea .chart-section { padding: 12px 22px 18px; position: relative; }
#captureArea .chart-section svg { display: block; width: 100%; height: auto; }

#captureArea .tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 10px 12px;
  pointer-events: none;
  font-size: 12px;
  min-width: 200px;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 20;
}
#captureArea .tooltip.visible { opacity: 1; }
#captureArea .tooltip .tt-time {
  font-size: 13px; font-weight: 700; color: #2d3748;
  margin-bottom: 6px; border-bottom: 1px solid #e2e8f0; padding-bottom: 4px;
}
#captureArea .tooltip .tt-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
#captureArea .tooltip .tt-color { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
#captureArea .tooltip .tt-team { font-weight: 600; color: #2d3748; min-width: 90px; }
#captureArea .tooltip .tt-score { color: #4a5568; font-variant-numeric: tabular-nums; }
#captureArea .tooltip .tt-margin { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
#captureArea .tooltip .pos { color: #16a34a; }
#captureArea .tooltip .neg { color: #dc2626; }
#captureArea .tooltip .zero { color: #718096; }
#captureArea .tooltip .tt-footer {
  margin-top: 8px; padding: 6px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: #fff;
  text-align: center; letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

#captureArea .verdict-section {
  padding: 14px 22px 22px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
#captureArea .verdict-title {
  font-size: 13px; font-weight: 700; color: #2d3748;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
#captureArea .verdict-subtle {
  font-size: 12px; color: #64748b; margin-bottom: 10px;
}
#captureArea .verdict-subtle b { color: #475569; }
#captureArea .verdict-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#captureArea .v-card {
  background: #fff; border: 2px solid #e9ecef; border-radius: 12px;
  padding: 12px; display: flex; align-items: center; gap: 12px;
}
#captureArea .v-card.saved { border-color: #48bb78; }
#captureArea .v-card.condemned { border-color: #e53e3e; }
#captureArea .v-card img { width: 40px; height: 40px; object-fit: contain; }
#captureArea .v-card .vc-info { flex: 1; }
#captureArea .v-card .vc-info .name { font-size: 13px; font-weight: 700; color: #2d3748; }
#captureArea .v-card .vc-info .h2h { font-size: 11px; color: #4a5568; }
#captureArea .v-card .duration-pill {
  font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 8px;
  color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

#captureArea .footer {
  background: #2d3748; color: rgba(255,255,255,0.85);
  text-align: center; padding: 10px 20px; font-size: 11px;
}

/* ---------- SVG ---------- */
#captureArea text { font-family: 'Inter', sans-serif; }
#captureArea .grid-line { stroke: #e2e8f0; stroke-width: 1; }
#captureArea .grid-line.zero { stroke: #94a3b8; stroke-width: 1; }
#captureArea .axis-line { stroke: #cbd5e0; stroke-width: 1.5; }
#captureArea .axis-label { font-size: 11px; fill: #4a5568; font-weight: 600; }
#captureArea .y-label { font-size: 10px; fill: #718096; }
#captureArea .annotation-line { stroke: #e53e3e; stroke-width: 1.2; stroke-dasharray: 4,3; }
#captureArea .annotation-label { font-size: 10px; font-weight: 700; fill: #c53030; }
#captureArea .crosshair { stroke: #64748b; stroke-width: 1; pointer-events: none; opacity: 0; }
#captureArea .crosshair.visible { opacity: 1; }
#captureArea .band-segment { stroke: #fff; stroke-width: 1; }
#captureArea .band-label { font-size: 11px; font-weight: 700; fill: #fff; }
#captureArea .band-title { font-size: 10px; fill: #4a5568; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
