The 21-year-old took his tally to 13 goals in his last 15 games for his country with a superb left-footed volley early in the first-half, and then produced a brilliant shimmy between two Mexican defenders in second-half stoppage time to set up Jo for the second goal.
While Brazil progress to the semis, Mexico's hopes hang by a thread after two defeats as Japan, who lost 3-0 to Brazil in their opener, must beat Euro 2012 finalists Italy later on Wednesday to give them any hope of reaching the last four.
Brazil play Italy in their final group match in Salvador on Saturday.
'Look' how the Sheena Bora case has taken a toll on Indrani Mukerjea
Photos: Katrina Kaif, Parineeti Chopra, Shilpa Shetty's movie outing in Juhu
Birthday special: 14 Bollywood actors who made it big on TV
Photos: Vaani Kapoor, Poonam Pandey, Sana Khan at fashion event
Photos: Rishi Kapoor, wife Neetu, daughter Riddhima at book launch