Santiago Gimenez came off the bench to score a stellar late goal as Mexico beat Panama 1-0 to win the Gold Cup.