/* --- Contenedor de búsqueda --- */
.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4rem;
    background-color: #ffffff;
    border-radius: 25px;
    padding: 5px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-icon {
    color: rgb(20, 19, 85);
    font-size: 24px;
    user-select: none;
}

#buscador {
    padding: 10px 5px;
    border: none;
    background: transparent;
    font-size: 1rem;
    width: 300px;
    outline: none;
    box-shadow: none;
}

#buscador:focus {
    box-shadow: none;
}

#btn-limpiar {
    padding: 8px;
    background-color: transparent;
    color: rgb(20, 19, 85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    box-shadow: none;
}

#btn-limpiar:hover {
    background-color: #f1f3f4;
    transform: none;
    box-shadow: none;
}

/* --- Categorías --- */
#category {
    text-align: left;
    background-color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 18px auto;
    max-width: 1100px;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 10px 10px;
}

/* Botones de categoría como checkboxes */
#category input[type="checkbox"] {
    display: none;
    /* Ocultar el checkbox nativo */
}

.checkbox-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #222;
    border: 1px solid #d6dce3;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    user-select: none;
}

.checkbox-btn:hover {
    background-color: #e7f3ff;
    border-color: #80bdff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.15);
}

/* Estilo cuando el checkbox está marcado */
#category input[type="checkbox"]:checked+.checkbox-btn {
    color: white;
    background-color: #007bff;
    border-color: #0056b3;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25);
}

#category input[type="checkbox"]:checked+.checkbox-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
}