.torneos-page .torneos-filter-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end !important;
    width: 100%;
    margin-left: auto;
    gap: .5rem;
}

.torneos-page .torneos-filter-grid .torneos-filter-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: .45rem;
    height: 2.45rem;
    margin: 0 .1rem;
    background: transparent;
    color: rgba(184, 192, 204, .68);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
}

.torneos-page .torneos-filter-grid .torneos-filter-separator::before {
    content: "·";
}

.torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn.btn-sg-primary {
    border-color: rgba(0, 162, 232, .92) !important;
    background: rgba(0, 162, 232, .22) !important;
    box-shadow: 0 0 0 1px rgba(0, 162, 232, .24), 0 0 18px rgba(0, 162, 232, .24) !important;
    color: #FFFFFF !important;
}

.torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn.btn-sg-primary .bi,
.torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn.btn-sg-primary i {
    color: #FFFFFF !important;
}

.torneos-page .torneos-filter-grid .torneo-filter-inscripcion-abierta,
.torneos-page .torneos-filter-grid .torneo-filter-inscripcion-no-abierta {
    display: none !important;
}

.torneos-page .torneos-filter-grid .torneo-filter-inscripcion-no-abierta + .torneos-filter-separator {
    display: none !important;
}

/* Compact text labels for the tournament filter bar. */
.torneos-page .torneos-filter-grid .torneo-filter-equipos {
    display: inline-flex !important;
}

.torneos-page .torneos-filter-grid .torneo-filter-inscripcion-abierta,
.torneos-page .torneos-filter-grid .torneo-filter-inscripcion-cerrada,
.torneos-page .torneos-filter-grid .torneo-filter-inscripcion-completa {
    display: inline-flex !important;
}

.torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn {
    justify-content: center;
    min-width: 5.7rem;
    min-height: 2.45rem;
    padding-inline: .8rem !important;
}

.torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn .torneo-filter-label {
    display: inline-flex;
    align-items: center;
    margin-left: .42rem;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1;
}

.torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn i,
.torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn .bi {
    display: inline-flex !important;
    font-size: 1rem;
}

/* UI-only: centra cada columna del bloque inferior de datos en las cards de torneos. */
.torneo-card-facts {
    text-align: center;
}

.torneo-card-fact {
    justify-items: center;
    padding-inline: .22rem;
    text-align: center;
}

.torneo-card-fact-label {
    justify-content: center;
    width: 100%;
}

.torneo-card-fact-value {
    display: block;
    text-align: center;
    width: 100%;
}

.torneo-card-progress {
    justify-items: center;
    text-align: center;
}

@media (max-width: 991.98px) {
    .torneos-page .listado-filter-toolbar .listado-chip-row,
    .torneos-page .torneos-filter-grid {
        gap: .25rem !important;
        row-gap: .25rem;
        padding-right: .2rem;
    }

    .torneos-page .torneos-filter-grid .torneos-filter-separator {
        height: 2.9rem;
        min-width: .42rem;
        margin: 0 .06rem;
    }
}

@media (max-width: 575.98px) {
    .torneos-page .torneos-filter-grid {
        justify-content: center !important;
        gap: .25rem !important;
        row-gap: .25rem;
        padding-right: 0;
    }

    .torneos-page .torneos-filter-grid .torneos-filter-separator {
        display: inline-flex !important;
        height: 2.35rem;
        min-width: .38rem;
        margin: 0 .02rem;
        font-size: .95rem;
    }

    .torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn {
        min-width: 5.35rem;
        min-height: 2.35rem;
        padding-inline: .62rem !important;
    }

    .torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn .torneo-filter-label {
        display: none !important;
        margin-left: 0;
    }

    .torneos-page .torneos-filter-grid .e-btn.torneo-filter-btn {
        min-width: 2.9rem;
        padding-inline: .5rem !important;
    }
}
