
<script>
const btnMenuMobile = document.querySelector('.btn-menu-mobile');
const menuMobile = btnMenuMobile.nextElementSibling;
// Ocultar el menú de manera inicial
menuMobile.style.height = "0";
btnMenuMobile.addEventListener('click', function () {
if (menuMobile.style.height === "0px") {
menuMobile.style.height = menuMobile.scrollHeight + "px";
} else {
menuMobile.style.height = "0";
}
});
</script>