Modular at Gestair
You are correct that the Spanish CAA will not recognise UK theory. Gestair also operate from Portugal and use the Portugeuse CAA, who will accept UK TK. So no problems getting your JAA CPL/IR with Gestair with UK TK.
All will change, hopefully, in Spain next year when EASA finally take over FCL from JAA