You do not need to invest in the Spanish economy, but you must be able to show evidence of self-sufficiency to be eligible for the visa. The minimum amount is 400% of Spain's Public Multiple Effects Income Indicator (IPREM). This is about 27,792.96 euros.