What you need a is a single entry tourist visa. This visa is good for 60 days, extendable by another 30. My Spanish is terrible, but I believe this
************************************************************************
%20turista%20unica%20entrada.pdf
has the information you need.
The main website is at
*************************************************************
*****
-Información-Visados.html
Edit: I do not know if they issue visas to non-Spanish passport holders. If you are British, you may have to use another consulate?