If you are a tax resident in Paraguay (or any other place), and have certificates of residency, you do not need to justify to Spain (or any other country) how you earned your money in that period. Unless the authorities can contest your residency (which would be hard if you have a certificate...