You need an embassy visa for Spain if you have an Ecuadorian passport
Visa options for Spain
Visitor visa
Travellers need a visa to visit Spain for Business or Tourism. A paper or embassy visa is the only visa available for travellers visiting Spain. The visa is typically a stamp or sticker added to the passport. Travellers must obtain this visa from a local embassy, consulate or visa center before travelling.