Mexico's ruling party has lost seats in congress but may still gain a majority from its coalition with the small but growing Green Party that was everywhere during the campaign, according to official voting trends released late Sunday by the electoral institute.