“Linda Y.”, this is the second case posted here when someone was just TRANSITING through a country and were turned around to their initial point of departure. I’m just curious of why you HAD to go through customs to transfer flights? Is that just a thing in Mexico? Here is some resources to help you plan your next trip:
Also, you have the right to file a complaint through the UN for a human rights violation. Mexico signed onto the “Universal Rights Declaration” and is obligated to adhere to it. Here is the information to make a complaint. If enough people complain to the UN, then the UN has to pay attention and can sanction that country.
Good luck on your future travels. Please keep us posted.