Planning a trip to Lisbon in July 2012. We will have a stopover in Madrid Barajas for 5 hours. Do we go through customs in Madrid and if so how much time is needed between flights in order to do this without being frantic? Do we need to claim our luggage . Flying to Madrid via Delta and to Lisbon via Air Europa they are both Sky miles partners if that make a difference.