/* Torneos de deportes de conjunto (complementa combates.css) */
.a3tr-tabla td small { display: block; color: #64748b; font-size: 11px; }
.a3tr-tabla td, .a3tr-tabla th { text-align: center; }
.a3tr-tabla td:nth-child(2), .a3tr-tabla th:nth-child(2) { text-align: left; }
.a3tr-ronda { margin-top: 12px; display: grid; gap: 6px; }
.a3tr-ronda h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.a3tr-partido { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px;
  border: 1px solid #e2e8f0; background: #fff; font: inherit; color: #0f172a; cursor: pointer; text-align: left; }
.a3tr-partido > span:last-of-type { text-align: right; }
.a3tr-partido b { font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; color: #475569; }
.a3tr-partido.is-jugado b { color: #0f172a; }
.a3tr-partido .is-gana { font-weight: 700; }
.a3tr-partido small { grid-column: 1 / -1; color: #64748b; font-size: 11px; text-align: center; }
.a3tr-partido:disabled { cursor: default; opacity: .6; }
.a3tr-marcador { display: flex; align-items: flex-end; gap: 12px; justify-content: center; margin: 10px 0; }
.a3tr-marcador label { display: grid; gap: 4px; text-align: center; font-size: 13px; color: #475569; }
.a3tr-num { width: 80px; height: 48px; font-size: 22px; text-align: center; border: 1px solid #cbd5e1; border-radius: 10px; }
.a3cb-mz__t .a3tr-num { width: 64px; height: 38px; font-size: 16px; }
.a3tr-wo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; font-size: 13px; color: #64748b; }
.a3tr-crit { display: grid; gap: 6px; padding-left: 20px; }
.a3tr-crit li span { float: right; display: inline-flex; gap: 4px; }
.a3tr-crit li button { border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; cursor: pointer; }
.a3tr-podio { display: grid; gap: 4px; padding-left: 0; list-style: none; margin: 12px 0 0; }
.a3tr-armar { display: grid; gap: 10px; max-width: 460px; }
/* Planilla del partido */
.a3tr-total { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 6px 0 10px; font-weight: 600; }
.a3tr-total b { font-size: 28px; font-variant-numeric: tabular-nums; }
.a3tr-total span:last-child { text-align: right; }
.a3tr-sec { border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.a3tr-sec summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.a3tr-alin { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; max-height: 260px; overflow: auto; }
.a3tr-alin > div { display: grid; gap: 4px; align-content: start; }
.a3tr-evs { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; font-size: 13px; }
.a3tr-evs small { color: #b45309; }
.a3tr-evs button { margin-left: 8px; }
.a3tr-nuevo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a3tr-nuevo select, .a3tr-nuevo input { height: 36px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 13px; }
.a3tr-jl { color: #b45309; }
.a3tr-goles { display: grid; gap: 4px; padding-left: 20px; margin: 0; }
.a3tr-goles small { color: #64748b; }
@media (max-width: 640px) { .a3tr-alin { grid-template-columns: 1fr; } }
/* Sanciones */
.a3tr-sanc summary { cursor: pointer; }
.a3tr-sanc h4 { margin: 12px 0 4px; font-size: 13px; }
.a3tr-pend td { background: #fff7ed; }
.a3tr-susp { color: #9a3412; }
.a3tr-avisosusp { color: #b45309 !important; }
/* Programación por canchas */
.a3tr-cfg { display: grid; gap: 10px; margin-top: 10px; max-width: 640px; }
.a3tr-canchas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.a3tr-cancha h3 { margin: 0 0 8px; }
.a3tr-cancha h3 small { color: #64748b; font-weight: 500; }
.a3tr-turno { display: grid; grid-template-columns: 112px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #eef2f7; }
.a3tr-turno .mono { white-space: nowrap; }
.a3tr-turno small { display: block; color: #64748b; font-size: 12px; }
.a3tr-turno.is-jugado { opacity: .6; }
.a3tr-turno.is-ahora { background: #f0fdf4; }
.a3tr-turno.is-sig { background: #eff6ff; }
.a3tr-dia { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: capitalize; color: #0f3b7a; padding-top: 6px; }
@media print { .a3tr-noprint, .a3cb-pz__div > details > summary ~ * { display: none !important; } .a3tr-canchas { grid-template-columns: 1fr 1fr; } }
/* Sin Internet */
.a3tr-sinred ul { margin: 6px 0 0; padding-left: 18px; }
/* Planilla del partido: ventana amplia con desplazamiento */
.a3tr-dlg { width: min(680px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.a3tr-volver { display: none; }
/* Celular: la lista de pruebas se oculta al abrir una; planilla a pantalla completa con botones fijos abajo */
@media (max-width: 900px) {
  .a3tr-grid.has-sel .a3cb-pruebas { display: none; }
  .a3tr-volver { display: inline-flex; align-items: center; margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .a3tr-velo { padding: 0; align-items: stretch; }
  .a3tr-dlg { width: 100%; max-height: none; height: 100%; border-radius: 0; padding: 16px 14px 0; align-content: start; }
  .a3tr-dlg .a3cb-dialogo__acc { position: sticky; bottom: 0; background: #fff; margin: 6px -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e2e8f0; }
  .a3tr-dlg .a3cb-dialogo__acc .a3cb-btn--pri { flex: 1 1 100%; order: 9; }
  .a3tr-total b { font-size: 24px; }
  .a3tr-partido { min-height: 52px; font-size: 14px; gap: 6px; padding: 8px 10px; }
  .a3tr-partido b { min-width: 52px; }
  .a3tr-nuevo select, .a3tr-nuevo input { flex: 1 1 140px; height: 42px; }
  .a3tr-nuevo .a3cb-btn { flex: 1 1 100%; }
  .a3tr-wo .a3cb-btn { flex: 1; }
  .a3cb-mz__t .a3tr-num { width: 72px; height: 44px; font-size: 18px; }
  .a3tr-alin { max-height: none; }
  .a3tr-alin .a3cb-mz__chk { min-height: 36px; }
  .a3tr-turno { grid-template-columns: 92px 1fr; }
  .a3tr-turno > .a3cb-chip { grid-column: 2; justify-self: start; }
}

/* Deportes (selector) y cabecera del deporte elegido */
.a3tr-deps { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.a3tr-dep { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid #e2e8f0; background: #f8fafc; text-align: left; cursor: pointer; font: inherit; color: #0f172a; }
.a3tr-dep:hover { border-color: #94a3b8; background: #fff; }
.a3tr-dep > span:nth-child(2) { display: grid; min-width: 0; }
.a3tr-dep b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a3tr-dep small { font-size: 11.5px; color: #64748b; }
.a3tr-dep.is-on { background: #0f3b7a; border-color: #0f3b7a; color: #fff; box-shadow: 0 6px 18px rgb(15 59 122 / .25); }
.a3tr-dep.is-on small { color: #c8d6ea; }
.a3tr-dep__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
.a3tr-dep.is-on .a3tr-dep__ico { background: #ffca7d; box-shadow: none; }
.a3tr-dep__ico.is-grande { width: 48px; height: 48px; border-radius: 14px; font-size: 26px; background: #ffca7d; box-shadow: none; }
.a3tr-dep__pend { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #b45309; color: #fff; font: 700 11px/20px system-ui, sans-serif; font-style: normal; text-align: center; }
.a3tr-depcab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; }
.a3tr-depcab__tit { flex: 1 1 160px; }
.a3tr-depcab__tit small { font: 500 11px/1 Oswald, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #b7791f; }
.a3tr-depcab__tit h2 { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: #0f3b7a; }
.a3tr-etapas { display: flex; gap: 6px; flex-wrap: wrap; }
.a3tr-etapa { display: grid; min-width: 78px; padding: 6px 10px; border-radius: 12px; background: #f1f5f9; font-size: 11px; color: #64748b; }
.a3tr-etapa b { font-size: 18px; color: #0f172a; }
.a3tr-etapa.is-azul b { color: #1d4ed8; } .a3tr-etapa.is-ambar b { color: #b45309; } .a3tr-etapa.is-verde b { color: #15803d; }

/* Asistente: formatos, cabezas y sorteo */
.a3tr-asist { display: grid; gap: 10px; }
.a3tr-paso { margin: 6px 0 0; font-weight: 600; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.a3tr-paso b { width: 22px; height: 22px; border-radius: 50%; background: #0f3b7a; color: #fff; display: grid; place-items: center; font-size: 12px; }
.a3tr-formatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.a3tr-formato { display: grid; gap: 4px; align-content: start; justify-items: start; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font: inherit; color: #0f172a; }
.a3tr-formato:hover { border-color: #94a3b8; }
.a3tr-formato.is-on { border-color: #0f3b7a; box-shadow: inset 0 0 0 1px #0f3b7a; background: #eef3fa; }
.a3tr-formato small { color: #475569; font-size: 12.5px; line-height: 1.35; }
.a3tr-formato__cifras { font-size: 12px; font-weight: 600; color: #0f3b7a; }
.a3tr-manual { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; align-items: end; }
.a3tr-cabezas { border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; background: #fff; }
.a3tr-cabezas summary { cursor: pointer; font-weight: 600; color: #0f3b7a; }
.a3tr-cabezas ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.a3tr-cabezas label { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 13px; cursor: pointer; }
.a3tr-cabezas small { color: #64748b; margin-left: auto; }
.a3tr-cab-n { width: 20px; height: 20px; border-radius: 50%; background: #ffca7d; color: #061f3d; display: grid; place-items: center; font-size: 11px; }
.a3tr-sorteo { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #0f3b7a; color: #fff; }
.a3tr-sorteo__cab { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.a3tr-sorteo__cab b { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: #ffca7d; }
.a3tr-sorteo__cab .a3cb-link { color: #fff; }
.a3tr-sorteo__sale { padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / .14); }
.a3tr-sorteo__grupos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.a3tr-sorteo__g { background: #fff; color: #0f172a; border-radius: 12px; padding: 8px 10px; }
.a3tr-sorteo__g h4 { margin: 0 0 6px; font: 600 13px/1.2 Oswald, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #0f3b7a; }
.a3tr-sorteo__g ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.a3tr-sorteo__g li { font-size: 12.5px; color: #94a3b8; }
.a3tr-sorteo__g li.is-vis { color: #0f172a; animation: a3tr-sale .35s ease-out; }
.a3tr-sorteo__g li b { display: block; font-weight: 600; }
.a3tr-sorteo__g li small { color: #64748b; font-size: 11.5px; }
@keyframes a3tr-sale { from { opacity: 0; transform: translateY(-4px); background: #fff4e0; } }
.a3tr-acta summary { cursor: pointer; }
.a3tr-acta ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 3px; font-size: 13px; }
.a3tr-acta__b { display: inline-block; min-width: 64px; font-size: 11px; color: #64748b; }
.a3tr-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; max-height: 50vh; overflow: auto; }
.a3tr-res .is-mal { color: #b91c1c; }
@media (max-width: 760px) {
  .a3tr-deps { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .a3tr-etapas { width: 100%; } .a3tr-etapa { flex: 1; min-width: 0; }
}

/* Todos los deportes: encabezado por deporte en la lista */
.a3tr-grupo-dep { margin: 10px 2px 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.a3tr-grupo-dep:first-child { margin-top: 0; }
.a3tr-depcab__nota { font-size: 12px; color: #64748b; }
