This, apparently, is quite a common problem for travellers. The solution is to get yourself a "gluten-free restaurant card", in Spanish, to show to the waiter in the restaurant you want to dine in.
Here's a link to a website giving information on how to get one (and they're free).