XML 85 R76.htm IDEA: XBRL DOCUMENT
v3.24.3

Other financial assets - Restrictions (Details) - COP ($) $ in Millions | 6 Months Ended | 12 Months Ended
--- | --- | ---
Jun. 30, 2024 | Dec. 31, 2023
Other financial assets |  |
Restricted funds | $ 76,801 | $ 68,069
Isa Interchile |  |
Other financial assets |  |
Restricted funds | $ 34,421 | $ 26,666

X
- Definition Line item represents the other financial assets. + References No definition available. + Details
Name: | ec_DisclosureOfOtherFinancialAssetsLineItems
Namespace Prefix: | ec_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of long-term restricted funds having an specific destination to investment projects. + References No definition available. + Details
Name: | ec_LongTermRestrictedFundsHavingSpecificDestinationToInvestmentProjects
Namespace Prefix: | ec_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | ifrs-full_SignificantInvestmentsInSubsidiariesAxis=ec_IsaInterchileMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |