XML 199 R183.htm IDEA: XBRL DOCUMENT
v3.25.1

Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Parenthetical) (Detail) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2024 | Dec. 31, 2023 | Dec. 31, 2022
Disclosure of key management personnel compensation [abstract] |  |  |
Social Security contributions | $ 6 | $ 2 | $ 3

X
- Definition A class of employee benefits expense that represents social security contributions. [Refer: Employee benefits expense] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 19 -IssueDate 2024-01-01 -Paragraph 9 -URI https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2024-en-r&anchor=para_9&doctype=Standard -URIDate 2024-03-27 + Details
Name: | ifrs-full_SocialSecurityContributions
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Disclosure of key management personnel compensation. + References No definition available. + Details
Name: | ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration