/* ============================= */
/* CONTENEDOR PRINCIPAL */
/* ============================= */
.contenedor-filtros-global {
    width: 100%;
}

.filtros-selects {
    width: 100%;
}

.filtros-selects > div {
    margin-bottom: 12px;
}

.filtros-selects label {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

/* ============================= */
/* SELECTS */
/* ============================= */
.filtro-select {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #F5F5F5;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.filtro-select:hover {
    border-color: #999;
}

.filtro-select:focus {
    outline: none;
    border-color: #ca3955;
    box-shadow: 0 0 0 1px #ca3955;
}

.filtro-select option:disabled {
    color: #999;
    font-style: italic;
}

/* ============================= */
/* CHIPS ACTIVOS */
/* ============================= */
.filtros-activos-container {
    width: 100%;
    margin-bottom: 15px;
    min-height: 32px;
    display: flex; 
    flex-wrap: wrap; 
}

.filtro-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    font-size: 13px;
    border-radius: 20px;
    background: #eee;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden; 
}

.filtro-chip strong {
    font-weight: 700;
    text-transform: capitalize;
    margin-right: 4px;
    flex-shrink: 0; 
}

.filtro-chip .term-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1; 
}

.chip-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    transition: color 0.2s ease;
    user-select: none;
    flex-shrink: 0;      
    display: inline-block;
    min-width: 10px; 
}

.chip-remove:hover {
    color: black;
}

/* ============================= */
/* BOTONES (CON ESPECIFICIDAD) */
/* ============================= */
.contenedor-filtros-global .botones-filtros {
    width: 100% ;
    display: flex ;
    gap: 10px ;
    margin-top: 18px ;
    flex-wrap: wrap ;
}

.contenedor-filtros-global .botones-filtros .btn-aplicar-filtros,
.contenedor-filtros-global .botones-filtros .btn-limpiar-filtros {
    flex: 1 1 140px ;
    height: 38px ;
    min-width: 0 ;
    font-size: 14px ;
    font-weight: 700 ;
    cursor: pointer ;
    border-radius: 0 10px 10px 10px ;
    transition: all 0.2s ease ;
    display: inline-flex ;
    align-items: center ;
    justify-content: center ;
    text-decoration: none ;
    padding: 0 15px ;
    line-height: 1 ;
}

.contenedor-filtros-global .botones-filtros .btn-aplicar-filtros {
    border: none ;
    background-color: rgba(202, 57, 85, 0.6) ;
    color: white ;
}

.contenedor-filtros-global .botones-filtros .btn-aplicar-filtros:hover {
    background-color: rgba(202, 57, 85, 1) ;
}

.contenedor-filtros-global .botones-filtros .btn-limpiar-filtros {
    border: 2px dashed rgba(202, 57, 85, 0.6) ;
    background-color: white ;
    color: rgba(202, 57, 85, 0.6) ;
}

.contenedor-filtros-global .botones-filtros .btn-limpiar-filtros:hover {
    border-color: rgba(202, 57, 85, 1) ;
    color: rgba(202, 57, 85, 1) ;
    background-color: white ;
}

.contenedor-filtros-global .botones-filtros .btn-aplicar-filtros:active,
.contenedor-filtros-global .botones-filtros .btn-limpiar-filtros:active {
    transform: scale(0.97) ;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 1024px) and (min-width: 768px) {
    .filtros-selects {
        display: grid ;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px 20px;
    }
    .botones-filtros {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
    }
    .btn-aplicar-filtros,
    .btn-limpiar-filtros {
        flex: unset;
        width: 140px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .filtros-selects {
        display: block;
    }
    .filtro-select {
        height: 44px;
        font-size: 16px;
    }
    .botones-filtros {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 12px;
    }
    .btn-aplicar-filtros,
    .btn-limpiar-filtros {
        flex: unset;
        width: 100%;
        height: 40px;
        font-size: 16px;
    }
}