Thank you very much for your cooperation. Although all the products appeared associated to their categories, for some unknown reason, I had to update all of them so that the changes were saved and it worked. What I did exactly was move them to the trash and then restore them. I appreciate you.