Brazil fielded a young squad of Under-23 players in preparation for the upcoming Olympics in London.
Arlington, Texas: First-half goals by Giovani dos Santos and Javier Hernandez gave Mexico a 2-0 win over Brazil in a friendly in Dallas on Sunday.
It was the second straight game in which Mexico's top two forwards each scored, indicating the Mexican attack is in top form at the right time.
"This game served us well in our plans for qualifying," Mexico coach Jose Manuel de la Torre said through a translator. "We killed two birds with one stone in beating a strong opponent and preparing ourselves for qualifying."
Mexico, preparing for next weekend's start to the third phase of CONCACAF World Cup qualifiers, made it three wins out of three in warm-up matches in the United States, having also beaten Wales and Bosnia.
The defeat was Brazil's first in 11 matches after they won their two previous friendlies on tour against Denmark and the US.
Dos Santos put the Mexicans in front in the 22nd minute at Cowboys Stadium with a looping shot from the left that surprised goalkeeper Rafael and went in the top far corner. The Tottenham forward chipped the ball from the left side of the box into the upper corner of the right side, beating goalkeeper Rafael Cabral, who was making his second start for Brazil.
Brazil coach Mano Menezes dismissed the shot as a "fortunate" strike. "Giovani was crossing it into the box and scored," Menezes said.
Ten minutes later, Dos Santos again was in the middle of the action. Brazilian defender Juan Jesus took him down inside the box, a clumsy foul because Dos Santos' back was to the goal. On the penalty kick, Cabral guessed correctly, but Hernandez's strike found the net.
Brazil, whose striker Leandro Damiao had a early goal disallowed in a controversial offside decision, had the lion's share of possession but Mexico the better finishing.
"It was a good victory and now comes the best, which is the qualifiers," Mexico midfielder Andres Guardado told broadcasters Televisa.
Brazil fielded a young squad of Under-23 players in preparation for the upcoming Olympics in London. This particular squad was in just their third game together and found themselves trailing for the first time.
"In the first half, we needed more calm," Menezes said. "When it was 0-0, we needed to slow down and show more patience. But this is normal with young players."
Mexico meet Guyana on Friday and El Salvador four days later in the third phase qualifiers that end in October.
Brazil, who will host the 2014 finals, meet arch-rivals Argentina in a friendly in New Jersey on Saturday.
Argentina went top of the South American qualifying group on Saturday with a 4-0 victory over Ecuador in Buenos Aires and have a bye next weekend.