Thunderbird can decrypt attachments, but not encrypt them, to encrypt files with openpgp it is necessary to use the Kleopatra program, and then attach them. I think it would be a useful function.
---I don't know what I did the first time that let me access the files, now they are encrypted as expected. sorry for the inconvenience