XML 137 R93.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Other financial assets - Restrictions (Details) - COP ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022
Other financial assets |  |
Restricted funds | $ 68,069 | $ 328,283
Isa Interchile |  |
Other financial assets |  |
Restricted funds | 26,666 | 289,964
Interligacao Eletrica Norte E Nordeste |  |
Other financial assets |  |
Restricted funds | 12,743 | 16,227
ISA |  |
Other financial assets |  |
Restricted funds | $ 11,547 | $ 8,714

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: |

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

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