/**
 * Nexo Cinema — radios de Greenshift con aspecto de etiquetas.
 *
 * Activación: clase nexo-filtros-funciones en el contenedor del componente.
 * Conserva los radios nativos y su navegación con teclado.
 * Los estados usan Color-Month; no se modifica la lógica del filtrado.
 */
.nexo-filtros-funciones .gspb-filterpanel {
    width: 100%;
}

.nexo-filtros-funciones .gspb-radio-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.nexo-filtros-funciones .gspb-radio__item {
    margin: 0;
    padding: 0;
}

/* Supera el selector con ID de Greenshift solo en la distribución y
 * el espacio reservado al círculo. El resto conserva sus estados.
 * El contenedor global de Blocksy permite reutilizarlo sin IDs de bloques. */
#main-container .nexo-filtros-funciones .gspb-radio__style {
    display: inline-flex;
    padding: 8px 12px;
}

.nexo-filtros-funciones .gspb-radio__style {
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-height: 40px;
    margin: 0;
    border: 1px solid var(--theme-palette-color-1, #EB4242);
    border-radius: 0;
    background: transparent;
    color: var(--theme-palette-color-3, #ffffff);
    font: inherit;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

/* El control sigue accesible y enfocable; solo cambia su representación. */
.nexo-filtros-funciones .gspb-radio__style input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
}

.nexo-filtros-funciones .gspb-radio__style .gspb-radio__checkmark {
    display: none;
}

.nexo-filtros-funciones .gspb-radio__style:hover {
    color: var(--theme-palette-color-1, #EB4242);
}

.nexo-filtros-funciones .gspb-radio__style:has(input:checked) {
    background: var(--theme-palette-color-1, #EB4242);
    color: var(--theme-palette-color-4, #000000);
}

.nexo-filtros-funciones .gspb-radio__style:has(input:focus-visible) {
    outline: 2px solid var(--theme-palette-color-1, #EB4242);
    outline-offset: 3px;
}

/* Los recuentos se usan internamente, pero no forman parte de la etiqueta. */
.nexo-filtros-funciones .gs-filters-counter {
    display: none;
}

@media (max-width: 689.98px) {
    .nexo-filtros-funciones .gspb-radio-box {
        justify-content: flex-start;
    }
}

/*
 * Centra únicamente la paginación del listado de Funciones.
 * La envoltura permanece al filtrar; el botón puede regenerarse por AJAX.
 */
#main-container .nexo-funciones-listado > .gspb-filter__ajx-pagination {
    align-self: stretch;
    width: 100%;
    text-align: center;
}

#main-container .nexo-funciones-listado > .gspb-filter__ajx-pagination > .gspb-filter__ajx-inner {
    justify-content: center;
    text-align: center;
}

#main-container .nexo-funciones-listado > .gspb-filter__ajx-pagination .gspb-filter__load_moreajx_btn {
    display: inline-flex;
    margin-inline: auto;
}

