The reality is they are all interconnected, and in some senses, interdependent, with local/state/federal government in Mexico.
They work together, and are intertwined, but they are not the exact same. it's not like they are all friends. But, they are connected, and friendly sometimes, and other times, not. In their time, the Beltryan-Leyva's/Sinaloa paid the top law enforcement official in the COUNTRY a million or so a month, during the height of the drug wars, 2006/2012. (he has been prosecuted by the US for his conduct, in 2023)
a lot of it is just class based.
The rancheros in Sinaloa vs. the elites in Mexico City,
the rancheros/farmers do the trafficking, the politicos take the bribes, and assist in political/state sponsored ways, like eliminating rivals, leaking info about DEA investigations,
but the organized crime groups have grown very very powerful in the last 20 years, more money plus less organization sometimes, with the effects of the kingpin strategy destabilizing large parts of the country. Also, the profits from cocaine fueled corruption, bribery, and private armed groups in the early 2000's. Then Felipe Calderon declared a war on drugs, but his cabinet (see above) in part, was financed by, and backing the Sinaloa Cartel, as they tried to take various plazas, Tijuana, NL, Juarez, at the FEDERAL level, while state officials were often bought by the local players.
they fear them more than they did. It's an uneasy arrangement. Chapo Guzman said "the government does their thing and I do mine", a simple quote which explains it more than a whole essay.
the whole Camarena thing is not simple or linear either, and it's not just the CIA killed him.