FC Porto twice rallied before Varela's second goal clinched a 3-2 win over Braga in the Portuguese league on Saturday.
Porto stayed top of the league with its fourth straight victory. Varela's 70th-minute winner kept it four points clear of Guimaraes and five above Braga.
Luis Aguiar opened for the visitors with a 30-meter effort in the 16th, then Varela headed home a pass from Hulk in the 33rd to equalize.
After Lima's thunderous 61st-minute strike, Hulk drew Porto even again two minutes later with his league-leading fourth goal.
But Varela used some neat touches to score his second soon after and clinch victory.
Also, Olhanense maintained its unbeaten record with a 0-0 draw at Sporting Lisbon.