diff --git a/index2.html b/index2.html index 079fe45..49ef804 100644 --- a/index2.html +++ b/index2.html @@ -98,11 +98,17 @@ @@ -226,6 +232,21 @@ } // --- SISTEMA DE PESTAÑAS --- + function toggleHistory() { + const container = document.getElementById('historyServicesContainer'); + const chevron = document.getElementById('historyChevron'); + + if (container.classList.contains('hidden')) { + container.classList.remove('hidden'); + container.classList.add('fade-in'); + chevron.classList.add('rotate-180'); + } else { + container.classList.add('hidden'); + container.classList.remove('fade-in'); + chevron.classList.remove('rotate-180'); + } + } + function switchTab(tabName) { document.querySelectorAll('.tab-content').forEach(el => el.classList.remove('active')); document.querySelectorAll('.nav-btn').forEach(el => el.classList.remove('active'));