This statement from the Spanish Foreign Ministry seems to hit the right note.
"Spain calls for de-escalation and moderation, and for action to be conducted in accordance with international law and the principles of the UN charter.
In this regard, Spain is prepared to offer its good offices to achieve a peaceful and negotiated solution to the current crisis.
Spain reiterates that it has not recognised the results of the 28 July 2024 elections and has always supported initiatives to achieve a democratic solution for Venezuela. It also reiterates that it has welcomed, and will continue to welcome, tens of thousands of Venezuelans who have had to leave their country for political reasons and that it is prepared to assist in the search for a democratic, negotiated, and peaceful solution for the country."