You need an embassy visa for Central African Republic if you have a Spanish passport
Visa options for Central African Republic
Visitor visa
Travelers need a visa to visit Central African Republic for Business or Tourism. A paper or embassy visa is the only visa available for travelers visiting Central African Republic. The visa is typically a stamp or sticker added to the passport. Travelers must obtain this visa from a local embassy, consulate or visa center before traveling.