MEXICO CITY — Mexico is steeling itself for the increasing possibility that the United States will pull out of the North American Free Trade Agreement, envisioning how the Mexican economy would adapt without the deal that has guided relations between the neighbors for a quarter-century.

Since President Trump’s election victory, Mexico has put negotiations for new or updated trade deals with other countries on a fast track, seeking markets for its exports and new suppliers.

President Enrique Peña Nieto recently traveled to China to discuss trade, among other issues; Mexico is a member of the Trans-Pacific Partnership trade accord.

Already new suppliers are emerging. In December, Argentina is expected to deliver 30,000 tons of wheat, its first sale ever to Mexico. Crisp Chilean apples have begun to appear on Mexico’s supermarket shelves, next to piles of apples from Washington State.