.disciplinas-section {
  padding: 3rem 0;
  background: #0f1420;
}
.disciplinas-section .section-title { font-family: 'Bebas Neue', 'Impact', sans-serif; font-size: 2.2rem; letter-spacing: 3px; color: #f27f0d; text-transform: uppercase; margin-bottom: 2rem; padding: 0 1.5rem; }
.disciplinas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.5rem; padding: 0 1.5rem; }
.torneo-card { background: #1a2035; border: 1px solid rgba(242,127,13,0.2); border-radius: 12px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.torneo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(242,127,13,0.15); }
.torneo-card-header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: linear-gradient(135deg, #1e2845 0%, #1a2035 100%); border-bottom: 2px solid rgba(242,127,13,0.3); }
.torneo-icon { font-size: 1.6rem; flex-shrink: 0; }
.torneo-deporte { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; letter-spacing: 2px; color: #f27f0d; margin: 0; text-transform: uppercase; }
.torneo-nombre { font-size: 0.72rem; color: #8899bb; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.torneo-ver-btn { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: #f27f0d; text-decoration: none; white-space: nowrap; padding: 4px 10px; border: 1px solid rgba(242,127,13,0.4); border-radius: 20px; transition: all 0.2s; }
.torneo-ver-btn:hover { background: #f27f0d; color: #fff; }
.grupos-wrapper { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.25rem 0.5rem; }
.grupo-bloque { flex: 1 1 150px; min-width: 140px; }
.grupo-titulo { font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #f27f0d; margin-bottom: 0.4rem; }
.tabla-posicion { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.tabla-posicion thead tr { background: rgba(255,255,255,0.04); }
.tabla-posicion th { padding: 4px 6px; text-align: center; color: #7788aa; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tabla-posicion td { padding: 5px 6px; text-align: center; color: #ccd6f0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tabla-posicion .row-lider td { color: #fff; }
.tabla-posicion .row-lider .equipo-nombre-cell { font-weight: 700; }
.equipo-nombre-cell { text-align: left !important; display: flex; align-items: center; gap: 6px; }
.pos-dot { font-size: 0.6rem; font-weight: 800; padding: 2px 4px; border-radius: 3px; background: rgba(255,255,255,0.08); color: #7788aa; flex-shrink: 0; }
.pos-dot.pos-1 { background: rgba(255,196,0,0.2); color: #ffc400; }
.pos-dot.pos-2 { background: rgba(192,192,192,0.2); color: #ccc; }
.pts-cell { color: #f27f0d !important; }
.empty-cell { color: #445566; font-style: italic; }
.seccion-subtitulo { font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #445577; padding: 0.6rem 1.25rem 0.3rem; border-top: 1px solid rgba(255,255,255,0.06); }
.partidos-lista { padding: 0 1.25rem 0.5rem; }
.seccion-subtitulo + .partidos-lista, .partidos-lista { padding-top: 0.25rem; }
.partido-row { display: grid; grid-template-columns: 72px 1fr 80px; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.partido-row:last-child { border-bottom: none; }
.partido-row.partido-fin { opacity: 0.75; }
.partido-meta { font-size: 0.65rem; color: #556688; line-height: 1.3; }
.partido-equipos { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; flex-wrap: wrap; }
.equipo-local, .equipo-visitante { color: #99aabb; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipo-local { text-align: right; }
.equipo-visitante { text-align: left; }
.equipo-local.ganador, .equipo-visitante.ganador { color: #f27f0d; font-weight: 700; }
.marcador { font-family: 'Bebas Neue', monospace; font-size: 1rem; color: #fff; background: rgba(242,127,13,0.15); border: 1px solid rgba(242,127,13,0.3); border-radius: 6px; padding: 2px 8px; flex-shrink: 0; }
.vs-badge { font-size: 0.65rem; color: #445566; font-weight: 700; flex-shrink: 0; }
.partido-status { text-align: right; }
.badge-match { font-size: 0.6rem; font-weight: 700; padding: 3px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.badge-fin { background: rgba(39,174,96,0.15); color: #27ae60; border: 1px solid rgba(39,174,96,0.3); }
.badge-live { background: rgba(231,76,60,0.15); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); animation: pulse-badge 1.5s infinite; }
.badge-espera { background: rgba(255,255,255,0.05); color: #556677; border: 1px solid rgba(255,255,255,0.1); }
@keyframes pulse-badge { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.llave-seccion { padding: 0 1.25rem 0.5rem; }
.llave-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.llave-match { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 8px; font-size: 0.75rem; }
.llave-numero { font-size: 0.6rem; font-weight: 800; letter-spacing: 1px; color: #445566; text-transform: uppercase; margin-bottom: 6px; }
.llave-slot { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; border-radius: 4px; color: #99aabb; font-weight: 500; background: rgba(255,255,255,0.03); margin-bottom: 2px; border-left: 2px solid transparent; }
.llave-slot.slot-bye { color: #33445599; font-style: italic; font-size: 0.65rem; border-left-color: transparent; }
.llave-slot.slot-ganador { background: rgba(242,127,13,0.1); border-left-color: #f27f0d; color: #f27f0d; font-weight: 700; }
.llave-pts { font-family: 'Bebas Neue', monospace; font-size: 0.9rem; color: inherit; margin-left: 6px; }
.llave-vs { text-align: center; font-size: 0.55rem; color: #334455; font-weight: 800; margin: 1px 0; }
.llave-fecha { font-size: 0.6rem; color: #445566; text-align: right; margin-top: 4px; }
.leyenda-box { margin: 0 1.25rem 0.75rem; background: rgba(242,127,13,0.05); border: 1px solid rgba(242,127,13,0.15); border-radius: 8px; padding: 0.5rem 0.75rem; }
.leyenda-pre { font-family: inherit; font-size: 0.72rem; color: #8899bb; margin: 0; white-space: pre-wrap; word-break: break-word; }
.torneo-footer { padding: 0.75rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: flex-end; }
.btn-editar-torneo { font-size: 0.72rem; font-weight: 700; color: #7788aa; text-decoration: none; padding: 4px 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; transition: all 0.2s; }
.btn-editar-torneo:hover { color: #f27f0d; border-color: rgba(242,127,13,0.4); }
@media (max-width: 600px) {
  .disciplinas-grid { grid-template-columns: 1fr; }
  .llave-grid { grid-template-columns: repeat(2, 1fr); }
  .partido-row { grid-template-columns: 56px 1fr 70px; font-size: 0.7rem; }
}

/* Conectores de llaves en vista pública */
.bracket-round-column {
  --bracket-gap: 1.5rem;
  --bracket-connector-color: #0f172a;
  --bracket-connector-size: 2px;
  --bracket-connector-length: 20px;
}
.bracket-match-node { position: relative; }
.bracket-connector-left,
.bracket-connector-right {
  position: absolute;
  top: 50%;
  width: var(--bracket-connector-length);
  height: var(--bracket-connector-size);
  margin-top: -1px;
  background: var(--bracket-connector-color);
  opacity: .8;
  z-index: 20;
}
.bracket-connector-left {
  left: calc(var(--bracket-connector-length) * -1);
}
.bracket-connector-right {
  right: calc(var(--bracket-connector-length) * -1);
}
.bracket-match-node.bracket-pair-start.bracket-has-right::after {
  content: '';
  position: absolute;
  right: calc(var(--bracket-connector-length) * -1);
  top: 50%;
  width: var(--bracket-connector-size);
  height: calc(100% + var(--bracket-gap));
  background: var(--bracket-connector-color);
  opacity: .8;
  z-index: 19;
}
.bracket-match-node.bracket-has-left::before {
  content: '';
  position: absolute;
  left: calc(var(--bracket-connector-length) * -1);
  top: 0;
  width: var(--bracket-connector-size);
  height: 100%;
  background: var(--bracket-connector-color);
  opacity: .5;
  z-index: 19;
}

.llave-grid-tercer-lugar {
  grid-template-columns: minmax(240px, 360px);
  justify-content: center;
}
.llave-match-tercer-lugar {
  background: rgba(242,127,13,0.08);
  border-color: rgba(242,127,13,0.35);
}
