It's offside because there was only one defender between the Mexican player and the goal. If the goalie had stayed in the net next to the defender, it would've counted.
If the attacker passes the ball to another attacker, and there is only one defender between the attacker receiving the ball and the goal, then it's offside.