I was in PTY yesterday and by far one of the easiest airports to connect in. I wouldn't hesitate to schedule either connection. The gates couldn't be more than a 15 minute walk from each other and there usually is a security check at the gate for flights to the U.S. but really no big deal.