There are only two airports in Europe that serve PTY, and no others in Panama as far as I can tell, and both of these routes arrived early in the evening, so this is an unlikely route.
PTY is the busiest airport in Central America. So the most logical assumption is that if indeed the preceding leg was European, that they flew on a connecting flight through either the US (is this possible in the race?), Mexico or South America (though I'd imagine this would be the long way round).