{"id":13321,"date":"2025-12-25T22:02:42","date_gmt":"2025-12-25T21:02:42","guid":{"rendered":"https:\/\/consuladouy-bcn.es\/httpdocs\/?page_id=13321"},"modified":"2025-12-26T20:23:10","modified_gmt":"2025-12-26T19:23:10","slug":"retirodocumentos","status":"publish","type":"page","link":"https:\/\/consuladouy-bcn.es\/httpdocs\/retirodocumentos\/","title":{"rendered":"Retiro de Documentos por Terceros"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"13321\" class=\"elementor elementor-13321\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c3a5197 e-flex e-con-boxed e-con e-parent\" data-id=\"c3a5197\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-abb702b elementor-widget elementor-widget-html\" data-id=\"abb702b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div style=\"margin-bottom:24px; text-align:center; color:#1f2937; font-size:14px; line-height:1.6;\">\r\n    <p style=\"margin:0 0 12px 0; font-weight:600; color:#0B5A8E;\">\r\n        Registre aqu\u00ed el retiro de su pasaporte o c\u00e9dula de identidad uruguaya en el Consulado de Uruguay en Barcelona.\r\n    <\/p>\r\n    <p style=\"margin:0; color:#4b5563;\">\r\n        El proceso es sencillo y r\u00e1pido. Solo necesitar\u00e1 verificar su correo electr\u00f3nico y completar los datos solicitados.\r\n    <\/p>\r\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-75b9897 e-flex e-con-boxed e-con e-parent\" data-id=\"75b9897\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7911a18 elementor-widget elementor-widget-text-editor\" data-id=\"7911a18\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t        <style>\n        .rf-wrap{font-family:Arial,sans-serif;max-width:600px;margin:20px auto;padding:0 15px}\n        .rf-card{background:#fff;border-radius:10px;box-shadow:0 4px 20px rgba(0,0,0,0.1)}\n        .rf-tipo-card{background:#fff;border:3px solid #e5e7eb;border-radius:10px;padding:16px;text-align:center;cursor:pointer;transition:all 0.3s;box-shadow:0 2px 8px rgba(0,0,0,0.05)}\n        .rf-tipo-card:hover{border-color:#0B5A8E;border-width:3px;box-shadow:0 6px 20px rgba(11,90,142,0.2);transform:translateY(-4px) scale(1.02)}\n        .rf-tipo-card.selected{border-color:#0B5A8E;border-width:4px;background:linear-gradient(135deg,#EFF6FB,#E3F2FD);box-shadow:0 8px 24px rgba(11,90,142,0.35);transform:scale(1.05)}\n        .rf-btn{width:100%;background:linear-gradient(135deg,#0B5A8E,#094A73);color:#fff;border:none;padding:14px;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;transition:all 0.3s;box-shadow:0 4px 12px rgba(11,90,142,0.3)}\n        .rf-btn:hover{box-shadow:0 6px 16px rgba(11,90,142,0.4);transform:translateY(-2px)}\n        .rf-btn:active{transform:translateY(0)}\n        .rf-btn:disabled{opacity:0.6;cursor:not-allowed}\n        <\/style>\n        <div class=\"rf-wrap\">\n            <div class=\"rf-card\">\n                <div style=\"background:linear-gradient(135deg,#0B5A8E,#094A73);color:#fff;padding:24px;text-align:center;border-radius:10px 10px 0 0\">\n                    <h2 style=\"margin:0;font-size:22px;font-weight:700\">Registro de Retiro de Documento<\/h2>\n                    <p style=\"margin:8px 0 0;font-size:13px;opacity:0.95\">Seleccione el tipo de documento y verifique su email<\/p>\n                <\/div>\n                <div style=\"padding:25px\">\n                    <div style=\"margin-bottom:20px\">\n                        <label style=\"display:block;font-weight:700;margin-bottom:8px;font-size:15px;color:#0B5A8E\">Tipo de Documento(s)<\/label>\n                        <small style=\"display:block;color:#64748b;font-size:12px;margin-bottom:12px\">\ud83d\udc47 Haga click para seleccionar qu\u00e9 documento(s) va a retirar<\/small>\n                        <div style=\"display:grid;grid-template-columns:repeat(3,1fr);gap:12px\">\n                            <button type=\"button\" class=\"rf-tipo-card\" id=\"card-pasaporte\" onclick=\"selectTipo('pasaporte')\">\n                                <div style=\"font-size:36px;margin-bottom:10px\">\ud83d\udec2<\/div>\n                                <div style=\"font-weight:700;font-size:13px;color:#111\">Pasaporte<\/div>\n                            <\/button>\n                            <button type=\"button\" class=\"rf-tipo-card\" id=\"card-cedula\" onclick=\"selectTipo('cedula')\">\n                                <div style=\"font-size:36px;margin-bottom:10px\">\ud83e\udeaa<\/div>\n                                <div style=\"font-weight:700;font-size:13px;color:#111\">C\u00e9dula<\/div>\n                            <\/button>\n                            <button type=\"button\" class=\"rf-tipo-card\" id=\"card-ambos\" onclick=\"selectTipo('ambos')\">\n                                <div style=\"font-size:36px;margin-bottom:10px\">\ud83d\udec2\ud83e\udeaa<\/div>\n                                <div style=\"font-weight:700;font-size:13px;color:#111\">Ambos<\/div>\n                            <\/button>\n                        <\/div>\n                        <input type=\"hidden\" id=\"tipo-seleccionado\" value=\"\">\n                    <\/div>\n                    \n                    <div style=\"height:2px;background:linear-gradient(to right,transparent,#e5e7eb 50%,transparent);margin:20px 0\"><\/div>\n                    \n                    <div style=\"margin-bottom:20px\">\n                        <label style=\"display:block;font-weight:700;margin-bottom:8px;font-size:15px;color:#0B5A8E\">Email de Contacto<\/label>\n                        <input type=\"email\" id=\"email-input\" placeholder=\"ejemplo@correo.com\" required style=\"width:100%;padding:12px;border:2px solid #d1d5db;border-radius:8px;font-size:14px;font-family:inherit;transition:border 0.3s\" onfocus=\"this.style.borderColor='#0B5A8E'\">\n                        <small style=\"color:#64748b;font-size:11px;margin-top:6px;display:block\">Recibir\u00e1 un c\u00f3digo de 6 d\u00edgitos para verificar su identidad<\/small>\n                        \n                        <button type=\"button\" class=\"rf-btn\" id=\"btn-enviar\" onclick=\"enviarCodigo()\" style=\"margin-top:14px\">\n                            \u2709\ufe0f Enviar C\u00f3digo de Verificaci\u00f3n\n                        <\/button>\n                    <\/div>\n                    \n                    <div id=\"codigo-section\" style=\"display:none\">\n                        <div style=\"height:2px;background:linear-gradient(to right,transparent,#e5e7eb 50%,transparent);margin:20px 0\"><\/div>\n                        <div>\n                            <label style=\"display:block;font-weight:700;margin-bottom:8px;font-size:15px;color:#0B5A8E\">C\u00f3digo de Verificaci\u00f3n<\/label>\n                            <input type=\"text\" id=\"codigo-input\" maxlength=\"6\" placeholder=\"000000\" style=\"width:100%;padding:12px;border:2px solid #d1d5db;border-radius:8px;font-size:14px;font-family:inherit;text-align:center;letter-spacing:8px;font-weight:700\" onfocus=\"this.style.borderColor='#0B5A8E'\">\n                            <small style=\"color:#64748b;font-size:11px;margin-top:6px;display:block\">Ingrese el c\u00f3digo de 6 d\u00edgitos que recibi\u00f3 por email<\/small>\n                            \n                            <button type=\"button\" class=\"rf-btn\" id=\"btn-verificar\" onclick=\"verificarCodigo()\" style=\"margin-top:14px\">\n                                \u2713 Verificar y Continuar\n                            <\/button>\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n        \n        <script>\n        let tipoSeleccionado = '';\n        let emailGuardado = '';\n        \n        function selectTipo(tipo) {\n            document.querySelectorAll('.rf-tipo-card').forEach(c => c.classList.remove('selected'));\n            document.getElementById('card-' + tipo).classList.add('selected');\n            tipoSeleccionado = tipo;\n        }\n        \n        function enviarCodigo() {\n            const email = document.getElementById('email-input').value;\n            if (!tipoSeleccionado) { alert('Seleccione el tipo de documento haciendo click en una de las opciones'); return; }\n            if (!email) { alert('Ingrese su email'); return; }\n            \n            const btn = document.getElementById('btn-enviar');\n            btn.disabled = true;\n            btn.innerHTML = '\u23f3 Enviando c\u00f3digo...';\n            emailGuardado = email;\n            \n            fetch('https:\/\/consuladouy-bcn.es\/wp-admin\/admin-ajax.php', {\n                method: 'POST',\n                headers: {'Content-Type': 'application\/x-www-form-urlencoded'},\n                body: 'action=consulado_enviar_codigo&email=' + encodeURIComponent(email)\n            })\n            .then(r => r.json())\n            .then(data => {\n                if (data.success) {\n                    btn.innerHTML = '\u2713 C\u00f3digo enviado';\n                    btn.style.background = '#10B981';\n                    document.getElementById('codigo-section').style.display = 'block';\n                    alert('\u2713 Se ha enviado un c\u00f3digo de verificaci\u00f3n a ' + email);\n                } else {\n                    alert('\u274c ' + data.data.message);\n                    btn.disabled = false;\n                    btn.innerHTML = '\u2709\ufe0f Enviar C\u00f3digo de Verificaci\u00f3n';\n                }\n            });\n        }\n        \n        function verificarCodigo() {\n            const codigo = document.getElementById('codigo-input').value;\n            if (!codigo || codigo.length !== 6) { alert('Ingrese el c\u00f3digo de 6 d\u00edgitos'); return; }\n            \n            const btn = document.getElementById('btn-verificar');\n            btn.disabled = true;\n            btn.innerHTML = '\u23f3 Verificando...';\n            \n            fetch('https:\/\/consuladouy-bcn.es\/wp-admin\/admin-ajax.php', {\n                method: 'POST',\n                headers: {'Content-Type': 'application\/x-www-form-urlencoded'},\n                body: 'action=consulado_verificar_codigo&email=' + encodeURIComponent(emailGuardado) + '&codigo=' + codigo + '&tipo_documento=' + tipoSeleccionado\n            })\n            .then(r => r.json())\n            .then(data => {\n                if (data.success) {\n                    btn.innerHTML = '\u2713 Verificado correctamente';\n                    btn.style.background = '#10B981';\n                    alert('\u2713 Verificaci\u00f3n exitosa. Ser\u00e1 redirigido al formulario de registro.');\n                    setTimeout(() => window.location.reload(), 1000);\n                } else {\n                    alert('\u274c ' + data.data.message);\n                    btn.disabled = false;\n                    btn.innerHTML = '\u2713 Verificar y Continuar';\n                }\n            });\n        }\n        <\/script>\n        \t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Registre aqu\u00ed el retiro de su pasaporte o c\u00e9dula de identidad uruguaya en el Consulado de Uruguay en Barcelona. El proceso es sencillo y r\u00e1pido. Solo necesitar\u00e1 verificar su correo electr\u00f3nico y completar los datos solicitados.<\/p>\n","protected":false},"author":6445,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_post_transparent":"","_kad_post_title":"hide","_kad_post_layout":"fullwidth","_kad_post_sidebar_id":"","_kad_post_content_style":"unboxed","_kad_post_vertical_padding":"hide","_kad_post_feature":"hide","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"class_list":["post-13321","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/pages\/13321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/users\/6445"}],"replies":[{"embeddable":true,"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/comments?post=13321"}],"version-history":[{"count":20,"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/pages\/13321\/revisions"}],"predecessor-version":[{"id":13378,"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/pages\/13321\/revisions\/13378"}],"wp:attachment":[{"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/media?parent=13321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}