/* ==========================================================
   LOMISA · NEWS FILTERS
   Filtros del archivo de publicaciones.
   Tipografía vinculada a las variables generales de style.css.
   El margen lateral corresponde al bloque exterior.
   ========================================================== */

/* 01 · CONTENEDOR */

.lm-news-filters {
    width: 100%;
    margin: 0 0 52px !important;
    padding: 0 !important;
}

.lm-news-filters > .wp-block-group__inner-container,
.lm-news-filters__list,
.lm-news-filters__list > .wp-block-group__inner-container {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 02 · DISTRIBUCIÓN */

.lm-news-filters .wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.lm-news-filters .wp-block-button {
    margin: 0 !important;
    width: auto !important;
}

/* 03 · BOTONES */

.lm-news-filters .wp-block-button__link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: auto !important;
    min-height: 42px;
    padding: 11px 22px !important;

    background: #FFFFFF !important;
    color: #002E60 !important;
    border: 1px solid #D5E0E9 !important;
    border-radius: 100px !important;

    font-size: var(--lm-font-link) !important;
    font-weight: var(--lm-weight-regular) !important;
    line-height: var(--lm-line-link) !important;

    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

/* 04 · INTERACCIÓN */

.lm-news-filters .wp-block-button__link:hover {
    background: #EFFAFF !important;
    border-color: var(--lm-color-accent) !important;
    color: #002E60 !important;
}

/* 05 · FILTRO ACTIVO */

.lm-news-filters .wp-block-button.is-active .wp-block-button__link {
    background: #002E60 !important;
    border-color: #002E60 !important;
    color: #FFFFFF !important;
}

.lm-news-filters .wp-block-button.is-active .wp-block-button__link:hover {
    background: #004782 !important;
    border-color: #004782 !important;
}

/* 06 · RESPONSIVE */

@media (max-width: 767px) {
    .lm-news-filters {
        margin-bottom: 36px !important;
    }

    .lm-news-filters .wp-block-buttons {
        gap: 9px !important;
    }

    .lm-news-filters .wp-block-button__link {
        min-height: 38px;
        padding: 9px 16px !important;
    }
}
