<script type="text/javascript">/*** Muestra una notificación temporal* @param {string} mensaje Mensaje a mostrar* @param {string} tipo Tipo de notificación (success, error, info)*/function showNotification(message, type = "info"){// Crear el elemento de notificaciónconst notification = document.createElement("div");notification.className = `notification notification-${type}`;notification.innerHTML = `<span>${message}</span><button type="button" class="notification-close" onclick="this.parentNode.remove()"><i class="fas fa-times"></i></button>`;// Añadir la notificación al documentodocument.body.appendChild(notification);// Mostrar la notificaciónsetTimeout(() => {notification.classList.add("show");}, 10);// Ocultar y eliminar la notificación después de un tiemposetTimeout(() => {if (notification.parentNode) {notification.classList.remove('show');setTimeout(() => {if (notification.parentNode) {notification.remove();}}, 300);}}, 5000);}</script>