{"id":13041,"date":"2025-11-24T03:34:29","date_gmt":"2025-11-24T02:34:29","guid":{"rendered":"https:\/\/consuladouy-bcn.es\/httpdocs\/?page_id=13041"},"modified":"2025-12-03T23:06:53","modified_gmt":"2025-12-03T22:06:53","slug":"pasaporte-adulto","status":"publish","type":"page","link":"https:\/\/consuladouy-bcn.es\/httpdocs\/pasaporte-adulto\/","title":{"rendered":"Tr\u00e1mite Pasaporte"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"13041\" class=\"elementor elementor-13041\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-adce36a e-flex e-con-boxed e-con e-parent\" data-id=\"adce36a\" 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-91dd952 elementor-widget elementor-widget-html\" data-id=\"91dd952\" 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\n<style>\n\/* ==== CONTENEDOR GENERAL ==== *\/\n.pasaporte-box {\n    max-width: 900px;\n    margin: 35px auto;\n    background: #ffffff;\n    padding: 35px;\n    border-radius: 14px;\n    border: 1px solid #d4d4d4;\n    box-shadow: 0 3px 12px rgba(0,0,0,0.10);\n    font-family: 'Segoe UI', Roboto, Arial, sans-serif;\n    color: #222;\n}\n\n\/* ==== RESPONSIVE PARA M\u00d3VILES ==== *\/\n@media (max-width: 768px) {\n    .pasaporte-box {\n        margin: 15px auto;\n        padding: 20px 15px;\n        border-radius: 10px;\n    }\n}\n\n\/* ==== TITULOS ==== *\/\n.pasaporte-box h2 {\n    color: #003366;\n    font-size: 28px;\n    margin-top: 0;\n    font-weight: 700;\n    line-height: 1.3;\n}\n\n@media (max-width: 768px) {\n    .pasaporte-box h2 {\n        font-size: 22px;\n    }\n}\n\n.section-title {\n    font-size: 22px;\n    color: #0a3d62;\n    margin-top: 35px;\n    border-left: 5px solid #0a3d62;\n    padding-left: 10px;\n    font-weight: bold;\n    line-height: 1.3;\n}\n\n@media (max-width: 768px) {\n    .section-title {\n        font-size: 18px;\n        margin-top: 25px;\n        border-left: 4px solid #0a3d62;\n        padding-left: 8px;\n    }\n}\n\n\/* ==== P\u00c1RRAFOS Y TEXTO ==== *\/\n.pasaporte-box p {\n    line-height: 1.6;\n    margin-bottom: 15px;\n}\n\n@media (max-width: 768px) {\n    .pasaporte-box p {\n        font-size: 15px;\n        line-height: 1.5;\n    }\n}\n\n\/* ==== LISTAS ==== *\/\n.pasaporte-box ul {\n    padding-left: 22px;\n    margin-top: 12px;\n}\n\n@media (max-width: 768px) {\n    .pasaporte-box ul {\n        padding-left: 18px;\n        margin-top: 10px;\n    }\n}\n\n.pasaporte-box li {\n    margin-bottom: 8px;\n    line-height: 1.5;\n}\n\n@media (max-width: 768px) {\n    .pasaporte-box li {\n        margin-bottom: 12px;\n        line-height: 1.6;\n        font-size: 15px;\n    }\n}\n\n\/* ==== CAJAS DESTACADAS ==== *\/\n.alert-info {\n    background: #e8f4ff;\n    border-left: 5px solid #2a7bdc;\n    padding: 15px 18px;\n    border-radius: 8px;\n    margin: 25px 0;\n}\n\n@media (max-width: 768px) {\n    .alert-info {\n        padding: 12px 15px;\n        border-left: 4px solid #2a7bdc;\n        border-radius: 6px;\n        margin: 20px 0;\n        font-size: 15px;\n    }\n}\n\n.alert-warning {\n    background: #fff4e6;\n    border-left: 5px solid #ff9f1a;\n    padding: 15px 18px;\n    border-radius: 8px;\n    margin: 25px 0;\n}\n\n@media (max-width: 768px) {\n    .alert-warning {\n        padding: 12px 15px;\n        border-left: 4px solid #ff9f1a;\n        border-radius: 6px;\n        margin: 20px 0;\n        font-size: 15px;\n    }\n}\n\n.alert-danger {\n    background: #ffe5e5;\n    border-left: 5px solid #cc0000;\n    padding: 15px 18px;\n    border-radius: 8px;\n    margin: 25px 0;\n}\n\n@media (max-width: 768px) {\n    .alert-danger {\n        padding: 12px 15px;\n        border-left: 4px solid #cc0000;\n        border-radius: 6px;\n        margin: 20px 0;\n        font-size: 15px;\n    }\n}\n\n\/* ==== ENLACES ==== *\/\n.pasaporte-box a {\n    color: #0066cc;\n    font-weight: 600;\n    word-break: break-word;\n}\n\n.pasaporte-box a:hover {\n    text-decoration: underline;\n}\n\n@media (max-width: 768px) {\n    .pasaporte-box a {\n        font-size: 15px;\n        display: inline-block;\n        margin: 5px 0;\n    }\n}\n\n\/* ==== CONTENEDOR DEL FORMULARIO ==== *\/\n.formulario-container {\n    margin-top: 30px;\n    padding: 20px;\n    background: #f5f7fa;\n    border-radius: 10px;\n    border: 1px solid #dce1e8;\n}\n\n@media (max-width: 768px) {\n    .formulario-container {\n        margin-top: 20px;\n        padding: 15px 10px;\n        border-radius: 8px;\n    }\n}\n\n\/* ==== MEJORAS GENERALES DE LEGIBILIDAD M\u00d3VIL ==== *\/\n@media (max-width: 768px) {\n    .pasaporte-box strong {\n        font-size: 15px;\n    }\n    \n    \/* Evitar que el contenido se salga de la pantalla *\/\n    .pasaporte-box * {\n        max-width: 100%;\n        word-wrap: break-word;\n        overflow-wrap: break-word;\n    }\n    \n    \/* Mejorar espaciado en m\u00f3viles *\/\n    .pasaporte-box br {\n        content: \"\";\n        display: block;\n        margin-bottom: 5px;\n    }\n}\n\n\/* ==== TABLETS (768px - 1024px) ==== *\/\n@media (min-width: 769px) and (max-width: 1024px) {\n    .pasaporte-box {\n        margin: 25px auto;\n        padding: 30px 25px;\n    }\n    \n    .pasaporte-box h2 {\n        font-size: 26px;\n    }\n    \n    .section-title {\n        font-size: 20px;\n    }\n}\n<\/style>\n\n\n\n\n<div class=\"pasaporte-box\">\n\n<h2>Procedimiento para realizar el tr\u00e1mite de Pasaporte<\/h2>\n\n<p>\nAgradecemos que lea detenidamente la siguiente informaci\u00f3n para solicitar una cita para la expedici\u00f3n o renovaci\u00f3n de un Pasaporte.\n<\/p>\n\n<p>\nPara gestionar el tr\u00e1mite deber\u00e1 completar el formulario correspondiente y adjuntar la documentaci\u00f3n requerida seg\u00fan el detalle que se presenta a continuaci\u00f3n.\n<\/p>\n\n\n<div class=\"section-title\">Documentaci\u00f3n<\/div>\n\n<p>Los documentos deber\u00e1n adjuntarse \u00fanicamente en formato <strong>.pdf, .img, .jpg o .png<\/strong>.<\/p>\n\n<ul>\n    <li><strong>Pasaporte actual<\/strong> (p\u00e1gina de la foto) si est\u00e1 vencido o deteriorado, o <strong>Denuncia Policial<\/strong> por robo, hurto o extrav\u00edo donde figure el n\u00famero de pasaporte.<\/li>\n    <li><strong>C\u00e9dula de Identidad uruguaya<\/strong> (ambas caras, si la posee).<\/li>\n    <li>\n        <strong>Si naci\u00f3 fuera de Uruguay, Partida de Nacimiento Inscripta en Uruguay<\/strong><br>\n        Partidas digitalizadas pueden descargarse en:<br>\n        <a href=\"https:\/\/dgrec.gub.uy\/partidasdigitales\/publico\/solicitudPartidaNacimiento.xhtml\" target=\"_blank\">\n            Enlace oficial de Partidas Digitales\n        <\/a>\n    <\/li>\n    <li>\n        <strong>Certificado de Antecedentes Penales Espa\u00f1oles Apostillado<\/strong> (a partir de los 18 a\u00f1os).<br>\n        Disponible en:<br>\n        <a href=\"https:\/\/www.mjusticia.gob.es\/es\/ciudadania\/tramites\/certificado-antecedentes\" target=\"_blank\">\n           1- Antecedentes - Ministerio de Justicia de Espa\u00f1a\n        <\/a>\n        <br><a href=\"https:\/\/www.mjusticia.gob.es\/es\/ciudadania\/tramites\/legalizacion-unica-apostilla\" target=\"_blank\">\n            2- Apostilla - Ministerio de Justicia de Espa\u00f1a\n        <\/a>\n        <br>\n        Si obtiene los antecedentes con su DNI o NIE, deber\u00e1 adjuntar dicho documento.\n    <\/li>\n \n    <li><strong>Menores de 18 a\u00f1os:<\/strong> Debe asistir a la cita el menor junto a sus dos padres con sus respectivos documentos de identidad.<\/li>\n<\/ul>\n\n<div class=\"alert-danger\">\n<strong>Importante:<\/strong> Si usted posee causas abiertas en Espa\u00f1a no podr\u00e1 tramitar su pasaporte.<br> Si cuando inicie su tr\u00e1mite la Direcci\u00f3n Nacional de Identificaci\u00f3n Civil (DNIC) verifica que tiene causas abiertas en Uruguay su tr\u00e1mite quedar\u00e1 suspendido, y no se reintegrar\u00e1 el dinero.\n<\/div>\n\n\n\n<div class=\"section-title\">Requisitos para Hijos de Uruguayos Nacidos en el Exterior<\/div>\n\n<ul>\n    <li>Partida de Nacimiento del Padre o Madre uruguayo (Ley 16.021).<\/li>\n    <li>Pasaporte uruguayo vigente y\/o C\u00e9dula de Identidad vigente del padre o madre uruguayo.<\/li>\n    <li>Partida de Nacimiento en formato uruguayo del solicitante.<\/li>\n<\/ul>\n\n\n\n<div class=\"section-title\">Requisitos para Nietos de Uruguayos Nacidos en el Exterior<\/div>\n\n<ul>\n    <li>Partida de Nacimiento del abuelo o abuela uruguaya (Ley 19.362).<\/li>\n    <li>Partida de Nacimiento en formato uruguayo del padre o madre uruguayo.<\/li>\n    <li>Pasaporte o C\u00e9dula de Identidad vigentes del progenitor uruguayo.<\/li>\n    <li>Partida de Nacimiento en formato uruguayo del solicitante.<\/li>\n<\/ul>\n\n\n\n<div class=\"alert-warning\">\n<strong>Normativa vigente:<\/strong> Desde septiembre de 2022 por el Decreto del Poder Ejecutivo N\u00ba 281\/2022 es obligatorio presentar Certificado de carencia de Antecedentes Penales del lugar de su residencia.\n<\/div>\n\n\n\n<div class=\"alert-info\">\n<strong>Renovaciones:<\/strong> Si renueva su pasaporte con menos de 1 a\u00f1o de vigencia, el ejemplar actual quedar\u00e1 retenido en el Consulado hasta la recepci\u00f3n del nuevo pasaporte.\n<\/div>\n\n\n\n<div class=\"section-title\">Costos del tr\u00e1mite<\/div>\n\n<p>\nEl costo aproximado es de <strong>34 EUR<\/strong> para renovaciones y <strong>68 EUR<\/strong> para primera expedici\u00f3n.\n<\/p>\n\n<p>\n<strong>El pago se realiza \u00fanicamente mediante tarjeta de cr\u00e9dito\/d\u00e9bito.<\/strong>\n\n<\/p>\n\n<p><strong>No hay devoluci\u00f3n de los pagos efectuados.<\/strong><\/p>\n\n\n\n<div class=\"section-title\">Formulario de Solicitud<\/div>\n\n<p>\nComplete el siguiente formulario para iniciar el tr\u00e1mite:\n<\/p>\n\n<!-- AQUI SE INSERTA TU SHORTCODE REAL DEL FORMULARIO -->\n<div class=\"formulario-container\">\n        <div style=\"max-width:900px;margin:40px auto;padding:35px;background:#fff;border-radius:12px;box-shadow:0 0 20px rgba(0,0,0,0.12);font-family:Arial,sans-serif;\">\n                        <form method=\"POST\" enctype=\"multipart\/form-data\" id=\"form-pasaporte\">\n            <input type=\"hidden\" id=\"pasaporte_nonce\" name=\"pasaporte_nonce\" value=\"3b8301172d\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/httpdocs\/wp-json\/wp\/v2\/pages\/13041\" \/>                        <h2 style=\"color:#0a4b78;border-left:6px solid #0a4b78;padding-left:14px;\">Solicitud de Pasaporte Uruguayo<\/h2>\n            <select name=\"tipo_tramite\" id=\"tipo_tramite\" required style=\"width:100%;padding:12px;margin:8px 0 20px;border:1px solid #ccc;border-radius:6px;\">\n                <option value=\"\">-- Seleccione tipo de tr\u00e1mite --<\/option>\n                <option value=\"primera_vez\" >1. Expedici\u00f3n por primera vez<\/option>\n                <option value=\"renovacion_vencimiento\" >2. Renovaci\u00f3n por vencimiento<\/option>\n                <option value=\"renovacion_deterioro\" >3. Renovaci\u00f3n por deterioro<\/option>\n                <option value=\"renovacion_robo\" >4. Renovaci\u00f3n por robo, hurto o extrav\u00edo<\/option>\n                <option value=\"renovacion_menos1\" >5. Renovaci\u00f3n con menos de 1 a\u00f1o de vigencia<\/option>\n                <option value=\"restablecer\" >6. Restablecer versi\u00f3n anterior al 16\/04\/2025<\/option>\n            <\/select>\n            <div style=\"display:grid;grid-template-columns:1fr 1fr;gap:15px;\">\n                <input type=\"text\" name=\"primer_nombre\" placeholder=\"Primer nombre\" required style=\"padding:12px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n                <input type=\"text\" name=\"segundo_nombre\" placeholder=\"Segundo nombre\" style=\"padding:12px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n            <\/div>\n            <div style=\"display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px;\">\n                <input type=\"text\" name=\"primer_apellido\" placeholder=\"Primer apellido\" required style=\"padding:12px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n                <input type=\"text\" name=\"segundo_apellido\" placeholder=\"Segundo apellido\" style=\"padding:12px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n            <\/div>\n            <input type=\"text\" name=\"cedula\" placeholder=\"C\u00e9dula de Identidad Uruguaya (Si no tuvo o no recuerda ingrese 0)\" required style=\"width:100%;padding:12px;margin:15px 0;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n            <!-- CAMPO NIE\/DNI A\u00d1ADIDO -->\n            <input type=\"text\" name=\"nie_dni\" placeholder=\"NIE o DNI espa\u00f1ol (si posee)\" style=\"width:100%;padding:12px;margin:15px 0;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n            <label style=\"display:block;margin-bottom:8px;font-weight:bold;color:#0a4b78;font-size:16px;\">Fecha de Nacimiento<\/label>\n            <input type=\"date\" name=\"fecha_nacimiento\" id=\"fecha_nacimiento\" required style=\"width:100%;padding:12px;margin-bottom:15px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n            <select name=\"estado_civil\" required style=\"width:100%;padding:12px;margin:8px 0 15px;border:1px solid #ccc;border-radius:6px;\">\n                <option value=\"\">-- Estado civil --<\/option>\n                <option >Soltero\/a<\/option>\n                <option >Casado\/a<\/option>\n                <option >Divorciado\/a<\/option>\n                <option >Viudo\/a<\/option>\n                <option >Uni\u00f3n concubinaria<\/option>\n            <\/select>\n            <input type=\"text\" name=\"lugar_nacimiento\" id=\"lugar_nacimiento\" value=\"Uruguay\" required style=\"width:100%;padding:12px;margin:8px 0 15px;border:1px solid #ccc;border-radius:6px;\">\n            <input type=\"text\" name=\"departamento\" placeholder=\"Departamento \/ Comunidad Aut\u00f3noma de nacimiento\" required style=\"width:100%;padding:12px;margin:8px 0 15px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n            <input type=\"text\" name=\"localidad\" placeholder=\"Ciudad\/Provincia\" required style=\"width:100%;padding:12px;margin:8px 0 15px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n<h3 style=\"color:#0a4b78;margin:20px 0 15px;\">Domicilio<\/h3>\n<div style=\"display:grid;grid-template-columns:1fr 1fr;gap:15px;\">\n    <select name=\"domicilio\" id=\"domicilio_select\" required style=\"padding:12px;border:1px solid #ccc;border-radius:6px;background:white;\">\n        <option value=\"\">Seleccione Comunidad Aut\u00f3noma<\/option>\n        <option value=\"Catalu\u00f1a\" >Catalu\u00f1a<\/option>\n        <option value=\"Arag\u00f3n\" >Arag\u00f3n<\/option>\n        <option value=\"Baleares\" >Baleares<\/option>\n        <option value=\"Principado de Andorra\" >Principado de Andorra<\/option>\n        <option value=\"Otros\" >Otros<\/option>\n    <\/select>\n    <input type=\"text\" name=\"provincia\" placeholder=\"Ciudad\/Provincia\" required style=\"padding:12px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n<\/div>\n<div id=\"otros_domicilio_container\" style=\"display:none;margin-top:15px;\">\n    <input type=\"text\" name=\"domicilio_otros\" id=\"domicilio_otros\" placeholder=\"Especifique Comunidad Aut\u00f3noma \/ Pa\u00eds\" style=\"padding:12px;border:1px solid #ccc;border-radius:6px;width:100%;\" value=\"\">\n<\/div>\n<div style=\"display:grid;grid-template-columns:1fr;gap:15px;margin-top:15px;\">\n    <input type=\"text\" name=\"comunidad_autonoma\" placeholder=\"Domicilio completo\" required style=\"padding:12px;border:1px solid #ccc;border-radius:6px;width:100%;\" value=\"\">\n<\/div>\n<script>\ndocument.getElementById('domicilio_select').addEventListener('change', function() {\n    const otrosContainer = document.getElementById('otros_domicilio_container');\n    const otrosInput = document.getElementById('domicilio_otros');\n    if (this.value === 'Otros') {\n        otrosContainer.style.display = 'block';\n        otrosInput.required = true;\n    } else {\n        otrosContainer.style.display = 'none';\n        otrosInput.required = false;\n        otrosInput.value = '';\n    }\n});\n\/\/ Trigger on load if \"Otros\" is selected\nif (document.getElementById('domicilio_select').value === 'Otros') {\n    document.getElementById('otros_domicilio_container').style.display = 'block';\n    document.getElementById('domicilio_otros').required = true;\n}\n<\/script>\n\n            <div>\n                <h3 style=\"color:#0a4b78;margin:20px 0 15px;\">Contacto<\/h3>\n                \n                <!-- Alerta de cita previa (se mostrar\u00e1 din\u00e1micamente) -->\n                <div id=\"alerta-cita-previa\" style=\"display:none;background:#fff3cd;border-left:6px solid #ff9800;padding:20px;margin:0 0 20px;border-radius:8px;\">\n                    <div style=\"display:flex;align-items:center;gap:15px;\">\n                        <div style=\"font-size:40px;\">\u26a0\ufe0f<\/div>\n                        <div style=\"flex:1;\">\n                            <strong style=\"color:#e67e22;font-size:18px;\">Ya tienes una cita reservada<\/strong>\n                            <p id=\"info-cita-previa\" style=\"margin:10px 0;color:#666;line-height:1.6;\"><\/p>\n                            <p style=\"margin:10px 0 0;font-size:14px;color:#856404;\">\n                                Si contin\u00faas, tu cita anterior ser\u00e1 <strong>cancelada autom\u00e1ticamente<\/strong> y se liberar\u00e1 para otros usuarios.\n                            <\/p>\n                        <\/div>\n                    <\/div>\n                <\/div>\n                \n                <div style=\"display: flex; gap: 10px;\">\n                    <input type=\"email\" id=\"email-pasaporte\" name=\"email\" placeholder=\"Email\" required style=\"width:50%;padding:12px;margin:8px 0 15px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n                    <input type=\"text\" name=\"telefono\" placeholder=\"Tel\u00e9fono M\u00f3vil\" required style=\"width:50%;padding:12px;margin:8px 0 15px;border:1px solid #ccc;border-radius:6px;\" value=\"\">\n                <\/div>\n            <\/div>\n            <p style=\"margin:30px 0 8px;font-weight:bold;color:#0a4b78;\">Comentarios adicionales (opcional)<\/p>\n            <textarea name=\"comentarios\" rows=\"3\" style=\"width:100%;padding:12px;border:1px solid #ccc;border-radius:6px;\"><\/textarea>\n\n                        <div id=\"documentos_requeridos\" style=\"margin-top:30px;\">\n                <h3 style=\"color:#0a4b78;margin:20px 0 15px;\">Documentos del solicitante<\/h3>\n                            <\/div>\n                                           <h2 style=\"color:#0a4b78;border-left:6px solid #0a4b78;padding-left:14px;margin:50px 0 20px;\">Cita reservada<\/h2>\n\n                                                <select name=\"cita_id\" required style=\"width:100%;padding:18px;font-size:20px;border:3px solid #0a4b78;border-radius:12px;background:#fff;\">\n                        <option value=\"\">-- Elija fecha y hora disponible --<\/option>\n                        <optgroup label=\"Jueves 8 de octubre de 2026\"><option disabled style=\"background:#fafafa;color:#e74c3c;font-weight:bold;\">\u00daLTIMO CUPO<\/option><option value=\"73173\">09:30 hs<\/option><\/optgroup><optgroup label=\"Viernes 9 de octubre de 2026\"><option disabled style=\"background:#fafafa;color:#e74c3c;font-weight:bold;\">\u00daLTIMO CUPO<\/option><option value=\"73175\">09:00 hs<\/option><\/optgroup><optgroup label=\"Martes 13 de octubre de 2026\"><option disabled style=\"background:#fafafa;color:#27ae60;font-weight:bold;\">3 CUPOS<\/option><option value=\"73193\">09:00 hs<\/option><option value=\"73194\">09:30 hs<\/option><option value=\"73195\">10:00 hs<\/option><\/optgroup><optgroup label=\"Mi\u00e9rcoles 14 de octubre de 2026\"><option disabled style=\"background:#fafafa;color:#27ae60;font-weight:bold;\">2 CUPOS<\/option><option value=\"73196\">09:00 hs<\/option><option value=\"73197\">09:30 hs<\/option><\/optgroup><optgroup label=\"Jueves 15 de octubre de 2026\"><option disabled style=\"background:#fafafa;color:#27ae60;font-weight:bold;\">2 CUPOS<\/option><option value=\"73199\">09:00 hs<\/option><option value=\"73200\">09:30 hs<\/option><\/optgroup><optgroup label=\"Viernes 16 de octubre de 2026\"><option disabled style=\"background:#fafafa;color:#e74c3c;font-weight:bold;\">\u00daLTIMO CUPO<\/option><option value=\"73202\">09:00 hs<\/option><\/optgroup>                    <\/select>\n                            \n            <!-- \u2705 CONSENTIMIENTO DE PRIVACIDAD -->\n            <div style=\"margin: 40px 0 30px; padding: 20px; background: #f0f9ff; border-left: 4px solid #0284c7; border-radius: 8px;\">\n                <div style=\"display: flex; align-items: flex-start; gap: 12px;\">\n                    <input \n                        type=\"checkbox\" \n                        id=\"consentimiento_privacidad\" \n                        name=\"consentimiento_privacidad\" \n                        required\n                        style=\"margin-top: 4px; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0;\"\n                    >\n                    <label for=\"consentimiento_privacidad\" style=\"flex: 1; font-size: 14px; line-height: 1.6; color: #1e293b; cursor: pointer;\">\n                        <strong style=\"color: #0284c7;\">He le\u00eddo y acepto la Pol\u00edtica de Privacidad<\/strong>\n                        <span style=\"display: block; margin-top: 8px; font-size: 13px; color: #64748b;\">\n                            Al registrarse y utilizar los servicios del Consulado de la Rep\u00fablica Oriental del Uruguay en Barcelona, \n                            usted consiente que el tratamiento de sus datos personales se realice de acuerdo con la Ley N\u00ba 18.331 de Uruguay y normas vinculadas \n                            <a href=\"#\" onclick=\"mostrarPoliticaPrivacidad(); return false;\" style=\"color: #0284c7; text-decoration: underline;\">ver m\u00e1s<\/a>\n                        <\/span>\n                        <span style=\"display: block; margin-top: 6px; font-size: 12px; color: #64748b; font-style: italic;\">\n                            Sus datos ser\u00e1n tratados para la gesti\u00f3n de tr\u00e1mites consulares.\n                        <\/span>\n                    <\/label>\n                <\/div>\n            <\/div>\n\n            <input type=\"hidden\" name=\"enviar_pasaporte\" value=\"1\" id=\"hidden-enviar-pasaporte\" disabled>\n            <button type=\"submit\" name=\"enviar_pasaporte\" id=\"btn-enviar-pasaporte\" style=\"background:#0a4b78;color:#fff;padding:22px;font-size:26px;border:none;border-radius:12px;width:100%;margin:0;cursor:pointer;font-weight:bold;\">\n                RESERVAR CITA Y ENVIAR SOLICITUD            <\/button>\n            <script>\n            document.getElementById('form-pasaporte').addEventListener('submit', function() {\n                var btn = document.getElementById('btn-enviar-pasaporte');\n                var hidden = document.getElementById('hidden-enviar-pasaporte');\n                if (!btn) return;\n                \/\/ Activar el hidden para que el POST llegue con enviar_pasaporte=1\n                if (hidden) hidden.disabled = false;\n                btn.disabled = true;\n                btn.style.background = '#555';\n                btn.style.cursor = 'not-allowed';\n                btn.innerHTML = '<span style=\"display:inline-flex;align-items:center;justify-content:center;gap:14px;\">'\n                    + '<svg style=\"animation:spin 1s linear infinite;width:28px;height:28px;\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\"><circle cx=\"12\" cy=\"12\" r=\"10\" stroke-opacity=\".3\"\/><path d=\"M12 2a10 10 0 0 1 10 10\" stroke-linecap=\"round\"\/><\/svg>'\n                    + 'Enviando, por favor espere...'\n                    + '<\/span>';\n            });\n            <\/script>\n            <style>@keyframes spin{to{transform:rotate(360deg)}}<\/style>\n        <\/form>\n    <\/div>\n    \n    <!-- =====================================================\n         MODAL POL\u00cdTICA DE PRIVACIDAD\n         ===================================================== -->\n    <div id=\"modalPrivacidad\" style=\"display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 10000; overflow-y: auto;\">\n        <div style=\"max-width: 800px; margin: 50px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);\">\n            <!-- Header -->\n            <div style=\"background: linear-gradient(135deg, #0284c7, #0369a1); padding: 30px; border-radius: 12px 12px 0 0;\">\n                <div style=\"display: flex; justify-content: space-between; align-items: center;\">\n                    <h2 style=\"margin: 0; color: white; font-size: 24px; font-weight: 700;\">\n                        \ud83d\udd12 Pol\u00edtica de Privacidad\n                    <\/h2>\n                    <button onclick=\"cerrarPoliticaPrivacidad()\" style=\"background: none; border: none; color: white; font-size: 32px; cursor: pointer; line-height: 1; padding: 0; width: 40px; height: 40px;\">\n                        \u00d7\n                    <\/button>\n                <\/div>\n                <p style=\"margin: 10px 0 0; color: rgba(255,255,255,0.9); font-size: 14px;\">\n                    Consulado de la Rep\u00fablica Oriental del Uruguay en Barcelona\n                <\/p>\n            <\/div>\n            \n            <!-- Content -->\n            <div style=\"padding: 40px; max-height: 600px; overflow-y: auto;\">\n                \n                <!-- Introducci\u00f3n -->\n                <div style=\"background: #fef3c7; border-left: 4px solid #f59e0b; padding: 20px; margin-bottom: 30px; border-radius: 8px;\">\n                    <p style=\"margin: 0; color: #92400e; line-height: 1.6;\">\n                        Al registrarse y utilizar los servicios del <strong>CONSULADO DE LA REP\u00daBLICA ORIENTAL DEL URUGUAY EN BARCELONA<\/strong> \n                        usted consiente y acepta que el tratamiento de sus datos personales se realice de acuerdo con lo informado en este documento \n                        y con lo dispuesto en la legislaci\u00f3n de la Rep\u00fablica Oriental del Uruguay, <strong>Ley N\u00ba 18.331<\/strong>, de 11 de agosto de 2008 \n                        y normas vinculadas.\n                    <\/p>\n                <\/div>\n\n                <!-- 1. Tratamiento de datos -->\n                <div style=\"margin-bottom: 30px;\">\n                    <h3 style=\"color: #0284c7; font-size: 20px; margin: 0 0 15px; border-bottom: 2px solid #0284c7; padding-bottom: 10px;\">\n                        1\ufe0f\u20e3 Tratamiento de datos\n                    <\/h3>\n                    <p style=\"color: #1e293b; line-height: 1.8; margin: 0 0 12px;\">\n                        Los datos personales recabados y accedidos para el registro en nuestra base de datos ser\u00e1n tratados por las autoridades \n                        competentes de la Rep\u00fablica Oriental del Uruguay responsables de los distintos tr\u00e1mites consulares.\n                    <\/p>\n                <\/div>\n\n                <!-- 2. Cookies -->\n                <div style=\"margin-bottom: 30px;\">\n                    <h3 style=\"color: #0284c7; font-size: 20px; margin: 0 0 15px; border-bottom: 2px solid #0284c7; padding-bottom: 10px;\">\n                        2\ufe0f\u20e3 Cookies\n                    <\/h3>\n                    <p style=\"color: #1e293b; line-height: 1.8; margin: 0;\">\n                        El Consulado General de la Rep\u00fablica Oriental del Uruguay en Barcelona utiliza cookies. Usted puede configurar su navegador \n                        para ser avisado de la recepci\u00f3n de las cookies o impedir su instalaci\u00f3n.\n                    <\/p>\n                <\/div>\n\n                <!-- 3. Ejercicio de los derechos -->\n                <div style=\"margin-bottom: 30px;\">\n                    <h3 style=\"color: #0284c7; font-size: 20px; margin: 0 0 15px; border-bottom: 2px solid #0284c7; padding-bottom: 10px;\">\n                        3\ufe0f\u20e3 Ejercicio de los derechos\n                    <\/h3>\n                    <ul style=\"color: #475569; line-height: 1.8; margin: 12px 0;\">\n                        <li>Correo electr\u00f3nico: <strong>cdbarcelona@mrree.gub.uy<\/strong><\/li>\n                    <\/ul>\n                <\/div>\n\n                <!-- 4. Ley aplicable -->\n                <div style=\"margin-bottom: 30px;\">\n                    <h3 style=\"color: #0284c7; font-size: 20px; margin: 0 0 15px; border-bottom: 2px solid #0284c7; padding-bottom: 10px;\">\n                        4\ufe0f\u20e3 Ley aplicable y jurisdicci\u00f3n competente\n                    <\/h3>\n                    <p style=\"color: #1e293b; line-height: 1.8; margin: 0 0 12px;\">\n                        Esta Pol\u00edtica se encuentra regida en todas sus cl\u00e1usulas por las leyes de la Rep\u00fablica Oriental del Uruguay.\n                    <\/p>\n                <\/div>\n\n                <!-- Footer informativo -->\n                <div style=\"background: #f8fafc; padding: 20px; border-radius: 8px; border: 1px solid #e2e8f0;\">\n                    <p style=\"margin: 0 0 10px; color: #0f172a; font-weight: 600;\">\n                        \ud83d\udccb Informaci\u00f3n adicional sobre protecci\u00f3n de datos:\n                    <\/p>\n                    <p style=\"margin: 0; color: #64748b; font-size: 13px; line-height: 1.6;\">\n                        Los datos que nos facilite se conservar\u00e1n mientras se mantenga la relaci\u00f3n consular o durante el tiempo necesario \n                        para cumplir con obligaciones legales. Los datos podr\u00e1n ser utilizados para realizar an\u00e1lisis estad\u00edsticos, siempre \n                        de forma anonimizada y agregada.\n                    <\/p>\n                <\/div>\n            <\/div>\n            \n            <!-- Footer del modal -->\n            <div style=\"background: #f8fafc; padding: 20px 40px; border-top: 1px solid #e2e8f0; border-radius: 0 0 12px 12px;\">\n                <button \n                    onclick=\"aceptarYCerrarPrivacidad()\" \n                    style=\"width: 100%; background: linear-gradient(135deg, #0284c7, #0369a1); color: white; border: none; padding: 15px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(2,132,199,0.3); transition: all 0.3s ease;\"\n                    onmouseover=\"this.style.transform='translateY(-2px)'; this.style.boxShadow='0 6px 20px rgba(2,132,199,0.4)'\"\n                    onmouseout=\"this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 12px rgba(2,132,199,0.3)'\"\n                >\n                    \u2705 He le\u00eddo y acepto la Pol\u00edtica de Privacidad\n                <\/button>\n                <p style=\"text-align: center; margin: 15px 0 0; color: #94a3b8; font-size: 12px;\">\n                    \u00daltima actualizaci\u00f3n: Enero 2026\n                <\/p>\n            <\/div>\n        <\/div>\n    <\/div>\n    \n    <script>\n    \/\/ Funciones para el modal de privacidad\n    function mostrarPoliticaPrivacidad() {\n        document.getElementById('modalPrivacidad').style.display = 'block';\n        document.body.style.overflow = 'hidden';\n    }\n\n    function cerrarPoliticaPrivacidad() {\n        document.getElementById('modalPrivacidad').style.display = 'none';\n        document.body.style.overflow = 'auto';\n    }\n\n    function aceptarYCerrarPrivacidad() {\n        document.getElementById('consentimiento_privacidad').checked = true;\n        cerrarPoliticaPrivacidad();\n    }\n\n    \/\/ Cerrar con ESC\n    document.addEventListener('keydown', function(e) {\n        if (e.key === 'Escape' && document.getElementById('modalPrivacidad')?.style.display === 'block') {\n            cerrarPoliticaPrivacidad();\n        }\n    });\n\n    \/\/ Cerrar al hacer click fuera\n    document.getElementById('modalPrivacidad')?.addEventListener('click', function(e) {\n        if (e.target === this) {\n            cerrarPoliticaPrivacidad();\n        }\n    });\n    <\/script>\n    \n    <!-- MODAL VER MODELO -->\n    <div id=\"modal-lupa\" class=\"modal\" onclick=\"this.style.display='none'\">\n        <span class=\"close-modal\" onclick=\"document.getElementById('modal-lupa').style.display='none'\">X<\/span>\n        <img decoding=\"async\" id=\"imagen-lupa\" src=\"\" alt=\"Vista previa\">\n    <\/div>\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n    const tipo = document.getElementById('tipo_tramite');\n    const fechaNac = document.getElementById('fecha_nacimiento');\n    const lugarNac = document.getElementById('lugar_nacimiento');\n    const cont = document.getElementById('documentos_requeridos');\n    const boton = document.getElementById('boton_enviar');\n    let partidaSeleccionada = null;\n    const esCorreccion = false;\n    \n    \/\/ \u2728 VERIFICAR CITAS PREVIAS AL ESCRIBIR EMAIL\n    const emailInput = document.getElementById('email-pasaporte');\n    const alertaCitaPrevia = document.getElementById('alerta-cita-previa');\n    const infoCitaPrevia = document.getElementById('info-cita-previa');\n    let timeoutEmail = null;\n    \n    if (emailInput && !esCorreccion) {\n        \/\/ Verificar cuando se completen los campos clave\n        const primerNombre = document.querySelector('input[name=\"primer_nombre\"]');\n        const primerApellido = document.querySelector('input[name=\"primer_apellido\"]');\n        const cedulaInput = document.querySelector('input[name=\"cedula\"]');\n        \n        function verificarSiEstaCompleto() {\n            clearTimeout(timeoutEmail);\n            \n            const email = emailInput.value.trim();\n            const nombre = primerNombre.value.trim();\n            const apellido = primerApellido.value.trim();\n            const cedula = cedulaInput.value.trim();\n            \n            \/\/ Verificar solo si hay email v\u00e1lido Y al menos nombre y apellido\n            if (email.includes('@') && email.includes('.') && nombre.length >= 2 && apellido.length >= 2) {\n                timeoutEmail = setTimeout(function() {\n                    verificarCitaPrevia(email, nombre, apellido, cedula);\n                }, 1000);\n            } else {\n                alertaCitaPrevia.style.display = 'none';\n            }\n        }\n        \n        \/\/ Escuchar cambios en todos los campos relevantes\n        emailInput.addEventListener('input', verificarSiEstaCompleto);\n        primerNombre.addEventListener('input', verificarSiEstaCompleto);\n        primerApellido.addEventListener('input', verificarSiEstaCompleto);\n        cedulaInput.addEventListener('input', verificarSiEstaCompleto);\n        \n        \/\/ \u2728 VERIFICAR INMEDIATAMENTE AL CARGAR SI LOS CAMPOS YA TIENEN DATOS\n        \/\/ (Cuando el usuario presiona \"Atr\u00e1s\" los campos est\u00e1n pre-llenados)\n        setTimeout(function() {\n            const email = emailInput.value.trim();\n            const nombre = primerNombre.value.trim();\n            const apellido = primerApellido.value.trim();\n            const cedula = cedulaInput.value.trim();\n            \n            if (email.includes('@') && email.includes('.') && nombre.length >= 2 && apellido.length >= 2) {\n                verificarCitaPrevia(email, nombre, apellido, cedula);\n            }\n        }, 500); \/\/ Esperar 500ms despu\u00e9s de cargar la p\u00e1gina\n    }\n    \n    function verificarCitaPrevia(email, nombre, apellido, cedula) {\n        fetch('https:\/\/consuladouy-bcn.es\/wp-admin\/admin-ajax.php', {\n            method: 'POST',\n            headers: {\n                'Content-Type': 'application\/x-www-form-urlencoded',\n            },\n            body: 'action=verificar_cita_previa_pasaporte&email=' + encodeURIComponent(email) + \n                  '&nombre=' + encodeURIComponent(nombre) +\n                  '&apellido=' + encodeURIComponent(apellido) +\n                  '&cedula=' + encodeURIComponent(cedula) +\n                  '&cita_actual=0'\n        })\n        .then(response => response.json())\n        .then(data => {\n            if (data.success && data.data.tiene_cita) {\n                const cita = data.data.cita;\n                infoCitaPrevia.innerHTML = \n                    '<strong>Fecha:<\/strong> ' + cita.fecha_formateada + ' a las ' + cita.hora + '<br>' +\n                    '<strong>Estado:<\/strong> ' + (cita.confirmada ? '<span style=\"color:#27ae60;\">Confirmada \u2713<\/span>' : '<span style=\"color:#ff9800;\">Pendiente de confirmaci\u00f3n<\/span>');\n                alertaCitaPrevia.style.display = 'block';\n                \n                \/\/ Scroll suave hasta la alerta\n                alertaCitaPrevia.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n            } else {\n                alertaCitaPrevia.style.display = 'none';\n            }\n        })\n        .catch(error => {\n            console.error('Error verificando cita previa:', error);\n        });\n    }\n    \n    \/\/ Funci\u00f3n para abrir el modal de vista previa\n    window.abrirModal = function(url) {\n        document.getElementById('imagen-lupa').src = url;\n        document.getElementById('modal-lupa').style.display = 'flex';\n    };\n    fechaNac.addEventListener('change', function() {\n        const valor = this.value;\n        if (valor) {\n            const a\u00f1o = valor.split('-')[0];\n            if (a\u00f1o.length !== 4) {\n                alert('Por favor ingrese una fecha de nacimiento v\u00e1lida (a\u00f1o de 4 d\u00edgitos).');\n                this.value = '';\n            }\n        }\n    });\n    function actualizarDocumentos() {\n    if (!tipo.value || !fechaNac.value || !lugarNac.value.trim()) {\n        cont.innerHTML = '<h3 style=\"color:#0a4b78;margin:20px 0 15px;\">Documentos del solicitante<\/h3>' +\n            (esCorreccion ? '' : '<p style=\"color:#666;\"><em>Complete tipo de tr\u00e1mite, fecha y lugar de nacimiento<\/em><\/p>');\n        return;\n    }\n\n    const hoy = new Date();\n    const nacimiento = new Date(fechaNac.value);\n    const edad = hoy.getFullYear() - nacimiento.getFullYear();\n    const m = hoy.getMonth() - nacimiento.getMonth();\n    const esMenor = (m < 0 || (m === 0 && hoy.getDate() < nacimiento.getDate())) ? edad - 1 < 18 : edad < 18;\n\n    const lugar = lugarNac.value.trim().toLowerCase();\n    const esUruguay = lugar === 'uruguay' || lugar === 'uruguay ';\n\n    let html = '<h3 style=\"color:#0a4b78;margin:20px 0 15px;\">Documentos del solicitante<\/h3>';\n\n    if (esCorreccion && !empty($archivos_previos)) {\n        html += '';\n    }\n\n    \/\/ === SI NACI\u00d3 FUERA DE URUGUAY ===\n    if (!esUruguay) {\n        const checkedSi = partidaSeleccionada === 'si' ? 'checked' : '';\n        const checkedNo = partidaSeleccionada === 'no' ? 'checked' : '';\n\n        const textoCompleto = (\n            lugarNac.value + ' ' +\n            document.querySelector('input[name=\"departamento\"]')?.value + ' ' +\n            document.querySelector('input[name=\"localidad\"]')?.value\n        ).toLowerCase().trim();\n\n        const esZonaBarcelona = \/catal(?:u|\u00f1a)|barcelona|arag[o\u00f3]n|andorra|tarragona|lleida|l\u00e9rida|girona|gerona|zaragoza|balears|baleares|illes balears\/i.test(textoCompleto);\n        const urlInscripcion = esZonaBarcelona\n            ? 'https:\/\/consuladouy-bcn.es\/httpdocs\/inscripcion-de-nacimientos\/'\n            : 'https:\/\/www.gub.uy\/tramites\/inscripcion-partidas-extranjeras';\n\n        html += `\n        <div style=\"background:#fff3e0;padding:20px;border-left:6px solid #ff9800;border-radius:8px;margin:20px 0;\">\n            <strong>Naci\u00f3 fuera de Uruguay<\/strong><br><br>\n            <strong>\u00bfTiene su partida de nacimiento inscripta en Uruguay?<\/strong><br><br>\n            <label class=\"checkbox-tick\"><input type=\"radio\" name=\"partida_inscripta\" value=\"si\" ${checkedSi} required><span class=\"checkmark\"><\/span> <strong>S\u00ed, ya est\u00e1 inscripta<\/strong><\/label><br><br>\n            <label class=\"checkbox-tick\"><input type=\"radio\" name=\"partida_inscripta\" value=\"no\" ${checkedNo}><span class=\"checkmark\"><\/span> <strong>No, a\u00fan no<\/strong><\/label>\n        <\/div>\n        <div id=\"bloqueo_no\" style=\"display:${partidaSeleccionada === 'no' ? 'block' : 'none'};background:#ffebee;padding:20px;border-left:6px solid #c62828;border-radius:8px;margin:20px 0;\">\n            <strong style=\"color:#c62828;\">NO PUEDE TRAMITAR EL PASAPORTE A\u00daN<\/strong><br><br>\n            Debe inscribir primero su partida de nacimiento en Uruguay.<br><br>\n            <a href=\"${urlInscripcion}\" target=\"_blank\" style=\"background:#c62828;color:white;padding:16px 32px;text-decoration:none;border-radius:8px;font-weight:bold;font-size:18px;\">\n                INSCRIBIR PARTIDA AQU\u00cd\n            <\/a>\n        <\/div>`;\n\n        \/\/ Solo se muestra este bloque si dijo \"S\u00ed\"\n        if (partidaSeleccionada === 'si') {\n            html += `\n            <div id=\"campo_partida_si\">\n                <p><strong>Adjunte copia de su partida extranjera ya inscripta en Uruguay<\/strong><\/p>\n                <input type=\"file\" name=\"partida_inscripta_adjunto\" accept=\".pdf,.jpg,.jpeg,.png\" ${esCorreccion ? 'disabled' : 'required'}><br><br>\n                <p><strong>Adjunte copia de partida uruguaya o c\u00e9dula\/pasaporte uruguayo vigente de su madre\/padre uruguayo<\/strong><\/p>\n                <input type=\"file\" name=\"partida_o_doc_padre_madre\" accept=\".pdf,.jpg,.jpeg,.png\" ${esCorreccion ? '' : 'required'}><br><br>\n            <\/div>`;\n        }\n    }\n\n    \/\/ === PUEDE CONTINUAR EL TR\u00c1MITE? (para mostrar documentos comunes y antecedentes) ===\n    const puedeContinuar = esUruguay || partidaSeleccionada === 'si';\n\n    if (puedeContinuar && !esCorreccion) {\n        \/\/ Documentos seg\u00fan tipo de tr\u00e1mite\n        if (tipo.value === 'primera_vez' && esUruguay) {\n            html += '<p><strong>C\u00e9dula Uruguaya y\/o denuncia policial con el n\u00famero de la misma<\/strong><\/p><input type=\"file\" name=\"partida_uruguay\" accept=\".pdf,.jpg,.jpeg,.png\" required><br><br>';\n        }\n        if (['renovacion_vencimiento','renovacion_deterioro','renovacion_menos1','restablecer'].includes(tipo.value)) {\n            html += '<p><strong>Pasaporte uruguayo anterior<\/strong><\/p><input type=\"file\" name=\"pasaporte_anterior\" accept=\".pdf,.jpg,.jpeg,.png\" required><br><br>';\n        }\n        if (tipo.value === 'renovacion_robo') {\n            html += '<p><strong>Denuncia policial original<\/strong><\/p><input type=\"file\" name=\"denuncia\" accept=\".pdf,.jpg,.jpeg,.png\" required><br><br>';\n        }\n\n        \/\/ === ANTECEDENTES PENALES: siempre para mayores de edad que viven en Espa\u00f1a ===\n        if (!esMenor) {\n            html += `\n            <div style=\"background:#e3f2fd;padding:20px;border-left:6px solid #1976d2;border-radius:8px;margin:20px 0;\">\n                <strong>Antecedentes penales espa\u00f1oles + Apostilla<\/strong><br><br>\n                <p style=\"margin:0 0 12px;color:#555;font-size:14px;\">Tienen una vigencia de <strong>180 d\u00edas<\/strong>. Si ya los tiene y son v\u00e1lidos para la fecha de su cita, adj\u00fantelos ahora. Si no los tiene a\u00fan, seleccione la opci\u00f3n correspondiente.<\/p>\n                <label class=\"checkbox-tick\"><input type=\"radio\" name=\"antecedentes_opcion\" value=\"tengo\" checked><span class=\"checkmark\"><\/span> <strong>S\u00ed tengo los antecedentes y la apostilla \u2014 los adjunto ahora<\/strong><\/label><br><br>\n                <label class=\"checkbox-tick\"><input type=\"radio\" name=\"antecedentes_opcion\" value=\"no_tengo\"><span class=\"checkmark\"><\/span> <strong>No puedo conseguirlos ahora<\/strong><\/label>\n            <\/div>\n            <div id=\"campos_antecedentes\">\n                <p><strong>Certificado de antecedentes penales espa\u00f1oles<\/strong> <span class=\"ver-modelo-btn\" onclick=\"abrirModal('https:\/\/consuladouy-bcn.es\/wp-content\/uploads\/2025\/11\/ejemplo-antecedentes.jpg')\"><i class=\"fas fa-magnifying-glass\"><\/i> ver modelo<\/span><\/p>\n                <input type=\"file\" name=\"antecedentes\" accept=\".pdf,.jpg,.jpeg,.png\" required><br><br>\n                <p><strong>Apostilla del certificado<\/strong> <span class=\"ver-modelo-btn\" onclick=\"abrirModal('https:\/\/consuladouy-bcn.es\/wp-content\/uploads\/2025\/11\/ejemplo-apostilla.jpg')\"><i class=\"fas fa-magnifying-glass\"><\/i> ver modelo<\/span><\/p>\n                <input type=\"file\" name=\"apostilla_antecedentes\" accept=\".pdf,.jpg,.jpeg,.png\" required><br><br>\n            <\/div>\n            <div id=\"formulario_790\" style=\"display:none;background:#fff3e0;padding:20px;border-left:6px solid #ff9800;border-radius:8px;\">\n                <strong>No puede obtener los antecedentes penales?<\/strong><br><br>\n                Debe descargar y pagar el <strong>Modelo 790<\/strong> en el siguiente enlace oficial:<br><br>\n                <a href=\"https:\/\/sede.mjusticia.gob.es\/servidorformularios\/formularios?idFormulario=790&lang=es_es&idtramite=1288774398320&idpagina=121519788prohibitions7884559\" target=\"_blank\" style=\"color:#d35400;font-weight:bold;\">\n                    Descargar Modelo 790 - Ministerio de Justicia Espa\u00f1a\n                <\/a><br><br>\n                <div style=\"background:#fff;border:2px solid #ff9800;border-radius:8px;padding:16px;margin-bottom:14px;\">\n                    <label style=\"display:block;font-weight:bold;color:#d35400;margin-bottom:8px;\">\n                        \ud83d\udcc4 Formulario Modelo 790 <span style=\"color:#e74c3c;\">*<\/span>\n                    <\/label>\n                    <p style=\"font-size:13px;color:#888;margin:0 0 10px;\">Adjunte el formulario 790 descargado y rellenado (PDF, JPG o PNG).<\/p>\n                    <input type=\"file\" name=\"formulario_790_doc\" id=\"formulario_790_doc\" accept=\".pdf,.jpg,.jpeg,.png\" style=\"width:100%;padding:10px;border:2px dashed #ff9800;border-radius:6px;background:#fff8f0;\">\n                <\/div>\n                <div style=\"background:#fff;border:2px dashed #ccc;border-radius:8px;padding:16px;\">\n                    <label style=\"display:block;font-weight:bold;color:#555;margin-bottom:8px;\">\n                        \ud83e\uddfe Tal\u00f3n de pago del Modelo 790\n                        <span style=\"font-weight:normal;font-size:13px;color:#999;\">(opcional si lo incluye junto al formulario)<\/span>\n                    <\/label>\n                    <p style=\"font-size:13px;color:#888;margin:0 0 10px;\">Si tiene el justificante de pago en un archivo separado, adj\u00fantelo aqu\u00ed.<\/p>\n                    <input type=\"file\" name=\"talon_790\" id=\"talon_790\" accept=\".pdf,.jpg,.jpeg,.png\" style=\"width:100%;padding:10px;border:2px dashed #ccc;border-radius:6px;background:#fafafa;\">\n                <\/div>\n            <\/div>\n            <p><strong>DNI \/ NIE espa\u00f1ol (si posee)<\/strong><\/p>\n            <input type=\"file\" name=\"dni_nie\" accept=\".pdf,.jpg,.jpeg,.png\"><br><br>`;\n        }\n\n\n        \/\/ Menores de edad\n        \/\/ Menores de edad\n        if (esMenor) {\n            html += `\n            <div style=\"background:#e8f5e8;padding:25px;border-left:6px solid #27ae60;border-radius:8px;margin:25px 0;\">\n                <strong>ES MENOR DE EDAD \u2192 DEBE ASISTIR CON AMBOS PROGENITORES<\/strong><br><br>\n                <div style=\"background:#fff;padding:15px;border-radius:8px;margin:10px 0;\"><strong>Progenitor 1 - C\u00e9dula o Pasaporte Uruguayo y DNI o NIE si posee<\/strong><br>\n                <input type=\"text\" name=\"nombre_progenitor1\" placeholder=\"Nombres y apellidos completos\" required style=\"width:100%;margin:8px 0;\" value=\"\"><br>\n                <input type=\"file\" name=\"doc_progenitor1\" accept=\".pdf,.jpg,.jpeg,.png\" ${esCorreccion ? 'disabled' : 'required'}><\/div>\n                <div style=\"background:#fff;padding:15px;border-radius:8px;margin:10px 0;\"><strong>Progenitor 2 - C\u00e9dula o Pasaporte Uruguayo y DNI o NIE si posee<\/strong><br>\n                <input type=\"text\" name=\"nombre_progenitor2\" placeholder=\"Nombres y apellidos completos\" required style=\"width:100%;margin:8px 0;\" value=\"\"><br>\n                <input type=\"file\" name=\"doc_progenitor2\" accept=\".pdf,.jpg,.jpeg,.png\" ${esCorreccion ? 'disabled' : 'required'}><\/div>\n            <\/div>`;\n        }\n    }\n\n    cont.innerHTML = html;\n\n    \/\/ === Eventos de radios (mantener exactamente como ten\u00edas) ===\n    document.querySelectorAll('input[name=\"partida_inscripta\"]').forEach(r => {\n        r.addEventListener('change', function() {\n            partidaSeleccionada = this.value;\n            actualizarDocumentos();\n        });\n    });\n\n    document.querySelectorAll('input[name=\"antecedentes_opcion\"]').forEach(r => {\n        r.addEventListener('change', function() {\n            const campos = document.getElementById('campos_antecedentes');\n            const form790 = document.getElementById('formulario_790');\n            const inputFormulario = document.getElementById('formulario_790_doc');\n            if (this.value === 'tengo') {\n                campos.style.display = 'block';\n                form790.style.display = 'none';\n                campos.querySelectorAll('input[type=\"file\"]').forEach(i => i.required = !esCorreccion);\n                if (inputFormulario) inputFormulario.required = false;\n            } else {\n                campos.style.display = 'none';\n                form790.style.display = 'block';\n                campos.querySelectorAll('input[type=\"file\"]').forEach(i => i.required = false);\n                if (inputFormulario) inputFormulario.required = !esCorreccion;\n            }\n        });\n    });\n\n    const antSel = document.querySelector('input[name=\"antecedentes_opcion\"]:checked');\n    if (antSel) antSel.dispatchEvent(new Event('change'));\n\n\n    \/\/ Correcci\u00f3n: forzar estado previo\n    if (esCorreccion && partidaSeleccionada) {\n        setTimeout(() => {\n            const radio = document.querySelector(`input[name=\"partida_inscripta\"][value=\"${partidaSeleccionada}\"]`);\n            if (radio) {\n                radio.checked = true;\n                radio.dispatchEvent(new Event('change'));\n            }\n        }, 100);\n    }\n}\n    \/\/ Listeners principales\n    tipo.addEventListener('change', actualizarDocumentos);\n    fechaNac.addEventListener('change', actualizarDocumentos);\n    lugarNac.addEventListener('input', actualizarDocumentos);\n\n    \/\/ Carga inicial\n    actualizarDocumentos();\n});\n<\/script>\n    <\/div>\n\n\n<\/div><!-- FIN PASAPORTE-BOX -->\n\n\n\r\n\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":"","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-13041","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/pages\/13041","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=13041"}],"version-history":[{"count":16,"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/pages\/13041\/revisions"}],"predecessor-version":[{"id":13132,"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/pages\/13041\/revisions\/13132"}],"wp:attachment":[{"href":"https:\/\/consuladouy-bcn.es\/httpdocs\/wp-json\/wp\/v2\/media?parent=13041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}