.custom-filter-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    background: #fff;
    padding: 15px;
}

.filter-main-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px 0;
}

.filter-divider {
    border: 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.filter-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Botón del desplegable */
.filter-trigger {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}

.filter-trigger:hover {
    background-color: #fcfcfc;
    border-color: #ccc;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
}

.arrow-icon {
    font-size: 0.65rem;
    color: #111;
    transition: transform 0.3s ease;
}

/* Estado abierto */
.filter-group.active .arrow-icon {
    transform: rotate(-180deg);
}

/* Contenido del Desplegable */
.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.filter-group.active .filter-content {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Rejilla de términos internos */
.filter-items-grid {
    padding: 12px 10px;
    display: flex;
    flex-wrap: wrap; /* Permitir que los items fluyan horizontalmente en píldoras */
    gap: 8px;
    align-items: flex-start;
}

/* Píldoras de marcas/términos (Casio, Curren...) */
.filter-pill-item {
    display: inline-block;
    padding: 6px 14px;
    background-color: #f7f8fa;
    border: 1px solid #f0f1f4;
    border-radius: 15px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-pill-item:hover {
    background-color: #e2e8f0;
    color: #1a202c;
    border-color: #cbd5e1;
}
