@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,500;9..40,600;9..40,700&display=swap');

/* ── Filter options wrapper ── */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

/* ── Base button ── */
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    user-select: none;
}

/* Ripple shine on hover */
.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.18s;
}
.filter-btn:hover::before { opacity: 1; }

.filter-btn:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: rgba(37,99,235,0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}

.filter-btn:active {
    transform: translateY(0px) scale(0.97);
    box-shadow: none;
}

/* ── Active state ── */
.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.filter-btn.active:hover {
    box-shadow: 0 6px 18px rgba(37,99,235,0.45);
    transform: translateY(-2px);
}
.filter-btn.active::before { display: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .filter-options {
        gap: 6px;
    }
    .filter-btn {
        font-size: 0.75rem;
        padding: 7px 14px;
    }
}

/* ============================= */
/* BARRA DE FILTROS MODERNA */
/* ============================= */

.filtro-barra {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    flex-wrap: wrap;
    padding: 25px 30px;
    border-radius: 20px;
    background: #f8fafc;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    margin-bottom: 45px;
}

/* Grupo */
.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

/* Label */
.filtro-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

/* Wrapper select */
.filtro-select-wrapper {
    position: relative;
}

/* Select moderno */
.filtro-select {
    width: 100%;
    padding: 11px 16px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
}

/* Flecha custom */
.filtro-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #64748b;
    pointer-events: none;
}

.filtro-select:hover {
    border-color: #3b82f6;
}

.filtro-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 5px 18px rgba(37,99,235,0.15);
}

/* Acciones */
.filtro-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Botón aplicar */
.filtro-btn-aplicar {
    padding: 11px 24px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.filtro-btn-aplicar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}

/* Botón limpiar */
.filtro-btn-limpiar {
    padding: 11px 20px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filtro-btn-limpiar:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .filtro-barra {
        flex-direction: column;
        align-items: stretch;
    }

    .filtro-acciones {
        justify-content: flex-start;
    }
}