/* ============================================================
   smgr · css/pages/viz_remontadas.css — DISEÑO DE LA TARJETA capturable
   de "Mayores remontadas" (visualizacion_remontadas.php). Portado 1:1 del
   smgr/visualizacion_remontadas.php clásico, con TODO scopeado bajo
   #captureArea (no colisiona con el chrome "Foco"). Sin `body{background}`
   ni reset global `*` (los aporta el chrome vía viz.css). Ancho fijo 780px
   (lo respeta el escalador móvil de viz.css).
   ============================================================ */

#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: 780px;
}
#captureArea * { box-sizing: border-box; }

/* ---------- Cabecera ---------- */
#captureArea .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  padding: 10px;
  text-align: center;
  position: relative;
}
#captureArea .header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><rect width="100" height="100" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}
#captureArea .logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
#captureArea .header h1 { font-size: 28px; font-weight: 800; margin: 0; position: relative; z-index: 1; }
#captureArea .header p { font-size: 14px; opacity: 0.9; margin-top: 5px; position: relative; z-index: 1; }

/* ---------- Contenido / tabla ---------- */
#captureArea .content { padding: 0; }

#captureArea .table-header {
  background: #2d3748;
  color: #fff;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 40px 90px 120px 120px 90px 90px 90px 90px;
  gap: 5px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
#captureArea .table-header > div:nth-child(3),
#captureArea .table-header > div:nth-child(4) { text-align: left; }

#captureArea .team-row {
  display: grid;
  grid-template-columns: 40px 90px 120px 120px 90px 90px 90px 90px;
  gap: 5px;
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  border-left: 4px solid transparent;
  align-items: center;
  font-size: 12px;
  text-align: center;
}
#captureArea .team-row > div:nth-child(3),
#captureArea .team-row > div:nth-child(4) { text-align: left; }
#captureArea .team-row:nth-child(even) { background: #f8f9fa; }
#captureArea .team-row.latest-game {
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #3b82f6;
}

#captureArea .rank { font-weight: 800; font-size: 14px; color: #2d3748; text-align: center; }

#captureArea .team-info { display: flex; align-items: center; gap: 8px; }
#captureArea .team-shield {
  width: 22px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}
#captureArea .team-name { font-weight: 700; font-size: 13px; color: #2d3748; }
#captureArea .winner .team-name { color: #1e7e34; }
#captureArea .loser .team-name { color: #6c757d; }

#captureArea .comeback-size { font-weight: 800; font-size: 18px; color: #1e7e34; text-align: center; }
#captureArea .jornada { font-weight: 700; font-size: 12px; color: #4a5568; }

#captureArea .score-cell { text-align: center; }
#captureArea .score-main { font-size: 12px; font-weight: 700; }
#captureArea .score-deficit { color: #dc3545; }
#captureArea .score-final { color: #1e7e34; }
#captureArea .score-last10 { color: #e67e22; }
#captureArea .score-time { font-size: 9px; color: #6c757d; margin-top: 1px; }
#captureArea .no-data { color: #adb5bd; font-size: 11px; }

/* ---------- Pie ---------- */
#captureArea .footer {
  background: #2d3748;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
}
#captureArea .social-links { margin-top: 5px; font-size: 12px; }
#captureArea .social-links span { margin: 0 10px; opacity: 0.8; }
