Did you get an envelope with your receipt? It can be used to mail the receipt in for a refund BUT it appears that you must get the receipt stamped in Madrid before you leave. The brochure shows one custom stamp office where you enter to go to gates on the A-B concourse, but there is a secret place on the C concourse after you have passed security. If you pass through this concourse, you might have time to get your stamp.
_________________________
sel