diff --git a/index.html b/index.html index 7c2862c..3cc51a9 100644 --- a/index.html +++ b/index.html @@ -231,10 +231,12 @@ } catch(e) { return dateStr; } } - // Función que se dispara al pulsar "Agendar Visita Ahora" function startBooking() { - // Aquí abriremos la ventana modal o el siguiente paso para elegir el día. - alert("¡Perfecto! Aquí abriremos el calendario para que el cliente elija el día. Seguimos cuando me confirmes que el diseño te gusta."); + const urlParams = new URLSearchParams(window.location.search); + const token = urlParams.get('token'); + const serviceId = urlParams.get('service'); + // Redirige a la nueva web pasándole los datos + window.location.href = `cita.html?token=${token}&service=${serviceId}`; }