{"id":1377,"date":"2025-09-19T16:24:21","date_gmt":"2025-09-19T21:24:21","guid":{"rendered":"https:\/\/lottoalert.co\/enter-melate-numbers\/"},"modified":"2026-07-16T16:36:11","modified_gmt":"2026-07-16T21:36:11","slug":"register-melate-numbers","status":"publish","type":"page","link":"https:\/\/lottoalert.co\/en\/register-melate-numbers\/","title":{"rendered":"Register Melate Numbers"},"content":{"rendered":"[vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; top_padding=&#8221;0&#8243; constrain_group_1=&#8221;yes&#8221; bottom_padding=&#8221;0&#8243; left_padding_desktop=&#8221;0&#8243; constrain_group_2=&#8221;yes&#8221; right_padding_desktop=&#8221;0&#8243; top_margin=&#8221;0&#8243; constrain_group_7=&#8221;yes&#8221; bottom_margin=&#8221;0&#8243; left_margin=&#8221;0&#8243; constrain_group_8=&#8221;yes&#8221; right_margin=&#8221;0&#8243; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221; gradient_type=&#8221;default&#8221; shape_type=&#8221;&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221;][divider line_type=&#8221;No Line&#8221; custom_height=&#8221;30px&#8221;][\/vc_column][\/vc_row][vc_row type=&#8221;full_width_background&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; top_padding=&#8221;0&#8243; constrain_group_2=&#8221;yes&#8221; top_padding_tablet=&#8221;0&#8243; top_padding_phone=&#8221;0&#8243; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; zindex=&#8221;1&#8243; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221; gradient_type=&#8221;default&#8221; shape_type=&#8221;&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221;][vc_row_inner column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; text_align=&#8221;center&#8221; row_position=&#8221;default&#8221; row_position_tablet=&#8221;inherit&#8221; row_position_phone=&#8221;inherit&#8221; overflow=&#8221;visible&#8221; pointer_events=&#8221;all&#8221; css=&#8221;.vc_custom_1745353864908{margin-bottom: 0px !important;border-bottom-width: 0px !important;padding-bottom: 0px !important;}&#8221;][vc_column_inner column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; centered_text=&#8221;true&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; overflow=&#8221;visible&#8221; advanced_gradient_angle=&#8221;0&#8243; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; gradient_type=&#8221;default&#8221;][nectar_highlighted_text scribble_color=&#8221;#2ba3ff&#8221; style=&#8221;scribble&#8221; scribble_shape=&#8221;squiggle-underline&#8221; scribble_thickness=&#8221;thick&#8221; scribble_speed=&#8221;1.8s&#8221; scribble_easing=&#8221;ease_in_out&#8221; disable_mobile_animation=&#8221;true&#8221; custom_font_size=&#8221;3vw&#8221; font_line_height=&#8221;1.1em&#8221; text_direction=&#8221;default&#8221; font_size_tablet=&#8221;6vw&#8221;]\n<h2>Register Your Melate numbers<\/h2>\n[\/nectar_highlighted_text][\/vc_column_inner][\/vc_row_inner][vc_row_inner column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; top_padding=&#8221;1%&#8221; top_padding_phone=&#8221;20px&#8221; text_align=&#8221;center&#8221; row_position=&#8221;default&#8221; row_position_tablet=&#8221;inherit&#8221; row_position_phone=&#8221;inherit&#8221; overflow=&#8221;visible&#8221; pointer_events=&#8221;all&#8221;][vc_column_inner column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; left_margin=&#8221;27%&#8221; constrain_group_2=&#8221;yes&#8221; right_margin=&#8221;27%&#8221; left_margin_tablet=&#8221;5px&#8221; constrain_group_4=&#8221;yes&#8221; right_margin_tablet=&#8221;5px&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; centered_text=&#8221;true&#8221; desktop_text_alignment=&#8221;center&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; overflow=&#8221;visible&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; column_padding_type=&#8221;default&#8221; gradient_type=&#8221;default&#8221;][vc_column_text css=&#8221;&#8221; text_direction=&#8221;default&#8221;]Play at <a title=\"melaterevancha.com\" href=\"https:\/\/www.melaterevancha.com\/\" target=\"_blank\" rel=\"noopener\">melaterevancha.com<\/a>, save your numbers here,<br \/>\nand we&#8217;ll notify you if you win. Quick, easy, and secure.[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][\/vc_column][\/vc_row][vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; top_margin=&#8221;0&#8243; bottom_margin=&#8221;0&#8243; left_margin=&#8221;0&#8243; right_margin=&#8221;0&#8243; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221; gradient_type=&#8221;default&#8221; shape_type=&#8221;&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221;][divider line_type=&#8221;No Line&#8221; custom_height=&#8221;30px&#8221; custom_height_tablet=&#8221;30px&#8221;][\/vc_column][\/vc_row][vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;none&#8221; equal_height=&#8221;yes&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;column_reverse&#8221; column_direction_phone=&#8221;column_reverse&#8221; scene_position=&#8221;center&#8221; mouse_sensitivity=&#8221;10&#8243; layer_one_image=&#8221;769&#8243; right_padding_tablet=&#8221;0px&#8221; constrain_group_7=&#8221;yes&#8221; bottom_margin_phone=&#8221;0&#8243; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;hidden&#8221; class=&#8221;fila-max&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221; gradient_type=&#8221;default&#8221; shape_type=&#8221;&#8221;][vc_column right_padding_desktop=&#8221;35px&#8221; left_padding_tablet=&#8221;0px&#8221; constrain_group_103=&#8221;yes&#8221; right_padding_tablet=&#8221;0px&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; advanced_gradient_angle=&#8221;0&#8243; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.8&#8243; width=&#8221;5\/12&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; enable_animation=&#8221;true&#8221; animation=&#8221;fade-in&#8221; animation_easing=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; gradient_type=&#8221;default&#8221; column_padding_type=&#8221;advanced&#8221; offset=&#8221;vc_col-lg-5 vc_col-md-6&#8243;][vc_row_inner column_margin=&#8221;none&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; top_padding_tablet=&#8221;5%&#8221; right_padding_tablet=&#8221;0px&#8221; top_padding_phone=&#8221;8%&#8221; bottom_padding_phone=&#8221;0&#8243; left_padding_phone=&#8221;0&#8243; right_padding_phone=&#8221;0px&#8221; text_align=&#8221;left&#8221; row_position=&#8221;default&#8221; row_position_tablet=&#8221;inherit&#8221; row_position_phone=&#8221;inherit&#8221; overflow=&#8221;visible&#8221; pointer_events=&#8221;all&#8221;][vc_column_inner top_padding_desktop=&#8221;30px&#8221; constrain_group_100=&#8221;yes&#8221; bottom_padding_desktop=&#8221;30px&#8221; left_padding_desktop=&#8221;10px&#8221; constrain_group_101=&#8221;yes&#8221; right_padding_desktop=&#8221;10px&#8221; top_padding_tablet=&#8221;0&#8243; constrain_group_102=&#8221;yes&#8221; bottom_padding_tablet=&#8221;0&#8243; left_padding_tablet=&#8221;0px&#8221; constrain_group_103=&#8221;yes&#8221; right_padding_tablet=&#8221;0px&#8221; top_padding_phone=&#8221;0&#8243; constrain_group_104=&#8221;yes&#8221; bottom_padding_phone=&#8221;0&#8243; left_padding_phone=&#8221;0&#8243; constrain_group_105=&#8221;yes&#8221; right_padding_phone=&#8221;0&#8243; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;0px&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color=&#8221;#0b4e97&#8243; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;10px&#8221; column_link_target=&#8221;_self&#8221; overflow=&#8221;visible&#8221; el_class=&#8221;.bg-gradient&#8221; advanced_gradient_angle=&#8221;0&#8243; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;1px&#8221; column_border_color=&#8221;#b7b7b7&#8243; column_border_style=&#8221;solid&#8221; gradient_type=&#8221;default&#8221; column_padding_type=&#8221;advanced&#8221;][vc_column_text css=&#8221;&#8221; text_direction=&#8221;default&#8221;]\n<div class=\"melate-container\">\n    \n    <form id=\"melate-registro-usuario-form\" class=\"melate-form\">\n        <div class=\"form-group\">\n            <label for=\"melate-email\">Email<\/label>\n            <input type=\"email\" id=\"melate-email\" name=\"email\" required value=\"\" >\n                        <p class=\"description\">To save your history, consider registering or logging in.<\/p>\n                    <\/div>\n        \n        <div class=\"form-group\">\n            <label>Your 6 numbers (between 1 and 56)<\/label>\n            <div class=\"number-inputs\">\n                                    <input type=\"number\" name=\"numero1\" min=\"1\" max=\"56\" required value=\"\">\n                                    <input type=\"number\" name=\"numero2\" min=\"1\" max=\"56\" required value=\"\">\n                                    <input type=\"number\" name=\"numero3\" min=\"1\" max=\"56\" required value=\"\">\n                                    <input type=\"number\" name=\"numero4\" min=\"1\" max=\"56\" required value=\"\">\n                                    <input type=\"number\" name=\"numero5\" min=\"1\" max=\"56\" required value=\"\">\n                                    <input type=\"number\" name=\"numero6\" min=\"1\" max=\"56\" required value=\"\">\n                            <\/div>\n           \n        <\/div>\n\n        <!-- \u274c ELIMINADO: Campo de n\u00famero complementario\n             \u2705 Explicaci\u00f3n: El usuario solo elige 6 n\u00fameros\n             \u2705 El adicional es el 7\u00ba n\u00famero sorteado por el sistema\n             \u2705 Se verifica autom\u00e1ticamente al procesar resultados -->\n        \n        <div class=\"form-group\">\n            <label for=\"melate-fecha-sorteo\">Draw Date<\/label>\n            <input type=\"date\" id=\"melate-fecha-sorteo\" name=\"fecha_sorteo\" class=\"melate-date-input\" required>\n            <p class=\"description\">Select the drawing date to save your numbers.<\/p>\n        <\/div>\n        \n        <div class=\"form-actions\">\n            <button type=\"submit\" class=\"button button-primary\" style=\"margin-bottom: 15px;\">Save Numbers<\/button><br>\n        <\/div>\n    <\/form>\n    \n    <!-- Mover la clase melate-message al final del formulario -->\n    <div class=\"melate-message\" style=\"display: none; margin-top: 20px;\"><\/div>\n<\/div>\n\n<script>\njQuery(document).ready(function($) {\n  \/\/ Funci\u00f3n para validar si una fecha es d\u00eda de sorteo (domingos, mi\u00e9rcoles y viernes)\nfunction esDiaSorteo(fecha) {\n    var dia = fecha.getDay(); \/\/ 0=domingo, 1=lunes, ..., 6=s\u00e1bado\n    return dia === 0 || dia === 3 || dia === 5; \/\/ 0=domingo, 3=mi\u00e9rcoles, 5=viernes\n}\n    \n    \/\/ Funci\u00f3n para encontrar el pr\u00f3ximo d\u00eda de sorteo\nfunction proximoDiaSorteo(fecha) {\n    var nuevaFecha = new Date(fecha);\n    \n    \/\/ Obtener la fecha actual\n    var hoy = new Date();\n    \n    \/\/ Crear una nueva fecha que represente el inicio del d\u00eda de hoy\n    var inicioHoy = new Date(hoy);\n    inicioHoy.setHours(0, 0, 0, 0);\n    \n    \/\/ Si la fecha es anterior a hoy, usar hoy\n    if (nuevaFecha < inicioHoy) {\n        nuevaFecha = new Date(inicioHoy);\n    }\n    \n    \/\/ Si la fecha es hoy y hoy es d\u00eda de sorteo, usar hoy\n    var esHoy = nuevaFecha.getFullYear() === hoy.getFullYear() && \n                nuevaFecha.getMonth() === hoy.getMonth() && \n                nuevaFecha.getDate() === hoy.getDate();\n                \n    if (esHoy && esDiaSorteo(nuevaFecha)) {\n        return nuevaFecha;\n    }\n    \n    \/\/ Si no, buscar el pr\u00f3ximo d\u00eda de sorteo\n    while (!esDiaSorteo(nuevaFecha)) {\n        nuevaFecha.setDate(nuevaFecha.getDate() + 1);\n    }\n    return nuevaFecha;\n}\n    \n    \/\/ Inicializar con el pr\u00f3ximo d\u00eda de sorteo\n    var hoy = new Date();\n    var proximoSorteo = proximoDiaSorteo(hoy);\n    \n    \/\/ Formatear fecha YYYY-MM-DD para el input\n    var mes = String(proximoSorteo.getMonth() + 1).padStart(2, '0');\n    var dia = String(proximoSorteo.getDate()).padStart(2, '0');\n    $('#melate-fecha-sorteo').val(proximoSorteo.getFullYear() + '-' + mes + '-' + dia);\n    \n    \/\/ Validar al cambiar la fecha\n    $('#melate-fecha-sorteo').on('change', function() {\n        var fechaSeleccionada = new Date($(this).val());\n        \n        \/\/ Obtener la fecha actual sin horas\/minutos\/segundos\n        var hoy = new Date();\n        hoy.setHours(0, 0, 0, 0);\n        \n        \/\/ Si es anterior a hoy, no permitir\n        if (fechaSeleccionada < hoy) {\n            alert('No puedes seleccionar fechas anteriores a hoy.');\n            \n            \/\/ Restablecer al pr\u00f3ximo sorteo desde hoy\n            var nuevoSorteo = proximoDiaSorteo(new Date());\n            var nuevoMes = String(nuevoSorteo.getMonth() + 1).padStart(2, '0');\n            var nuevoDia = String(nuevoSorteo.getDate()).padStart(2, '0');\n            $(this).val(nuevoSorteo.getFullYear() + '-' + nuevoMes + '-' + nuevoDia);\n            return;\n        }\n        \n        \/\/ Siempre verificar si es d\u00eda de sorteo y ajustar si no lo es\n        if (!esDiaSorteo(fechaSeleccionada)) {\n            var nuevoSorteo = proximoDiaSorteo(fechaSeleccionada);\n            \n            \/\/ Formatear y establecer la fecha correcta\n            var nuevoMes = String(nuevoSorteo.getMonth() + 1).padStart(2, '0');\n            var nuevoDia = String(nuevoSorteo.getDate()).padStart(2, '0');\n            $(this).val(nuevoSorteo.getFullYear() + '-' + nuevoMes + '-' + nuevoDia);\n            \n            alert('Los sorteos de Melate solo se realizan los domingos, mi\u00e9rcoles y viernes. Se ha ajustado la fecha al pr\u00f3ximo sorteo.');\n        }\n    });\n    \n    \n   \/\/ Env\u00edo del formulario\n$('#melate-registro-usuario-form').on('submit', function(e) {\n    e.preventDefault();\n    \n    const $form = $(this);\n    const $message = $('.melate-message');\n    \n    \/\/ Recopilar los n\u00fameros\n    const numeros = [];\n    for (let i = 1; i <= 6; i++) {\n        numeros.push($form.find(`input[name=\"numero${i}\"]`).val());\n    }\n\n    const data = {\n        action: 'melate_registrar_numeros',\n        nonce: melate_data.nonce,\n        email: $form.find('input[name=\"email\"]').val(),\n        numeros: numeros.join(','),\n        \/\/ \u274c ELIMINADO: complementario\n        fecha_sorteo: $form.find('input[name=\"fecha_sorteo\"]').val()\n    };\n    \n    $form.find('button').prop('disabled', true).text('Processing...');\n    \n    \/\/ Limpiar cualquier mensaje previo para evitar duplicaciones\n    $message.hide();\n    \n    \/\/ Enviar la solicitud AJAX\n    $.post(melate_data.ajax_url, data, function(response) {\n        if (response.success) {\n            \/\/ Define la URL del historial\n            var historialUrl = 'https:\/\/lottoalert.co\/tu-historial-de-melate\/';\n            \n            \/\/ Ahora mostrar el mensaje de \u00e9xito con opciones adicionales\n                        \/\/ INVITADO: aviso por correo + invitacion a crear cuenta (sin historial ni cancelar)\n            $message.removeClass('error').addClass('success').html(\n                response.data.message +\n                '<div class=\"baloto-action-links\" style=\"margin-top: 15px;\">' +\n                '<p style=\"margin:0 0 12px;\">We\\'ll email you if you win.<\/p>' +\n                '<p style=\"margin:0 0 12px;\">\ud83d\udca1 Want to see your history and stats? Create your free account with this same email and your plays will appear automatically.<\/p>' +\n                '<a href=\"https:\/\/lottoalert.co\/en\/wp-login.php?action=register\" class=\"button button-primary\">Create free account<\/a>' +\n                '<\/div>'\n            ).fadeIn(300);\n                        \n            \/\/ A\u00f1adir manejador para la cancelaci\u00f3n inmediata\n            $(document).on('click', '#cancelar-ultimo-registro', function(e) {\n                e.preventDefault();\n                var ticketId = $(this).data('ticket');\n                \n                if (confirm('Are you sure you want to cancel the registration of these numbers?')) {\n                    \/\/ Llamada AJAX para cancelar el ticket\n                    $.post(melate_data.ajax_url, {\n                        action: 'melate_cancelar_ticket',\n                        nonce: melate_data.nonce,\n                        ticket_id: ticketId\n                    }, function(cancelResponse) {\n                        if (cancelResponse.success) {\n                            \/\/ Mostrar mensaje de \u00e9xito\n                            $message.html('Registration canceled successfully. You can enter new numbers.').fadeIn(300);\n                            \n                            \/\/ Reiniciar el formulario\n                            $form[0].reset();\n                            \n                            \/\/ Reinicializar fecha\n                            var nuevoSorteo = proximoDiaSorteo(new Date());\n                            var nuevoMes = String(nuevoSorteo.getMonth() + 1).padStart(2, '0');\n                            var nuevoDia = String(nuevoSorteo.getDate()).padStart(2, '0');\n                            $('#melate-fecha-sorteo').val(nuevoSorteo.getFullYear() + '-' + nuevoMes + '-' + nuevoDia);\n                            \n                            \/\/ Si el usuario est\u00e1 logueado, restaurar su email\n                            if ($form.find('input[name=\"email\"]').attr('readonly')) {\n                                $form.find('input[name=\"email\"]').val('');\n                            }\n                        } else {\n                            $message.removeClass('success').addClass('error').text(cancelResponse.data.message).fadeIn(300);\n                        }\n                    });\n                }\n            });\n            \n            \/\/ Reiniciar primero el formulario\n            $form[0].reset();\n            \n            \/\/ Reinicializar fecha\n            var nuevoSorteo = proximoDiaSorteo(new Date());\n            var nuevoMes = String(nuevoSorteo.getMonth() + 1).padStart(2, '0');\n            var nuevoDia = String(nuevoSorteo.getDate()).padStart(2, '0');\n            $('#melate-fecha-sorteo').val(nuevoSorteo.getFullYear() + '-' + nuevoMes + '-' + nuevoDia);\n            \n            \/\/ Si el usuario est\u00e1 logueado, restaurar su email\n            if ($form.find('input[name=\"email\"]').attr('readonly')) {\n                $form.find('input[name=\"email\"]').val('');\n            }\n            \n            \/\/ Hacer scroll hacia el mensaje\n            $('html, body').animate({\n                scrollTop: $message.offset().top - 100\n            }, 300);\n        } else {\n            \/\/ MEJORADO: Mostrar mensaje de error con dise\u00f1o destacado\n            $message.removeClass('success').addClass('error').html(\n                '<strong>Error:<\/strong> ' + response.data.message +\n                '<div class=\"error-suggestion\" style=\"margin-top: 10px;\">' +\n                '<p>Suggestions:<\/p>' +\n                '<ul>' +\n                '<li>Try different numbers<\/li>' +\n                '<li>Select another drawing date<\/li>' +\n                '<li>Check your history to see the numbers you already registered<\/li>' +\n                '<\/ul>' +\n                '<\/div>'\n            ).fadeIn(300);\n            \n            \/\/ Hacer scroll hacia el mensaje de error\n            $('html, body').animate({\n                scrollTop: $message.offset().top - 100\n            }, 300);\n        }\n    }).fail(function() {\n        $message.removeClass('success').addClass('error').text('Connection error. Please try again.').show();\n    }).always(function() {\n        $form.find('button').prop('disabled', false).text('Save Numbers');\n    });\n});\n    \n    \/\/ Resaltar los campos si venimos del generador\n    \/\/ \u274c ACTUALIZADO: Solo verificar 'numeros', no 'complementario'\n    });\n<\/script>\n\n[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][\/vc_column][vc_column bottom_padding_tablet=&#8221;0&#8243; left_padding_tablet=&#8221;7vw&#8221; constrain_group_103=&#8221;yes&#8221; right_padding_tablet=&#8221;7vw&#8221; bottom_padding_phone=&#8221;0&#8243; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;0px&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; background_image=&#8221;1068&#8243; background_image_position=&#8221;center center&#8221; background_image_stacking=&#8221;default&#8221; enable_bg_scale=&#8221;true&#8221; background_image_loading=&#8221;default&#8221; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;15px&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;relative&#8221; zindex=&#8221;-1&#8243; advanced_gradient_angle=&#8221;180&#8243; width=&#8221;7\/12&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; enable_animation=&#8221;true&#8221; animation=&#8221;fade-in&#8221; animation_easing=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;advanced&#8221; column_border_style=&#8221;solid&#8221; gradient_type=&#8221;advanced&#8221; advanced_gradient_display_type=&#8221;linear&#8221; column_padding_type=&#8221;advanced&#8221; offset=&#8221;vc_col-lg-7 vc_col-md-6&#8243;][divider line_type=&#8221;No Line&#8221; custom_height_tablet=&#8221;800px&#8221; custom_height_phone=&#8221;400px&#8221;][\/vc_column][\/vc_row][vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; top_margin=&#8221;0&#8243; bottom_margin=&#8221;0&#8243; left_margin=&#8221;0&#8243; right_margin=&#8221;0&#8243; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221; gradient_type=&#8221;default&#8221; shape_type=&#8221;&#8221;][vc_column column_padding=&#8221;no-extra-padding&#8221; column_padding_tablet=&#8221;inherit&#8221; column_padding_phone=&#8221;inherit&#8221; column_padding_position=&#8221;all&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221;][divider line_type=&#8221;No Line&#8221; custom_height=&#8221;50px&#8221; custom_height_tablet=&#8221;30px&#8221;][\/vc_column][\/vc_row][vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;none&#8221; column_direction=&#8221;reverse&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;column_reverse&#8221; scene_position=&#8221;center&#8221; bottom_margin=&#8221;50px&#8221; top_margin_phone=&#8221;0&#8243; bottom_margin_phone=&#8221;40px&#8221; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;hidden&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221; gradient_type=&#8221;default&#8221; shape_type=&#8221;&#8221;][vc_column left_padding_desktop=&#8221;35px&#8221; left_padding_tablet=&#8221;0&#8243; right_padding_tablet=&#8221;0&#8243; constrain_group_105=&#8221;yes&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;default&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;none&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;default&#8221; advanced_gradient_angle=&#8221;0&#8243; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.8&#8243; width=&#8221;5\/12&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_style=&#8221;solid&#8221; gradient_type=&#8221;default&#8221; column_padding_type=&#8221;advanced&#8221;][vc_row_inner column_margin=&#8221;none&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; top_padding_tablet=&#8221;5%&#8221; top_padding_phone=&#8221;3%&#8221; bottom_padding_phone=&#8221;0&#8243; left_padding_phone=&#8221;0&#8243; right_padding_phone=&#8221;0&#8243; text_align=&#8221;left&#8221; row_position=&#8221;default&#8221; row_position_tablet=&#8221;inherit&#8221; row_position_phone=&#8221;inherit&#8221; overflow=&#8221;visible&#8221; pointer_events=&#8221;all&#8221;][vc_column_inner constrain_group_100=&#8221;yes&#8221; top_padding_tablet=&#8221;0&#8243; constrain_group_102=&#8221;yes&#8221; bottom_padding_tablet=&#8221;0&#8243; left_padding_tablet=&#8221;0&#8243; constrain_group_103=&#8221;yes&#8221; right_padding_tablet=&#8221;0&#8243; top_padding_phone=&#8221;0&#8243; constrain_group_104=&#8221;yes&#8221; bottom_padding_phone=&#8221;0&#8243; left_padding_phone=&#8221;0&#8243; constrain_group_105=&#8221;yes&#8221; right_padding_phone=&#8221;0&#8243; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;0px&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;10px&#8221; column_link_target=&#8221;_self&#8221; overflow=&#8221;visible&#8221; el_class=&#8221;.bg-gradient&#8221; advanced_gradient_angle=&#8221;0&#8243; gradient_direction=&#8221;left_to_right&#8221; overlay_strength=&#8221;0.3&#8243; width=&#8221;1\/1&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;none&#8221; column_border_color=&#8221;#b7b7b7&#8243; column_border_style=&#8221;solid&#8221; gradient_type=&#8221;default&#8221; column_padding_type=&#8221;advanced&#8221;][vc_column_text css=&#8221;&#8221; text_direction=&#8221;default&#8221;][\/vc_column_text][\/vc_column_inner][\/vc_row_inner][\/vc_column][vc_column constrain_group_100=&#8221;yes&#8221; constrain_group_103=&#8221;yes&#8221; bottom_margin_tablet=&#8221;25px&#8221; column_element_direction_desktop=&#8221;default&#8221; column_element_spacing=&#8221;0px&#8221; desktop_text_alignment=&#8221;default&#8221; tablet_text_alignment=&#8221;default&#8221; phone_text_alignment=&#8221;default&#8221; background_color_opacity=&#8221;1&#8243; background_hover_color_opacity=&#8221;1&#8243; column_backdrop_filter=&#8221;none&#8221; column_shadow=&#8221;none&#8221; column_border_radius=&#8221;15px&#8221; column_link_target=&#8221;_self&#8221; column_position=&#8221;relative&#8221; zindex=&#8221;-1&#8243; advanced_gradient_angle=&#8221;180&#8243; width=&#8221;7\/12&#8243; tablet_width_inherit=&#8221;default&#8221; animation_type=&#8221;default&#8221; bg_image_animation=&#8221;none&#8221; border_type=&#8221;simple&#8221; column_border_width=&#8221;1px&#8221; column_border_color=&#8221;#F0EEEE&#8221; column_border_style=&#8221;solid&#8221; gradient_type=&#8221;advanced&#8221; advanced_gradient_display_type=&#8221;linear&#8221; column_padding_type=&#8221;advanced&#8221;][vc_raw_html css=&#8221;&#8221;]PGRpdiBjbGFzcz0iYmFsb3RvLXRpcHMtY2FyZCI+CiAgICA8ZGl2IGNsYXNzPSJiYWxvdG8tdGlwcy1oZWFkZXIiPgogICAgICAgIDxzdmcgY2xhc3M9InRpcHMtaWNvbiIgdmlld2JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xMiAyQzYuNDg2IDIgMiA2LjQ4NiAyIDEyczQuNDg2IDEwIDEwIDEwIDEwLTQuNDg2IDEwLTEwUzE3LjUxNCAyIDEyIDJ6bTAgMThjLTQuNDExIDAtOC0zLjU4OS04LThzMy41ODktOCA4LTggOCAzLjU4OSA4IDgtMy41ODkgOC04IDh6bS0xLTVoMnYyaC0ydi0yem0wLTEwaDJ2OGgtMlY1eiIvPgogICAgICAgIDwvc3ZnPgogICAgICAgIDxoMz5QbGF5aW5nIFRpcHM8L2gzPgogICAgPC9kaXY+CiAgICAKICAgIDx1bCBjbGFzcz0iYmFsb3RvLXRpcHMtbGlzdCI+CiAgICAgICAgPGxpPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0aXAtaWNvbiI+8J+UpTwvZGl2PgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0aXAtY29udGVudCI+VXNlIHRoZSBudW1iZXJzIHRoYXQgYXBwZWFyIG1vc3QgZnJlcXVlbnRseSBpbiB0aGUgZHJhd3MuPC9kaXY+CiAgICAgICAgPC9saT4KICAgICAgICA8bGk+CiAgICAgICAgICAgIDxkaXYgY2xhc3M9InRpcC1pY29uIj7impbvuI88L2Rpdj4KICAgICAgICAgICAgPGRpdiBjbGFzcz0idGlwLWNvbnRlbnQiPk1peCDigJxob3TigJ0gbnVtYmVycyAoZnJlcXVlbnQpIHdpdGggc29tZSDigJxjb2xk4oCdIG51bWJlcnMgKGxlc3MgZnJlcXVlbnQpLjwvZGl2PgogICAgICAgIDwvbGk+CiAgICAgICAgPGxpPgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0aXAtaWNvbiI+8J+TijwvZGl2PgogICAgICAgICAgICA8ZGl2IGNsYXNzPSJ0aXAtY29udGVudCI+S2VlcCBhbiBleWUgb24gdGhlIG51bWJlcnMgdGhhdCBoYXZlIGdpdmVuIHlvdSB3aW5zIGJlZm9yZS48L2Rpdj4KICAgICAgICA8L2xpPgogICAgPC91bD4KICAgIAogICAgPGRpdiBjbGFzcz0iYmFsb3RvLWRpc2NsYWltZXIiPgogICAgICAgIDxkaXYgY2xhc3M9ImRpc2NsYWltZXItaWNvbiI+CiAgICAgICAgICAgIDxzdmcgdmlld2JveD0iMCAwIDI0IDI0IiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiPgogICAgICAgICAgICAgICAgPHBhdGggZmlsbD0iY3VycmVudENvbG9yIiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMCAxNWMtLjgzIDAtMS41LS42Ny0xLjUtMS41UzExLjE3IDE0IDEyIDE0czEuNS42NyAxLjUgMS41UzEyLjgzIDE3IDEyIDE3em0xLTRoLTJWN2gydjZ6Ii8+CiAgICAgICAgICAgIDwvc3ZnPgogICAgICAgIDwvZGl2PgogICAgICAgIDxkaXYgY2xhc3M9ImRpc2NsYWltZXItY29udGVudCI+CiAgICAgICAgICAgIDxzdHJvbmc+SW1wb3J0YW50OiA8L3N0cm9uZz5PdXIgcGxhdGZvcm0gb25seSBoZWxwcyB5b3UgZ2VuZXJhdGUgY29tYmluYXRpb25zIGFuZCBjaGVjayByZXN1bHRzLiBUbyBwbGF5IE1lbGF0ZSBvZmZpY2lhbGx5LCBwbGVhc2UgdmlzaXQgYXV0aG9yaXplZCByZXRhaWxlcnMgb3IgdXNlIHRoZSBvZmZpY2lhbCBjaGFubmVscy4gV2UgYXJlIG5vdCBhZmZpbGlhdGVkIHdpdGggTWVsYXRlIGFuZCBkbyBub3QgaGFuZGxlIGJldHM7IHdlIG9ubHkgcHJvdmlkZSB0b29scyB0byB2aWV3IHN0YXRpc3RpY3MgYW5kIHZlcmlmeSByZXN1bHRzLiAKICAgICAgICA8L2Rpdj4KICAgIDwvZGl2Pgo8L2Rpdj4KCjxzdHlsZT4KLmJhbG90by10aXBzLWNhcmQgewogICAKICAgIGJvcmRlci1yYWRpdXM6IDEycHg7CiAgICAKICAgIHBhZGRpbmc6IDI0cHg7CiAgICBtYXJnaW4tYm90dG9tOiAyNHB4OwogICAgdHJhbnNpdGlvbjogYWxsIDAuM3MgZWFzZTsKfQoKCgouYmFsb3RvLXRpcHMtaGVhZGVyIHsKICAgIGRpc3BsYXk6IGZsZXg7CiAgICBhbGlnbi1pdGVtczogY2VudGVyOwogICAgbWFyZ2luLWJvdHRvbTogMjBweDsKICAgIHBhZGRpbmctYm90dG9tOiAxMnB4OwogICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNmMGYwZjA7Cn0KCi50aXBzLWljb24gewogICAgY29sb3I6ICMwMDRjYWI7CiAgICBtYXJnaW4tcmlnaHQ6IDEycHg7Cn0KCi5iYWxvdG8tdGlwcy1oZWFkZXIgaDMgewogICAgbWFyZ2luOiAwOwogICAgY29sb3I6ICMzMzM7CiAgICBmb250LXNpemU6IDIwcHg7CiAgICBmb250LXdlaWdodDogNjAwOwp9CgouYmFsb3RvLXRpcHMtbGlzdCB7CiAgICBsaXN0LXN0eWxlOiBub25lOwogICAgcGFkZGluZzogMDsKICAgIG1hcmdpbjogMCAwIDIwcHggMDsKfQoKLmJhbG90by10aXBzLWxpc3QgbGkgewogICAgZGlzcGxheTogZmxleDsKICAgIGFsaWduLWl0ZW1zOiBmbGV4LXN0YXJ0OwogICAgbWFyZ2luLWJvdHRvbTogMTZweDsKICAgIHBhZGRpbmctYm90dG9tOiAxNnB4OwogICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNmNWY1ZjU7Cn0KCi5iYWxvdG8tdGlwcy1saXN0IGxpOmxhc3QtY2hpbGQgewogICAgYm9yZGVyLWJvdHRvbTogbm9uZTsKICAgIHBhZGRpbmctYm90dG9tOiAwOwp9CgoudGlwLWljb24gewogICAgZm9udC1zaXplOiAyMHB4OwogICAgbWFyZ2luLXJpZ2h0OiAxMnB4OwogICAgbWluLXdpZHRoOiAyNHB4OwogICAgdGV4dC1hbGlnbjogY2VudGVyOwp9CgoudGlwLWNvbnRlbnQgewogICAgZmxleDogMTsKICAgIGNvbG9yOiAjNDQ0OwogICAgZm9udC1zaXplOiAxNXB4OwogICAgbGluZS1oZWlnaHQ6IDEuNTsKfQoKLmJhbG90by1kaXNjbGFpbWVyIHsKICAgIGRpc3BsYXk6IGZsZXg7CiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhmOWZhOwogICAgYm9yZGVyLWxlZnQ6IDRweCBzb2xpZCAjMDA0Y2FiOwogICAgcGFkZGluZzogMTZweDsKICAgIGJvcmRlci1yYWRpdXM6IDZweDsKICAgIG1hcmdpbi10b3A6IDhweDsKfQoKLmRpc2NsYWltZXItaWNvbiB7CiAgICBjb2xvcjogIzAwNGNhYjsKICAgIG1hcmdpbi1yaWdodDogMTJweDsKICAgIGRpc3BsYXk6IGZsZXg7CiAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDsKfQoKLmRpc2NsYWltZXItY29udGVudCB7CiAgICBmbGV4OiAxOwogICAgZm9udC1zaXplOiAxNHB4OwogICAgY29sb3I6ICM1NTU7CiAgICBsaW5lLWhlaWdodDogMS41Owp9CgpAbWVkaWEgKG1heC13aWR0aDogNzY4cHgpIHsKICAgIC5iYWxvdG8tdGlwcy1jYXJkIHsKICAgICAgICBwYWRkaW5nOiAyMHB4OwogICAgfQogICAgCiAgICAuYmFsb3RvLXRpcHMtaGVhZGVyIGgzIHsKICAgICAgICBmb250LXNpemU6IDE4cHg7CiAgICB9CiAgICAKICAgIC50aXAtY29udGVudCB7CiAgICAgICAgZm9udC1zaXplOiAxNHB4OwogICAgfQogICAgCiAgICAuZGlzY2xhaW1lci1jb250ZW50IHsKICAgICAgICBmb250LXNpemU6IDEzcHg7CiAgICB9Cn0KPC9zdHlsZT4=[\/vc_raw_html][\/vc_column][\/vc_row]\n[vc_row][vc_column]\n<div class=\"lotto-generador-wrap\">    <div class=\"melate-generador-contenedor\">\n        <h3 class=\"melate-generador-titulo\">Melate Number Generator &amp; Picker<\/h3>\n        \n        <p class=\"melate-generador-descripcion\">\n            Generate a combination of 6 numbers to play Melate. The additional number is drawn automatically in each draw.        <\/p>\n        \n        <div class=\"melate-generador-opciones\">\n            <select id=\"melate-estrategia-generador\" class=\"melate-generador-select\">\n                <option value=\"calientes\" >Prefer hot numbers<\/option>\n                <option value=\"intermedios\" >Preferir n\u00fameros intermedios<\/option>\n                <option value=\"mixto\"  selected='selected'>Balanced combination<\/option>\n                <option value=\"frios\" >Prefer cold numbers<\/option>\n                <option value=\"aleatorio\" >Completely random<\/option>\n            <\/select>\n            \n            <button id=\"melate-generar-numeros\" class=\"melate-generador-boton\">\n                Generate numbers            <\/button>\n        <\/div>\n        \n        <div id=\"melate-numeros-generados\" class=\"melate-numeros-generados\" style=\"display: none;\">\n            <div class=\"melate-numeros-generados-titulo\">Your 6-number combination:<\/div>\n            <div class=\"melate-numeros-generados-lista\">\n                <span class=\"melate-numero-generado\" id=\"melate-num-gen-1\">--<\/span>\n                <span class=\"melate-numero-generado\" id=\"melate-num-gen-2\">--<\/span>\n                <span class=\"melate-numero-generado\" id=\"melate-num-gen-3\">--<\/span>\n                <span class=\"melate-numero-generado\" id=\"melate-num-gen-4\">--<\/span>\n                <span class=\"melate-numero-generado\" id=\"melate-num-gen-5\">--<\/span>\n                <span class=\"melate-numero-generado\" id=\"melate-num-gen-6\">--<\/span>\n                <!-- \u274c ELIMINADO: melate-numero-generado-super (complementario) -->\n            <\/div>\n            <div class=\"melate-info-adicional\">\n                <p><small>The additional number will be drawn automatically, and you don\u2019t need to choose it.<\/small><\/p>\n            <\/div>\n            <div class=\"melate-numeros-generados-acciones\">\n                <button id=\"melate-usar-numeros\" class=\"melate-generador-boton melate-generador-boton-secundario\">\n                    <i class=\"dashicons dashicons-yes-alt\"><\/i>\n                    Use these numbers                <\/button>\n            <\/div>\n        <\/div>\n    <\/div>\n    \n    <style>\n    .melate-generador-contenedor {\n        max-width: 100%;\n        margin: 20px 0;\n        padding: 25px;\n        border-radius: 8px;\n        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n    }\n    \n    .melate-generador-titulo {\n        color: #ffffff;\n        font-size: 20px;\n        margin-top: 0;\n        margin-bottom: 15px;\n    }\n    \n    .melate-generador-descripcion {\n        color: #ffffff;\n        padding-bottom: 1em;\n        font-size: 14px;\n    }\n    \n    .melate-generador-opciones {\n        display: flex;\n        flex-direction: column;\n        gap: 10px;\n        margin-bottom: 20px;\n    }\n    \n    .melate-generador-select {\n        padding: 10px;\n        border: 1px solid #ddd;\n        border-radius: 4px;\n        font-size: 14px;\n    }\n    \n    .melate-generador-boton {\n        align-items: center;\n        justify-content: center;\n        display: flex;\n        width: 100%;\n        padding: 12px 20px;\n        background-color: #004cab;\n        color: white;\n        border: none;\n        border-radius: 4px;\n        cursor: pointer;\n        font-size: 16px;\n        font-weight: bold;\n        transition: background-color 0.3s;\n    }\n    \n    .melate-generador-boton:hover {\n        background-color: #003a8c;\n    }\n    \n    .melate-generador-boton-secundario {\n        background-color: #28a745;\n        margin-top: 15px;\n    }\n    \n    .melate-generador-boton-secundario:hover {\n        background-color: #218838;\n    }\n    \n    .melate-numeros-generados {\n        margin-top: 20px;\n        padding: 20px;\n        background-color: rgba(255, 255, 255, 0.1);\n        border-radius: 8px;\n    }\n    \n    .melate-numeros-generados-titulo {\n        color: #ffffff;\n        font-size: 16px;\n        margin-bottom: 15px;\n        text-align: center;\n    }\n    \n    .melate-numeros-generados-lista {\n        display: flex;\n        justify-content: center;\n        flex-wrap: wrap;\n        gap: 10px;\n        margin-bottom: 15px;\n    }\n    \n    .melate-numero-generado {\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        width: 50px;\n        height: 50px;\n        background-color: #004cab;\n        color: white;\n        border-radius: 50%;\n        font-size: 20px;\n        font-weight: bold;\n        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);\n    }\n    \n    \/* \u274c ELIMINADO: .melate-numero-generado-super (complementario) *\/\n    \n    .melate-info-adicional {\n        text-align: center;\n        margin: 15px 0;\n        padding: 10px;\n        background-color: rgba(255, 255, 255, 0.15);\n        border-radius: 4px;\n    }\n    \n    .melate-info-adicional p {\n        color: #ffffff;\n        margin: 0;\n    }\n    \n    .melate-numeros-generados-acciones {\n        text-align: center;\n    }\n    \n    @media (max-width: 600px) {\n        .melate-numero-generado {\n            width: 45px;\n            height: 45px;\n            font-size: 18px;\n        }\n    }\n    <\/style>\n    \n    <script>\n    jQuery(document).ready(function($) {\n        console.log('\ud83c\udfb2 Generador de Melate - VERSI\u00d3N CORREGIDA (solo 6 n\u00fameros)');\n        \n        \/\/ \u2705 FUNCI\u00d3N CORREGIDA: Genera solo 6 n\u00fameros\n        function generarNumeros(estrategia) {\n            console.log('\ud83c\udfaf Estrategia seleccionada:', estrategia);\n            \n            var numeros = [];\n            \n            \/\/ Si es aleatorio, generar directamente\n            if (estrategia === 'aleatorio') {\n                console.log('\ud83c\udfb2 Generando 6 n\u00fameros aleatorios...');\n                \n                while (numeros.length < 6) {\n                    var num = Math.floor(Math.random() * 56) + 1;\n                    if (numeros.indexOf(num) === -1) {\n                        numeros.push(num);\n                    }\n                }\n                \n                numeros.sort(function(a, b) { return a - b; });\n                \n                console.log('\u2705 6 n\u00fameros aleatorios generados:', numeros);\n                \/\/ \u274c ELIMINADO: complementario\n                \n                return {\n                    numeros: numeros,\n                    error: false\n                };\n            }\n            \n            \/\/ *** TERCIOS: calientes \/ intermedios \/ frios con seleccion uniforme ***\n            if ((estrategia === 'calientes' || estrategia === 'intermedios' || estrategia === 'frios') &&\n                typeof window.melateStats !== 'undefined' && window.melateStats &&\n                window.melateStats.tercios && window.melateStats.tercios[estrategia] &&\n                window.melateStats.tercios[estrategia].length >= 6) {\n\n                console.log('\ud83c\udfaf MODO TERCIOS:', estrategia, window.melateStats.tercios[estrategia]);\n                var poolT = window.melateStats.tercios[estrategia].slice();\n                for (var iT = 0; iT < 6; iT++) {\n                    var idxT = Math.floor(Math.random() * poolT.length);\n                    numeros.push(parseInt(poolT[idxT], 10));\n                    poolT.splice(idxT, 1);\n                }\n                numeros.sort(function(a, b) { return a - b; });\n\n                return { numeros: numeros, error: false };\n            }\n\n            \/\/ *** MODO MIXTO (tercios): 2 calientes + intermedios + frios, todo uniforme ***\n            if (estrategia === 'mixto' &&\n                typeof window.melateStats !== 'undefined' && window.melateStats && window.melateStats.tercios &&\n                window.melateStats.tercios.calientes && window.melateStats.tercios.intermedios && window.melateStats.tercios.frios) {\n\n                var tM = window.melateStats.tercios;\n                var tomarM = function(pool, cuantos) {\n                    var p = pool.slice(), sal = [];\n                    for (var iM = 0; iM < cuantos && p.length > 0; iM++) {\n                        var kM = Math.floor(Math.random() * p.length);\n                        sal.push(parseInt(p[kM], 10));\n                        p.splice(kM, 1);\n                    }\n                    return sal;\n                };\n                numeros = numeros.concat(tomarM(tM.calientes, 2));\n                numeros = numeros.concat(tomarM(tM.intermedios, 2));\n                numeros = numeros.concat(tomarM(tM.frios, 2));\n                numeros.sort(function(a, b) { return a - b; });\n                console.log('\ud83c\udfaf MODO MIXTO (tercios):', numeros);\n\n                return { numeros: numeros, error: false };\n            }\n\n            \/\/ *** RESTO DEL C\u00d3DIGO - Para estrategias con base de datos ***\n            console.log('Verificando datos estad\u00edsticos...');\n            \n            if (typeof window.melateStats === 'undefined' || \n                !window.melateStats || \n                !window.melateStats.numeros_frecuentes_global) {\n                \n                console.log('\u274c SIN DATOS DE BASE DE DATOS - Generando aleatorios como respaldo');\n                \n                while (numeros.length < 6) {\n                    var num = Math.floor(Math.random() * 56) + 1;\n                    if (numeros.indexOf(num) === -1) {\n                        numeros.push(num);\n                    }\n                }\n                \n                numeros.sort(function(a, b) { return a - b; });\n                \n                return {\n                    numeros: numeros,\n                    error: false\n                };\n            }\n            \n            console.log('\u2705 USANDO DATOS DE LA BASE DE DATOS');\n            \n            \/\/ \u274c ELIMINADO: generarComplementarioConEstadisticas()\n            \/\/ \u2705 El adicional lo sortea el sistema, no se genera aqu\u00ed\n            \n            \/\/ Procesar n\u00fameros principales seg\u00fan estrategia\n            var numerosConFrecuencia = [];\n            \n            \/\/ Convertir estad\u00edsticas a array\n            for (var num = 1; num <= 56; num++) {\n                var apariciones = window.melateStats.numeros_frecuentes_global[num] || 0;\n                numerosConFrecuencia.push({\n                    numero: num,\n                    apariciones: apariciones\n                });\n            }\n            \n            if (estrategia === 'calientes') {\n                console.log('\ud83d\udd25 Generando n\u00fameros CALIENTES...');\n                numerosConFrecuencia.sort(function(a, b) { return b.apariciones - a.apariciones; });\n                var topCalientes = numerosConFrecuencia.slice(0, 15);\n                \n                while (numeros.length < 6 && topCalientes.length > 0) {\n                    var indice = Math.floor(Math.random() * topCalientes.length);\n                    numeros.push(topCalientes[indice].numero);\n                    topCalientes.splice(indice, 1);\n                }\n                \n            } else if (estrategia === 'frios') {\n                console.log('\u2744\ufe0f Generando n\u00fameros FR\u00cdOS...');\n                numerosConFrecuencia.sort(function(a, b) { return a.apariciones - b.apariciones; });\n                var topFrios = numerosConFrecuencia.slice(0, 15);\n                \n                while (numeros.length < 6 && topFrios.length > 0) {\n                    var indice = Math.floor(Math.random() * topFrios.length);\n                    numeros.push(topFrios[indice].numero);\n                    topFrios.splice(indice, 1);\n                }\n                \n            } else {\n                \/\/ Mixto: combinar calientes, neutros y fr\u00edos\n                console.log('\ud83c\udfa8 Generando n\u00fameros MIXTOS...');\n                numerosConFrecuencia.sort(function(a, b) { return b.apariciones - a.apariciones; });\n                \n                var tercio = Math.ceil(numerosConFrecuencia.length \/ 3);\n                var calientes = numerosConFrecuencia.slice(0, tercio);\n                var neutros = numerosConFrecuencia.slice(tercio, tercio * 2);\n                var frios = numerosConFrecuencia.slice(tercio * 2);\n                \n                \/\/ 2 calientes, 2 neutros, 2 fr\u00edos\n                for (var i = 0; i < 2 && calientes.length > 0; i++) {\n                    var indice = Math.floor(Math.random() * calientes.length);\n                    numeros.push(calientes[indice].numero);\n                    calientes.splice(indice, 1);\n                }\n                \n                for (var i = 0; i < 2 && neutros.length > 0; i++) {\n                    var indice = Math.floor(Math.random() * neutros.length);\n                    numeros.push(neutros[indice].numero);\n                    neutros.splice(indice, 1);\n                }\n                \n                for (var i = 0; i < 2 && frios.length > 0; i++) {\n                    var indice = Math.floor(Math.random() * frios.length);\n                    numeros.push(frios[indice].numero);\n                    frios.splice(indice, 1);\n                }\n                \n                \/\/ Completar si faltan n\u00fameros\n                var todos = [...calientes, ...neutros, ...frios];\n                while (numeros.length < 6 && todos.length > 0) {\n                    var indice = Math.floor(Math.random() * todos.length);\n                    numeros.push(todos[indice].numero);\n                    todos.splice(indice, 1);\n                }\n            }\n            \n            numeros.sort(function(a, b) { return a - b; });\n            \n            console.log('\ud83d\udce4 N\u00daMEROS FINALES GENERADOS:', numeros);\n            \/\/ \u274c ELIMINADO: complementario\n            \n            return {\n                numeros: numeros,\n                error: false\n            };\n        }\n        \n        \/\/ Evento del bot\u00f3n generar\n        $('#melate-generar-numeros').on('click', function() {\n            var estrategia = $('#melate-estrategia-generador').val();\n            var resultado = generarNumeros(estrategia);\n            \n            if (resultado.error) {\n                alert('\u274c ERROR: ' + resultado.mensaje);\n                return;\n            }\n            \n            if (resultado.numeros && resultado.numeros.length === 6) {\n                console.log('\ud83d\udccb MOSTRANDO 6 N\u00daMEROS:', resultado.numeros);\n                \n                \/\/ Asignar solo los 6 n\u00fameros principales\n                for (var i = 0; i < resultado.numeros.length; i++) {\n                    $('#melate-num-gen-' + (i+1)).text(resultado.numeros[i]);\n                }\n                \n                \/\/ \u274c ELIMINADO: Asignaci\u00f3n del complementario\n                \n                $('#melate-numeros-generados').slideDown();\n            } else {\n                alert('\u274c ERROR: No se generaron n\u00fameros v\u00e1lidos');\n            }\n        });\n        \n        \/\/ \u2705 CORREGIDO: Bot\u00f3n usar n\u00fameros (sin complementario)\n        \/\/ ===== LottoAlert: registro directo desde el generador =====\n        \/\/ Detecci\u00f3n de login robusta: el PHP puede fallar en p\u00e1ginas WPML \/en\/,\n        \/\/ as\u00ed que confirmamos con el body class 'logged-in' que WordPress a\u00f1ade en el navegador.\n        \/\/ Detecci\u00f3n de login: el PHP puede fallar en p\u00e1ginas WPML \/en\/ cacheadas.\n        \/\/ Fuente de verdad: body class + confirmaci\u00f3n por AJAX (usa la sesi\u00f3n real del navegador).\n        var lgLogueado = false || document.body.classList.contains('logged-in');\n        \/\/ Consultar el email real por AJAX (infalible ante cach\u00e9\/WPML)\n        $.post(lgAjaxUrl, { action:'melate_obtener_estadisticas', nonce:lgNonce }, function(r){\n            if (r && r.success && r.data) {\n                if (r.data.logueado) { lgLogueado = true; }\n                if (r.data.email_usuario) { lgEmail = r.data.email_usuario; }\n            }\n        });\n        var lgAjaxUrl = 'https:\/\/lottoalert.co\/wp-admin\/admin-ajax.php';\n        var lgNonce = '791797b946';\n        var lgEmail = '';\n        var lgUrlRegistro = 'https:\/\/lottoalert.co\/registrar-numeros-melate\/';\n        var lgUrlHistorial = 'https:\/\/lottoalert.co\/tu-historial-de-melate\/';\n        var lgUrlCrearCuenta = 'https:\/\/lottoalert.co\/en\/wp-login.php?action=register';\n\n        \/\/ L\u00f3gica de pr\u00f3ximo sorteo (misma que el formulario: lun\/mi\u00e9\/s\u00e1b)\n        function lgEsDiaSorteo(f){ var d=f.getDay(); return d===0||d===3||d===5; }\n        function lgProximoSorteo(base){\n            var f = new Date(base); var hoy=new Date(); var ih=new Date(hoy); ih.setHours(0,0,0,0);\n            if(f<ih) f=new Date(ih);\n            var esHoy = f.getFullYear()===hoy.getFullYear()&&f.getMonth()===hoy.getMonth()&&f.getDate()===hoy.getDate();\n            if(esHoy && lgEsDiaSorteo(f)) return f;\n            while(!lgEsDiaSorteo(f)){ f.setDate(f.getDate()+1); }\n            return f;\n        }\n        function lgFmt(f){ return f.getFullYear()+'-'+String(f.getMonth()+1).padStart(2,'0')+'-'+String(f.getDate()).padStart(2,'0'); }\n\n        \/\/ Modal reutilizable\n        function lgModal(html){\n            $('#lg-modal-overlay').remove();\n            var ov = $('<div id=\"lg-modal-overlay\" style=\"position:fixed;inset:0;background:rgba(6,18,40,.72);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;\"><\/div>');\n            var box = $('<div style=\"background:#fff;border-radius:18px;max-width:440px;width:100%;padding:32px 28px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35);\"><\/div>').html(html);\n            ov.append(box); $('body').append(ov);\n            ov.on('click', function(e){ if(e.target===ov[0]) ov.remove(); });\n        }\n        function lgBolas(nums, sb){\n            var h='<div style=\"display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:16px 0;\">';\n            nums.forEach(function(n){ h+='<span style=\"width:40px;height:40px;border-radius:50%;background:#1e3a8a;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;\">'+n+'<\/span>'; });\n            if (typeof sb !== 'undefined' && sb !== '' && sb !== null) { h+='<span style=\"width:40px;height:40px;border-radius:50%;background:#dc2626;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;\">'+sb+'<\/span>'; }\n            return h+'<\/div>';\n        }\n\n        $('#melate-usar-numeros').on('click', function() {\n            var numeros = [];\n            for (var i = 1; i <= 6; i++) numeros.push($('#melate-num-gen-' + i).text());\n            \/\/ Melate no tiene balota especial\n\n            if (!lgLogueado) {\n                \/\/ INVITADO: si el formulario est\u00e1 en ESTA misma p\u00e1gina, llenarlo sin recargar.\n                var $form = $('#melate-registro-usuario-form');\n                if ($form.length) {\n                    \/\/ llenar los 6 n\u00fameros\n                    for (var k = 1; k <= 6; k++) {\n                        $form.find('input[name=\"numero'+k+'\"]').val(numeros[k-1]);\n                    }\n                    \/\/ Melate: sin balota especial\n                    \/\/ resaltar los n\u00fameros llenados\n                    $form.find('.number-inputs input').css({\n                        'background-color':'#f0f8ff','border-color':'#4a90e2',\n                        'box-shadow':'0 0 0 3px rgba(74,144,226,.2)'\n                    });\n                    \/\/ scroll al formulario\n                    $('html,body').animate({ scrollTop: $form.offset().top - 100 }, 500);\n                    \/\/ dirigir la atenci\u00f3n al correo si est\u00e1 vac\u00edo\n                    var $em = $('#melate-email');\n                    if ($em.length && !$em.val()) {\n                        setTimeout(function(){\n                            $em.css({'border-color':'#f59e0b','box-shadow':'0 0 0 3px rgba(245,158,11,.25)'}).focus();\n                            if (!$('#lg-aviso-correo').length) {\n                                $em.closest('.form-group').before('<div id=\"lg-aviso-verde\" style=\"margin:0 0 16px;background:#fff7ed;border:1px solid #fed7aa;border-left:4px solid #ea580c;border-radius:8px;padding:12px 14px;\"><p style=\"color:#9a3412;font-size:13px;font-weight:500;margin:0;line-height:1.55;\">Review your combination and click on  \"Save Numbers\" to save it. <strong>We\\'ll email you if you win.<\/strong> <strong>IMPORTANT:<\/strong> This system only verifies results. To officially play these numbers, you must buy them at an authorized Melate retailer or at <a href=\"https:\/\/www.melaterevancha.com\" target=\"_blank\" rel=\"noopener noreferrer\" style=\"color:#9a3412;font-weight:600;\">www.melaterevancha.com<\/a>.<\/p><\/div>');\n                                $em_field = $('#melate-email');\n                                $em_field.closest('.form-group').find('label').after('<div id=\"lg-aviso-correo\" style=\"background:#fef3c7;border:1px solid #fbbf24;border-radius:8px;padding:10px 14px;margin:6px 0 10px;display:flex;align-items:center;gap:8px;\"><span style=\"font-size:18px;\">\ud83d\udc47<\/span><span style=\"color:#92400e;font-weight:700;font-size:14px;\">Enter your email so we can notify you if you win<\/span><\/div>');\n                            }\n                        }, 550);\n                    }\n                } else {\n                    \/\/ el formulario NO est\u00e1 en esta p\u00e1gina (ej: estad\u00edsticas) \u2192 redirigir\n                    var url = lgUrlRegistro + (lgUrlRegistro.indexOf('?')>-1?'&':'?') + 'numeros=' + numeros.join(',') ;\n                    window.location.href = url;\n                }\n                return;\n            }\n\n            \/\/ Si detectamos login por body-class pero no tenemos el email (PHP no lo pas\u00f3),\n            \/\/ usamos el flujo del formulario para no registrar sin correo.\n            if (!lgEmail) {\n                var $form2 = $('#melate-registro-usuario-form');\n                if ($form2.length) {\n                    for (var q = 1; q <= 6; q++) $form2.find('input[name=\"numero'+q+'\"]').val(numeros[q-1]);\n                    \/\/ Melate: sin balota especial\n                    $('html,body').animate({ scrollTop: $form2.offset().top - 100 }, 500);\n                    return;\n                }\n            }\n            \/\/ LOGUEADO: modal con confirmaci\u00f3n de fecha (registro directo)\n            var prox = lgProximoSorteo(new Date());\n            lgModal(\n                '<h3 style=\"margin:0 0 4px;color:#0b2a5b;font-size:20px;\">Register your numbers<\/h3>' +\n                lgBolas(numeros) +\n                '<label style=\"display:block;text-align:left;font-weight:600;color:#334155;margin:14px 0 6px;\">For which draw?<\/label>' +\n                '<input type=\"date\" id=\"lg-fecha\" value=\"'+lgFmt(prox)+'\" style=\"width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;font-size:15px;\">' +\n                '<p style=\"text-align:left;color:#64748b;font-size:12px;margin:6px 0 20px;\">You can change it if you play on another day (Wed\/Fri\/Sun).<\/p>' +\n                '<button id=\"lg-confirmar\" style=\"width:100%;background:#2563eb;color:#fff;border:none;padding:14px;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;\">' + 'Register' + '<\/button>' +\n                '<button id=\"lg-cancelar\" style=\"width:100%;background:none;border:none;color:#64748b;padding:10px;margin-top:6px;cursor:pointer;\">' + 'Cancel' + '<\/button>'\n            );\n\n            \/\/ Ajustar fecha si no es d\u00eda de sorteo\n            $('#lg-fecha').on('change', function(){\n                var f = new Date($(this).val()+'T12:00:00'); var hoy=new Date(); hoy.setHours(0,0,0,0);\n                if(f<hoy || !lgEsDiaSorteo(f)){ $(this).val(lgFmt(lgProximoSorteo(f))); }\n            });\n            $('#lg-cancelar').on('click', function(){ $('#lg-modal-overlay').remove(); });\n            $('#lg-confirmar').on('click', function(){\n                var $b=$(this); $b.prop('disabled',true).text('Registering...');\n                $.post(lgAjaxUrl, {\n                    action:'melate_registrar_numeros', nonce:lgNonce,\n                    email:lgEmail, numeros:numeros.join(','), \n                    fecha_sorteo:$('#lg-fecha').val()\n                }, function(resp){\n                    if(resp && resp.success){\n                        lgModal(\n                            '<div style=\"font-size:44px;\">\ud83c\udf89<\/div>' +\n                            '<h3 style=\"margin:6px 0 4px;color:#0b2a5b;font-size:20px;\">Numbers registered!<\/h3>' +\n                            lgBolas(numeros) +\n                            '<p style=\"color:#475569;margin:8px 0 20px;\">We\\'ll email you if you win.<\/p>' +\n                            '<a href=\"'+lgUrlHistorial+'\" style=\"display:block;background:#2563eb;color:#fff;padding:13px;border-radius:10px;text-decoration:none;font-weight:600;margin-bottom:8px;\">' + 'View my history' + '<\/a>' +\n                            '<button onclick=\"document.getElementById(\\'lg-modal-overlay\\').remove()\" style=\"width:100%;background:none;border:none;color:#64748b;padding:8px;cursor:pointer;\">' + 'Register other numbers' + '<\/button>'\n                        );\n                    } else {\n                        var msg = (resp && resp.data && resp.data.message) ? resp.data.message : 'Registration error';\n                        $b.prop('disabled',false).text('Register');\n                        alert(msg);\n                    }\n                }).fail(function(){ $b.prop('disabled',false).text('Register'); alert('Connection error'); });\n            });\n        });\n    });\n    <\/script>\n    <\/div>\n[\/vc_column][\/vc_row]\n","protected":false},"excerpt":{"rendered":"<p>[vc_row type=&#8221;in_container&#8221; full_screen_row_position=&#8221;middle&#8221; column_margin=&#8221;default&#8221; column_direction=&#8221;default&#8221; column_direction_tablet=&#8221;default&#8221; column_direction_phone=&#8221;default&#8221; scene_position=&#8221;center&#8221; top_padding=&#8221;0&#8243; constrain_group_1=&#8221;yes&#8221; bottom_padding=&#8221;0&#8243; left_padding_desktop=&#8221;0&#8243; constrain_group_2=&#8221;yes&#8221; right_padding_desktop=&#8221;0&#8243; top_margin=&#8221;0&#8243; constrain_group_7=&#8221;yes&#8221; bottom_margin=&#8221;0&#8243; left_margin=&#8221;0&#8243; constrain_group_8=&#8221;yes&#8221; right_margin=&#8221;0&#8243; text_color=&#8221;dark&#8221; text_align=&#8221;left&#8221; row_border_radius=&#8221;none&#8221; row_border_radius_applies=&#8221;bg&#8221; overflow=&#8221;visible&#8221; overlay_strength=&#8221;0.3&#8243; gradient_direction=&#8221;left_to_right&#8221; shape_divider_position=&#8221;bottom&#8221; bg_image_animation=&#8221;none&#8221; gradient_type=&#8221;default&#8221;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1377","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/pages\/1377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/comments?post=1377"}],"version-history":[{"count":7,"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/pages\/1377\/revisions"}],"predecessor-version":[{"id":2627,"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/pages\/1377\/revisions\/2627"}],"wp:attachment":[{"href":"https:\/\/lottoalert.co\/en\/wp-json\/wp\/v2\/media?parent=1377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}