jQuery(document).ready(function($) {
$('a[href^="#"]').on('click', function(e) {
e.preventDefault();
var target = $($(this).attr('href'));
if (target.length) {
$('html, body').animate({
scrollTop: target.offset().top - 300 // Ajusta según la altura del header
}, 500); // Velocidad de la animación en milisegundos
}
});
});