A mortgage for your Spanish home
If you need to sell property in your home country to free up budget, do this in advance or at least ask an appraiser what the minimum sales price is.
If you are considering a loan, contact your bank in your home country in advance, or ask a Spanish bank what amount you would be allowed to borrow.
This will give you a clear picture, which can save you a lot of disappointments and illusions later on.