Hi, I'm from Europe (Finland) and have travelled quite much in Spain and spent a winter in Barcelona. I would travel to that country in any day and would feel safe. It is a macho culture, but it just means, that guys might approach you more actively, than in some other country/culture.
What comes to safety, if you are staying in Barcelona, Baleares or any of the sunny tourist places and beaches, I wouldn't worry about safety....of course you need to keep your senses and not take any stupid risks, like in everywhere and that goes for cis and t-women.
But these places live from tourism and I have a hard time of imaging, that they would act weird or hostile, because that means loosing money.
And my personal experiences from the Spanish people are only positive.