schedule Lun–Vie 7am–4:30pm · Sáb 8am–1pm y Feriados
Reserva tu Espacio

Agendar Cita

Asistente rápido de citas y laboratorio. Completa los pasos y confirma al instante vía WhatsApp.

Servicio
Detalles
Confirmación

Paso 1: Elige el tipo de servicio

Selecciona una de las siguientes opciones para iniciar tu reserva.

science

Laboratorio

Exámenes de sangre, perfiles completos y resultados en 24h.

Elegir arrow_forward
stethoscope

Consulta Médica

Cardiología, Ginecología, Pediatría y más con especialistas.

Elegir arrow_forward
home_health

Toma a Domicilio

Tomamos tus muestras en tu casa u oficina cómodamente.

Elegir arrow_forward
¡Hola! Soy Venemebot 🤖
done'; label.classList.remove('text-primary', 'font-bold', 'text-text-muted'); label.classList.add('text-emerald-700', 'font-semibold'); } else if (i === currentStep) { targetIndicator.classList.remove('bg-surface-container-high', 'border-border-subtle', 'text-text-muted', 'bg-emerald-600', 'border-emerald-600'); targetIndicator.classList.add('bg-primary', 'text-white', 'border-primary'); targetIndicator.innerHTML = i; label.classList.remove('text-emerald-700', 'text-text-muted'); label.classList.add('text-primary', 'font-bold'); } else { targetIndicator.classList.remove('bg-primary', 'text-white', 'border-primary', 'bg-emerald-600', 'border-emerald-600'); targetIndicator.classList.add('bg-surface-container-high', 'border-border-subtle', 'text-text-muted'); targetIndicator.innerHTML = i; label.classList.remove('text-primary', 'font-bold', 'text-emerald-700'); label.classList.add('text-text-muted', 'font-normal'); } } } function generateSummaryReceipt() { var summaryEl = document.getElementById('booking-summary-receipt'); if (!summaryEl) return; var serviceName = ''; var detailsHtml = ''; var dateVal = ''; var timeVal = ''; if (selectedService === 'laboratorio') { serviceName = '🧪 Exámenes de Laboratorio'; dateVal = document.getElementById('cita-fecha-lab').value; timeVal = document.getElementById('cita-hora-lab').value; var selectedExams = []; document.querySelectorAll('input[name="cita_exams"]:checked').forEach(function(cb) { selectedExams.push(cb.value); }); var customEx = document.getElementById('cita-custom-exams').value.trim(); if (customEx) { selectedExams.push('Otros: ' + customEx); } if (selectedExams.length > 0) { detailsHtml = ''; } else { detailsHtml = '

Ningún examen seleccionado (se definirá con soporte).

'; } } else if (selectedService === 'consulta') { serviceName = '🩺 Consulta Médica Especializada'; var specialty = document.getElementById('cita-servicio-med').value; dateVal = document.getElementById('cita-fecha-med').value; timeVal = document.getElementById('cita-hora-med').value; detailsHtml = '

Especialidad: ' + specialty + '

'; } else if (selectedService === 'domicilio') { serviceName = '🚗 Toma de Muestras a Domicilio'; var zone = document.getElementById('cita-zona-dom').value.trim(); dateVal = document.getElementById('cita-fecha-dom').value; timeVal = document.getElementById('cita-hora-dom').value; detailsHtml = '

Zona de Toma: ' + zone + '

