Employee Benefits - Summary of Amounts Associated With PEMEX's Labor Obligations (Detail) - MXN ($) $ in Thousands |
Dec. 31, 2025 |
Dec. 31, 2024 |
Dec. 31, 2023 |
|---|---|---|---|
| Disclosure of defined benefit plans [line items] | |||
| Total liability for defined benefits recognized in the consolidated statement of financial position at the end of the year | $ 1,470,059,563 | $ 1,232,589,895 | |
| Liability for defined benefits at retirement and post-employment at the end of the year | |||
| Disclosure of defined benefit plans [line items] | |||
| Total liability for defined benefits recognized in the consolidated statement of financial position at the end of the year | 1,457,536,764 | 1,220,486,347 | $ 1,360,042,062 |
| Liability for other long-term benefits | |||
| Disclosure of defined benefit plans [line items] | |||
| Total liability for defined benefits recognized in the consolidated statement of financial position at the end of the year | $ 12,522,799 | $ 12,103,548 | $ 12,417,151 |