Blas Perez and Roman Torres netted the goals for Panama, who now face the United States in the final after a result which will heap pressure on Jose Manuel de la Torre as Mexico coach.
The US reached the final with a comfortable 3-1 win over Honduras.