/* ============================================================
   smgr · css/pages/viz_bocina.css — DISEÑO DE LA TARJETA capturable de
   "Tiros sobre la bocina" (visualizacion_bocina.php). Portado 1:1 del
   smgr/visualizacion_bocina.php clásico, con TODO scopeado bajo #captureArea.
   Tarjeta blanca, cabecera azul, tarjetas de descenso + tabla de jugadas.
   Ancho natural 1024px. Sin reset global ni body{background}.
   ============================================================ */

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

/* ---------- Cabecera ---------- */
#captureArea .header {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  padding: 18px 20px;
  text-align: center;
}
#captureArea .header h1 { font-size: 30px; font-weight: 800; margin: 0; }
#captureArea .header p { font-size: 14px; opacity: 0.9; margin-top: 4px; }
#captureArea .logo-section {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 8px;
}

#captureArea .section-title {
  font-size: 16px; font-weight: 700; color: #2d3748;
  padding: 16px 24px 8px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- Tarjetas de impacto en el descenso ---------- */
#captureArea .reg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 8px 24px 20px;
}
#captureArea .reg-card {
  border: 2px solid #e9ecef;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#captureArea .reg-card.saved { border-color: #48bb78; background: #f0fdf4; }
#captureArea .reg-card.condemned { border-color: #e53e3e; background: #fef2f2; }
#captureArea .reg-card .shield { width: 56px; height: 56px; object-fit: contain; }
#captureArea .reg-card .team-name { font-size: 14px; font-weight: 700; color: #2d3748; text-align: center; }
#captureArea .reg-card .balance {
  font-size: 28px; font-weight: 800;
  padding: 4px 16px; border-radius: 8px;
  background: #fff; min-width: 80px; text-align: center;
}
#captureArea .reg-card .balance.pos { color: #2f855a; }
#captureArea .reg-card .balance.neg { color: #c53030; }
#captureArea .reg-card .balance.zero { color: #718096; }
#captureArea .reg-card .wl { font-size: 12px; color: #4a5568; }
#captureArea .reg-card .h2h { font-size: 11px; color: #4a5568; font-weight: 600; margin-top: 4px; }
#captureArea .reg-card .verdict {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
#captureArea .reg-card.saved .verdict { background: #48bb78; color: #fff; }
#captureArea .reg-card.condemned .verdict { background: #e53e3e; color: #fff; }
#captureArea .reg-card.middle .verdict { background: #ed8936; color: #fff; }

/* ---------- Tabla de jugadas ---------- */
#captureArea .table-wrap { padding: 8px 24px 24px; }
#captureArea table.plays { width: 100%; border-collapse: collapse; font-size: 12px; }
#captureArea table.plays thead th {
  background: linear-gradient(135deg, #2c5282 0%, #2a4365 100%);
  color: #fff;
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
#captureArea table.plays tbody td {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #2d3748;
}
#captureArea table.plays tbody tr.relegation-impact { background: #fffaf0; }
#captureArea table.plays .team-cell { display: flex; align-items: center; gap: 6px; }
#captureArea table.plays .team-cell img { width: 22px; height: 22px; object-fit: contain; }
#captureArea table.plays .team-cell .tc-name { font-size: 12px; flex: 1; }
#captureArea table.plays .team-cell .score { font-weight: 700; font-size: 12px; color: #2d3748; min-width: 24px; text-align: right; }
#captureArea table.plays .team-cell .loc-badge {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 50%; font-size: 8px; font-weight: 800;
  text-align: center; line-height: 14px; letter-spacing: 0;
}
#captureArea table.plays .team-cell .loc-L { background: #2c5282; color: #fff; }
#captureArea table.plays .team-cell .loc-V { background: #ed8936; color: #fff; }
#captureArea table.plays .ganador { font-weight: 600; }
#captureArea table.plays .perdedor { color: #718096; }
#captureArea table.plays .tipo-tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
}
#captureArea table.plays .tipo-3pt { background: #bee3f8; color: #2c5282; }
#captureArea table.plays .tipo-2pt { background: #c6f6d5; color: #22543d; }
#captureArea table.plays .tipo-tl  { background: #fed7d7; color: #742a2a; }
#captureArea table.plays .pr-badge {
  display: inline-block;
  background: #ed8936; color: #fff;
  padding: 1px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700; margin-left: 4px;
}

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