'; } var dateText = 'No especificada'; if (dateVal) { var parts = dateVal.split('-'); if (parts.length === 3) { dateText = parts[2] + '/' + parts[1] + '/' + parts[0]; } else { dateText = dateVal; } } summaryEl.innerHTML = [ '
', '
', 'Servicio:', '' + serviceName + '', '
', '
', 'Detalles:', detailsHtml, '
', '
', 'Fecha:', '' + dateText + '', '
', '
', 'Horario:', '' + (timeVal || 'Cualquiera') + '', '
', '
' ].join(''); } window.handleBookingSubmit = function(e) { e.preventDefault(); var nombre = document.getElementById('cita-nombre').value.trim(); var cedula = document.getElementById('cita-cedula').value.trim(); var telefono = document.getElementById('cita-telefono').value.trim(); var comentarios = document.getElementById('cita-comentarios').value.trim(); if (!nombre || !cedula || !telefono) { alert('Por favor, rellena tu Nombre, Cédula y Teléfono de contacto.'); return; } var detailsStr = ''; var dateVal = ''; var timeVal = ''; if (selectedService === 'laboratorio') { dateVal = document.getElementById('cita-fecha-lab').value; timeVal = document.getElementById('cita-hora-lab').value; var selectedExams = []; document.querySelectorAll('input[name="cita_exams"]:checked').forEach(function(cb) { selectedExams.push(cb.value); }); var customEx = document.getElementById('cita-custom-exams').value.trim(); if (customEx) selectedExams.push(customEx); detailsStr = selectedExams.join(', '); } else if (selectedService === 'consulta') { var specialty = document.getElementById('cita-servicio-med').value; dateVal = document.getElementById('cita-fecha-med').value; timeVal = document.getElementById('cita-hora-med').value; detailsStr = 'Especialidad: ' + specialty; } else if (selectedService === 'domicilio') { var zone = document.getElementById('cita-zona-dom').value.trim(); dateVal = document.getElementById('cita-fecha-dom').value; timeVal = document.getElementById('cita-hora-dom').value; detailsStr = 'Zona: ' + zone; } // Save submission via VenemedicalSupabase Client if (window.VenemedicalSupabase) { window.VenemedicalSupabase.saveAppointment({ nombre: nombre, cedula: cedula, telefono: telefono, servicio: selectedService, detalles: detailsStr, fecha: dateVal, horario: timeVal, comentarios: comentarios }); } var message = '¡Hola Venemebot! 🤖 Me gustaría solicitar una cita.\n\n'; message += '*Datos del Paciente:*\n'; message += '- Nombre: ' + nombre + '\n'; message += '- Cédula: ' + cedula + '\n'; message += '- Teléfono: ' + telefono + '\n\n'; message += '*Detalles de la Solicitud:*\n'; if (selectedService === 'laboratorio') { message += '- Servicio: Laboratorio Clínico 🧪\n'; message += '- Fecha: ' + dateVal + '\n'; message += '- Horario: ' + timeVal + '\n'; if (detailsStr) message += '- Exámenes: ' + detailsStr + '\n'; } else if (selectedService === 'consulta') { message += '- Servicio: Consulta Especializada 🩺\n'; message += '- ' + detailsStr + '\n'; message += '- Fecha: ' + dateVal + '\n'; message += '- Horario: ' + timeVal + '\n'; } else if (selectedService === 'domicilio') { message += '- Servicio: Toma a Domicilio 🚗\n'; message += '- ' + detailsStr + '\n'; message += '- Fecha: ' + dateVal + '\n'; message += '- Horario: ' + timeVal + '\n'; } if (comentarios) { message += '\n*Comentarios Adicionales:*\n' + comentarios + '\n'; } message += '\nPor favor, indíquenme precio y confirmación. ¡Muchas gracias!'; var encoded = encodeURIComponent(message); var waUrl = 'https://wa.me/584241288247?text=' + encoded; window.open(waUrl, '_blank'); }; // Autocompletar si viene del catálogo e inicializar fechas por defecto document.addEventListener('DOMContentLoaded', function() { // Establecer fecha por defecto (hoy, año 2026 y mes vigente) var today = new Date(); var dd = String(today.getDate()).padStart(2, '0'); var mm = String(today.getMonth() + 1).padStart(2, '0'); var yyyy = today.getFullYear(); var todayStr = yyyy + '-' + mm + '-' + dd; var dateIds = ['cita-fecha-lab', 'cita-fecha-med', 'cita-fecha-dom']; dateIds.forEach(function(id) { var el = document.getElementById(id); if (el) { el.value = todayStr; el.min = todayStr; // Evita seleccionar fechas pasadas } }); var params = new URLSearchParams(window.location.search); var examen = params.get('examen'); if (examen) { selectedService = 'laboratorio'; var activeCard = document.getElementById('card-laboratorio'); if (activeCard) { activeCard.classList.remove('border-border-subtle', 'bg-surface-pure'); activeCard.classList.add('border-primary', 'bg-primary/5', 'ring-2', 'ring-primary'); } document.getElementById('step2-lab-section').classList.remove('hidden'); var customExamsInput = document.getElementById('cita-custom-exams'); if (customExamsInput) { customExamsInput.value = examen; } goToStep(2); } });