{"id":73,"date":"2026-08-17T20:28:50","date_gmt":"2026-08-17T20:28:50","guid":{"rendered":"https:\/\/espanadirecta.com\/?page_id=73"},"modified":"2026-09-17T15:35:28","modified_gmt":"2026-09-17T15:35:28","slug":"contacto","status":"publish","type":"page","link":"https:\/\/espanadirecta.com\/index.php\/contacto\/","title":{"rendered":"Contacto"},"content":{"rendered":"\n<script data-wp-block-html=\"js\">\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n\n    const formulario = document.querySelector(\".ed-contacto-form\");\n\n    if (!formulario) return;\n\n    formulario.addEventListener(\"submit\", function (e) {\n\n        e.preventDefault();\n\n        const boton = formulario.querySelector('button[type=\"submit\"]');\n        const textoOriginal = boton.innerHTML;\n\n        boton.disabled = true;\n        boton.innerHTML = \"Enviando...\";\n\n        const datos = new FormData(formulario);\n\n        fetch(formulario.action, {\n            method: \"POST\",\n            body: datos,\n            headers: {\n                \"Accept\": \"application\/json\"\n            }\n        })\n        .then(function (respuesta) {\n\n            if (respuesta.ok) {\n\n                formulario.innerHTML = `\n                    <div style=\"\n                        grid-column: 1 \/ -1;\n                        text-align: center;\n                        padding: 35px 20px;\n                    \">\n                        <div style=\"\n                            width: 65px;\n                            height: 65px;\n                            margin: 0 auto 20px;\n                            display: flex;\n                            align-items: center;\n                            justify-content: center;\n                            border-radius: 50%;\n                            background: #073b82;\n                            color: white;\n                            font-size: 32px;\n                        \">\n                            \u2713\n                        <\/div>\n\n                        <h3 style=\"\n                            margin: 0 0 12px;\n                            color: #073b82;\n                            font-size: 25px;\n                        \">\n                            \u00a1Mensaje enviado!\n                        <\/h3>\n\n                        <p style=\"\n                            margin: 0 auto;\n                            max-width: 500px;\n                            color: #657286;\n                            font-size: 16px;\n                            line-height: 1.6;\n                        \">\n                            Hemos recibido tu consulta correctamente.\n                            Nos pondremos en contacto contigo lo antes posible.\n                        <\/p>\n                    <\/div>\n                `;\n\n            } else {\n                throw new Error(\"Error en el env\u00edo\");\n            }\n\n        })\n        .catch(function () {\n\n            boton.disabled = false;\n            boton.innerHTML = textoOriginal;\n\n            alert(\"Ha ocurrido un problema al enviar el formulario. Por favor, int\u00e9ntalo de nuevo o escr\u00edbenos directamente a hola@espanadirecta.com\");\n\n        });\n\n    });\n\n});\n<\/script>\n\n<style>\n\/* =========================================================\n   ESPA\u00d1A DIRECTA \u2014 CONTACTO\n========================================================= *\/\n\n.ed-contacto-page {\n    --azul: #073b82;\n    --azul-oscuro: #062d63;\n    --granate: #8f1830;\n    --amarillo: #f2c400;\n    --texto: #26364a;\n    --texto-suave: #657286;\n    --borde: #e5eaf1;\n    --fondo-suave: #f7f9fc;\n\n    width: 100%;\n    margin: 0;\n    padding: 0;\n    font-family: inherit;\n    color: var(--texto);\n    box-sizing: border-box;\n}\n\n.ed-contacto-page *,\n.ed-contacto-page *::before,\n.ed-contacto-page *::after {\n    box-sizing: border-box;\n}\n\n.ed-contacto-inner {\n    width: 100%;\n    max-width: 1160px;\n    margin: 0 auto;\n    padding: 0 28px;\n}\n\n\/* =========================================================\n   INTRODUCCI\u00d3N\n========================================================= *\/\n\n.ed-contacto-intro {\n    text-align: center;\n    padding: 72px 20px 55px;\n}\n\n.ed-contacto-title {\n    margin: 0 0 20px;\n    color: var(--azul);\n    font-size: clamp(34px, 4vw, 48px);\n    line-height: 1.15;\n    font-weight: 700;\n}\n\n.ed-contacto-subtitle {\n    max-width: 760px;\n    margin: 0 auto;\n    color: var(--texto-suave);\n    font-size: 19px;\n    line-height: 1.7;\n}\n\n.ed-contacto-accent {\n    display: flex;\n    width: 90px;\n    height: 4px;\n    margin: 28px auto 0;\n    overflow: hidden;\n    border-radius: 10px;\n}\n\n.ed-contacto-accent span:nth-child(1) {\n    width: 58%;\n    background: var(--azul);\n}\n\n.ed-contacto-accent span:nth-child(2) {\n    width: 21%;\n    background: var(--amarillo);\n}\n\n.ed-contacto-accent span:nth-child(3) {\n    width: 21%;\n    background: var(--granate);\n}\n\n\/* =========================================================\n   TARJETAS\n========================================================= *\/\n\n.ed-contacto-grid {\n    display: grid;\n    grid-template-columns: repeat(3, minmax(0, 1fr));\n    gap: 28px;\n    padding: 5px 0 70px;\n}\n\n.ed-contacto-card {\n    position: relative;\n\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n\n    min-height: 285px;\n    padding: 36px 28px 30px;\n\n    background: #ffffff;\n    border: 1px solid var(--borde);\n    border-radius: 18px;\n\n    text-align: center;\n\n    box-shadow: 0 8px 30px rgba(7, 59, 130, 0.055);\n\n    overflow: hidden;\n\n    transition:\n        transform 0.28s ease,\n        box-shadow 0.28s ease,\n        border-color 0.28s ease,\n        background 0.28s ease;\n}\n\n\/* L\u00cdNEA SUPERIOR *\/\n\n.ed-contacto-card::before {\n    content: \"\";\n\n    position: absolute;\n    top: 0;\n    left: 50%;\n\n    width: 55px;\n    height: 3px;\n\n    transform: translateX(-50%);\n\n    border-radius: 0 0 5px 5px;\n\n    background: var(--azul);\n\n    transition:\n        width 0.28s ease,\n        height 0.28s ease;\n}\n\n.ed-contacto-card:nth-child(2)::before {\n    background: var(--amarillo);\n}\n\n.ed-contacto-card:nth-child(3)::before {\n    background: var(--granate);\n}\n\n\/* EFECTO GENERAL *\/\n\n.ed-contacto-card:hover {\n    transform: translateY(-8px);\n\n    box-shadow:\n        0 22px 48px rgba(7, 59, 130, 0.16);\n}\n\n.ed-contacto-card:hover::before {\n    width: 115px;\n    height: 5px;\n}\n\n\/* TARJETA 1 \u2014 AZUL *\/\n\n.ed-contacto-card:nth-child(1):hover {\n    background: #e8f1ff;\n    border-color: rgba(7, 59, 130, 0.40);\n}\n\n\/* TARJETA 2 \u2014 AMARILLO *\/\n\n.ed-contacto-card:nth-child(2):hover {\n    background: #fff6c9;\n    border-color: rgba(242, 196, 0, 0.60);\n}\n\n\/* TARJETA 3 \u2014 GRANATE *\/\n\n.ed-contacto-card:nth-child(3):hover {\n    background: #fde8ed;\n    border-color: rgba(143, 24, 48, 0.45);\n}\n\n\/* =========================================================\n   ICONOS\n========================================================= *\/\n\n.ed-contacto-icon {\n    width: 82px;\n    height: 82px;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    margin-bottom: 22px;\n\n    color: var(--azul);\n\n    transition:\n        transform 0.28s ease,\n        color 0.28s ease;\n}\n\n.ed-contacto-icon svg {\n    display: block;\n    width: 100%;\n    height: 100%;\n    fill: currentColor;\n}\n\n.ed-contacto-card:hover .ed-contacto-icon {\n    transform: scale(1.10);\n}\n\n.ed-contacto-card:nth-child(1):hover .ed-contacto-icon {\n    color: var(--azul);\n}\n\n.ed-contacto-card:nth-child(2):hover .ed-contacto-icon {\n    color: #a17b00;\n}\n\n.ed-contacto-card:nth-child(3):hover .ed-contacto-icon {\n    color: var(--granate);\n}\n\n\/* =========================================================\n   TEXTO TARJETAS\n========================================================= *\/\n\n.ed-contacto-card h2 {\n    margin: 0 0 12px;\n\n    color: var(--azul);\n\n    font-size: 24px;\n    line-height: 1.25;\n    font-weight: 700;\n\n    transition:\n        color 0.28s ease,\n        transform 0.28s ease;\n}\n\n.ed-contacto-card:hover h2 {\n    transform: translateY(-2px);\n}\n\n.ed-contacto-card p {\n    margin: 0 0 20px;\n\n    color: var(--texto-suave);\n\n    font-size: 15.5px;\n    line-height: 1.65;\n\n    transition: color 0.28s ease;\n}\n\n.ed-contacto-card:hover p {\n    color: var(--texto);\n}\n\n.ed-contacto-link {\n    margin-top: auto;\n\n    color: var(--azul);\n\n    font-size: 15px;\n    font-weight: 600;\n\n    text-decoration: none;\n\n    transition:\n        color 0.28s ease,\n        transform 0.28s ease;\n}\n\n.ed-contacto-link:hover {\n    transform: translateY(-2px);\n}\n\n.ed-contacto-card:nth-child(1):hover h2,\n.ed-contacto-card:nth-child(1):hover .ed-contacto-link {\n    color: var(--azul-oscuro);\n}\n\n.ed-contacto-card:nth-child(2):hover h2,\n.ed-contacto-card:nth-child(2):hover .ed-contacto-link {\n    color: #a17b00;\n}\n\n.ed-contacto-card:nth-child(3):hover h2,\n.ed-contacto-card:nth-child(3):hover .ed-contacto-link {\n    color: var(--granate);\n}\n\n\/* =========================================================\n   FORMULARIO\n========================================================= *\/\n\n.ed-contacto-final {\n    position: relative;\n\n    margin: 0 0 75px;\n    padding: 52px 40px;\n\n    background: linear-gradient(\n        135deg,\n        #f5f8fc 0%,\n        #ffffff 100%\n    );\n\n    border: 1px solid var(--borde);\n    border-radius: 20px;\n\n    overflow: hidden;\n}\n\n.ed-contacto-final::before {\n    content: \"\";\n\n    position: absolute;\n    top: 0;\n    left: 0;\n\n    width: 5px;\n    height: 100%;\n\n    background: linear-gradient(\n        to bottom,\n        var(--azul) 0%,\n        var(--azul) 65%,\n        var(--amarillo) 65%,\n        var(--amarillo) 82%,\n        var(--granate) 82%,\n        var(--granate) 100%\n    );\n}\n\n.ed-contacto-final h2 {\n    margin: 0 0 14px;\n\n    color: var(--azul);\n\n    text-align: center;\n\n    font-size: 30px;\n    line-height: 1.3;\n}\n\n.ed-contacto-final > p {\n    max-width: 690px;\n\n    margin: 0 auto 32px;\n\n    color: var(--texto-suave);\n\n    text-align: center;\n\n    font-size: 17px;\n    line-height: 1.7;\n}\n\n.ed-contacto-form {\n    display: grid;\n\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n\n    gap: 22px;\n\n    width: 100%;\n    max-width: 850px;\n\n    margin: 0 auto;\n}\n\n.ed-form-group {\n    display: flex;\n    flex-direction: column;\n}\n\n.ed-form-group-full {\n    grid-column: 1 \/ -1;\n}\n\n.ed-form-group label {\n    margin-bottom: 8px;\n\n    color: var(--texto);\n\n    font-size: 14px;\n    font-weight: 600;\n}\n\n.ed-form-group input,\n.ed-form-group select,\n.ed-form-group textarea {\n    width: 100%;\n\n    padding: 14px 15px;\n\n    background: #ffffff;\n\n    color: var(--texto);\n\n    border: 1px solid var(--borde);\n    border-radius: 8px;\n\n    font-family: inherit;\n    font-size: 15px;\n\n    outline: none;\n\n    transition:\n        border-color 0.2s ease,\n        box-shadow 0.2s ease;\n}\n\n.ed-form-group input:focus,\n.ed-form-group select:focus,\n.ed-form-group textarea:focus {\n    border-color: var(--azul);\n\n    box-shadow:\n        0 0 0 3px rgba(7, 59, 130, 0.08);\n}\n\n.ed-form-group textarea {\n    min-height: 145px;\n    resize: vertical;\n}\n\n.ed-form-submit {\n    grid-column: 1 \/ -1;\n\n    display: flex;\n    justify-content: center;\n}\n\n.ed-form-submit button {\n    min-width: 180px;\n\n    padding: 14px 30px;\n\n    background: var(--azul);\n\n    color: #ffffff;\n\n    border: none;\n    border-radius: 7px;\n\n    font-family: inherit;\n    font-size: 15px;\n    font-weight: 600;\n\n    cursor: pointer;\n\n    box-shadow:\n        0 6px 16px rgba(7, 59, 130, 0.16);\n\n    transition:\n        background 0.2s ease,\n        transform 0.2s ease;\n}\n\n.ed-form-submit button:hover {\n    background: var(--granate);\n    transform: translateY(-2px);\n}\n\n#telefono-error {\n    display: none;\n\n    margin-top: 7px;\n\n    color: var(--granate);\n\n    font-size: 12px;\n    line-height: 1.4;\n}\n\n#telefono-error.visible {\n    display: block;\n}\n\n\/* =========================================================\n   RESPONSIVE\n========================================================= *\/\n\n@media (max-width: 900px) {\n\n    .ed-contacto-inner {\n        padding: 0 22px;\n    }\n\n    .ed-contacto-grid {\n        grid-template-columns: 1fr;\n    }\n}\n\n@media (max-width: 680px) {\n\n    .ed-contacto-inner {\n        padding: 0 16px;\n    }\n\n    .ed-contacto-intro {\n        padding: 45px 8px 38px;\n    }\n\n    .ed-contacto-title {\n        font-size: 32px;\n    }\n\n    .ed-contacto-subtitle {\n        font-size: 17px;\n    }\n\n    .ed-contacto-final {\n        padding: 40px 22px;\n    }\n\n    .ed-contacto-final h2 {\n        font-size: 26px;\n    }\n\n    .ed-contacto-final > p {\n        font-size: 16px;\n    }\n\n    .ed-contacto-form {\n        grid-template-columns: 1fr;\n    }\n\n    .ed-form-group-full {\n        grid-column: auto;\n    }\n\n    .ed-form-submit {\n        grid-column: auto;\n    }\n}\n<\/style>\n\n\n<div class=\"ed-contacto-page\">\n\n    <div class=\"ed-contacto-inner\">\n\n        <!-- INTRODUCCI\u00d3N -->\n\n        <section class=\"ed-contacto-intro\">\n\n            <h1 class=\"ed-contacto-title\">\n                Contacta con Espa\u00f1a Directa\n            <\/h1>\n\n            <p class=\"ed-contacto-subtitle\">\n                Cu\u00e9ntanos tu situaci\u00f3n y te ayudaremos a identificar\n                los pasos que necesitas seguir.\n            <\/p>\n\n            <div class=\"ed-contacto-accent\">\n                <span><\/span>\n                <span><\/span>\n                <span><\/span>\n            <\/div>\n\n        <\/section>\n\n\n        <!-- TARJETAS -->\n\n        <section class=\"ed-contacto-grid\">\n\n            <!-- EMAIL -->\n\n            <article class=\"ed-contacto-card\">\n\n                <div class=\"ed-contacto-icon\">\n                    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n                        <path d=\"M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 4-8 5-8-5V6l8 5 8-5v2Z\"><\/path>\n                    <\/svg>\n                <\/div>\n\n                <h2>Email<\/h2>\n\n                <p>\n                    Escr\u00edbenos y cu\u00e9ntanos brevemente\n                    en qu\u00e9 podemos ayudarte.\n                <\/p>\n\n                <a class=\"ed-contacto-link\" href=\"mailto:hola@espanadirecta.com\">\n                    hola@espanadirecta.com\n                <\/a>\n\n            <\/article>\n\n\n            <!-- INSTAGRAM -->\n\n            <article class=\"ed-contacto-card\">\n\n                <div class=\"ed-contacto-icon\">\n                    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n                        <path d=\"M7 2C4.24 2 2 4.24 2 7v10c0 2.76 2.24 5 5 5h10c2.76 0 5-2.24 5-5V7c0-2.76-2.24-5-5-5H7Zm10 2c1.65 0 3 1.35 3 3v10c0 1.65-1.35 3-3 3H7c-1.65 0-3-1.35-3-3V7c0-1.65 1.35-3 3-3h10Zm-5 3.5A4.5 4.5 0 1 0 12 16.5 4.5 4.5 0 0 0 12 7.5Zm0 2A2.5 2.5 0 1 1 9.5 12 2.5 2.5 0 0 1 12 9.5ZM17.75 6.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5Z\"><\/path>\n                    <\/svg>\n                <\/div>\n\n                <h2>Instagram<\/h2>\n\n                <p>\n                    S\u00edguenos para recibir informaci\u00f3n,\n                    novedades y consejos sobre Espa\u00f1a.\n                <\/p>\n\n                <a class=\"ed-contacto-link\" href=\"https:\/\/www.instagram.com\/espanadirecta_?igsi=cDYzcGs3ZGppbHE5&amp;utm_source=q\" target=\"_blank\" rel=\"noopener noreferrer\">\n                    @espanadirecta_\n                <\/a>\n\n            <\/article>\n\n\n            <!-- WHATSAPP -->\n\n            <article class=\"ed-contacto-card\">\n\n                <div class=\"ed-contacto-icon\">\n                    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n                        <path d=\"M20.52 3.48A11.93 11.93 0 0 0 12.05 0C5.45 0 .08 5.37.08 11.97c0 2.11.55 4.17 1.6 5.98L0 24l6.22-1.63a11.94 11.94 0 0 0 5.82 1.51h.01c6.6 0 11.97-5.37 11.97-11.97 0-3.2-1.25-6.2-3.5-8.43ZM12.05 21.85a9.88 9.88 0 0 1-5.04-1.38l-.36-.21-3.69.97.99-3.6-.23-.37a9.9 9.9 0 0 1-1.52-5.29c0-5.47 4.45-9.92 9.93-9.92a9.87 9.87 0 0 1 7.02 2.91 9.87 9.87 0 0 1 2.9 7.02c0 5.47-4.45 9.87-9.92 9.87Zm5.44-7.41c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-1.78-.89-2.95-1.59-4.12-3.61-.31-.53.31-.49.89-1.63.1-.2.05-.37-.02-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.22 3.08.15.2 2.1 3.21 5.08 4.5.71.31 1.27.49 1.7.63.71.23 1.35.2 1.86.12.57-.08 1.76-.72 2.01-1.42.25-.7.25-1.3.17-1.42-.07-.13-.27-.2-.57-.35Z\"><\/path>\n                    <\/svg>\n                <\/div>\n\n                <h2>WhatsApp<\/h2>\n\n                <p>\n                    Si prefieres hablar directamente,\n                    puedes escribirnos por WhatsApp.\n                <\/p>\n\n                <a class=\"ed-contacto-link\" href=\"https:\/\/wa.me\/34641044697\" target=\"_blank\" rel=\"noopener noreferrer\">\n                    Abrir WhatsApp\n                <\/a>\n\n            <\/article>\n\n        <\/section>\n\n\n        <!-- FORMULARIO -->\n\n        <section class=\"ed-contacto-final\">\n\n            <h2>Cu\u00e9ntanos tu caso<\/h2>\n\n            <p>\n                No hace falta que conozcas el nombre del tr\u00e1mite.\n                D\u00e9janos tus datos y cu\u00e9ntanos brevemente tu situaci\u00f3n.\n                Nos pondremos en contacto contigo para orientarte.\n            <\/p>\n\n            <form class=\"ed-contacto-form\" action=\"https:\/\/formsubmit.co\/hola@espanadirecta.com\" method=\"POST\" id=\"contacto-form\">\n\n                <input type=\"hidden\" name=\"_subject\" value=\"Nueva consulta desde la web Espa\u00f1a Directa\">\n\n                <input type=\"hidden\" name=\"_captcha\" value=\"false\">\n\n                <input type=\"hidden\" name=\"_template\" value=\"table\">\n\n                <input type=\"hidden\" id=\"origen\" name=\"Origen\" value=\"Contacto general\">\n\n\n                <!-- NOMBRE -->\n\n                <div class=\"ed-form-group\">\n\n                    <label for=\"nombre\">\n                        Nombre y apellidos\n                    <\/label>\n\n                    <input type=\"text\" id=\"nombre\" name=\"Nombre\" placeholder=\"Escribe tu nombre\" minlength=\"2\" required=\"\">\n\n                <\/div>\n\n\n                <!-- EMAIL -->\n\n                <div class=\"ed-form-group\">\n\n                    <label for=\"email\">\n                        Email\n                    <\/label>\n\n                    <input type=\"email\" id=\"email\" name=\"Email\" placeholder=\"tu@email.com\" required=\"\">\n\n                <\/div>\n\n\n                <!-- PA\u00cdS -->\n\n                <div class=\"ed-form-group\">\n\n                    <label for=\"pais\">\n                        Pa\u00eds \/ prefijo\n                    <\/label>\n\n                    <select id=\"pais\" name=\"Pa\u00eds\" required=\"\">\n\n                        <option value=\"ES\" selected=\"\">Espa\u00f1a +34<\/option>\n                        <option value=\"BR\">Brasil +55<\/option>\n                        <option value=\"AO\">Angola +244<\/option>\n                        <option value=\"AR\">Argentina +54<\/option>\n                        <option value=\"BO\">Bolivia +591<\/option>\n                        <option value=\"CA\">Canad\u00e1 +1<\/option>\n                        <option value=\"CL\">Chile +56<\/option>\n                        <option value=\"CO\">Colombia +57<\/option>\n                        <option value=\"CR\">Costa Rica +506<\/option>\n                        <option value=\"CU\">Cuba +53<\/option>\n                        <option value=\"EC\">Ecuador +593<\/option>\n                        <option value=\"SV\">El Salvador +503<\/option>\n                        <option value=\"US\">Estados Unidos +1<\/option>\n                        <option value=\"FR\">Francia +33<\/option>\n                        <option value=\"DE\">Alemania +49<\/option>\n                        <option value=\"IT\">Italia +39<\/option>\n                        <option value=\"MX\">M\u00e9xico +52<\/option>\n                        <option value=\"MA\">Marruecos +212<\/option>\n                        <option value=\"NI\">Nicaragua +505<\/option>\n                        <option value=\"PA\">Panam\u00e1 +507<\/option>\n                        <option value=\"PY\">Paraguay +595<\/option>\n                        <option value=\"PE\">Per\u00fa +51<\/option>\n                        <option value=\"PT\">Portugal +351<\/option>\n                        <option value=\"GB\">Reino Unido +44<\/option>\n                        <option value=\"DO\">Rep\u00fablica Dominicana +1<\/option>\n                        <option value=\"RO\">Ruman\u00eda +40<\/option>\n                        <option value=\"SN\">Senegal +221<\/option>\n                        <option value=\"CH\">Suiza +41<\/option>\n                        <option value=\"UY\">Uruguay +598<\/option>\n                        <option value=\"VE\">Venezuela +58<\/option>\n                        <option value=\"OTHER\">Otro pa\u00eds<\/option>\n\n                    <\/select>\n\n                <\/div>\n\n\n                <!-- TEL\u00c9FONO -->\n\n                <div class=\"ed-form-group\">\n\n                    <label for=\"telefono\">\n                        Tel\u00e9fono \/ WhatsApp\n                    <\/label>\n\n                    <input type=\"tel\" id=\"telefono\" name=\"Tel\u00e9fono\" placeholder=\"N\u00famero de tel\u00e9fono\" inputmode=\"numeric\" autocomplete=\"tel\" required=\"\">\n\n                    <input type=\"hidden\" id=\"telefonoCompleto\" name=\"Tel\u00e9fono completo\">\n\n                    <small id=\"telefono-error\"><\/small>\n\n                <\/div>\n\n\n                <!-- CONSULTA -->\n\n                <div class=\"ed-form-group ed-form-group-full\">\n\n                    <label for=\"consulta\">\n                        Cu\u00e9ntanos tu situaci\u00f3n o duda\n                    <\/label>\n\n                    <textarea id=\"consulta\" name=\"Consulta\" rows=\"6\" placeholder=\"Expl\u00edcanos brevemente tu situaci\u00f3n y en qu\u00e9 podemos ayudarte...\" minlength=\"10\" required=\"\"><\/textarea>\n\n                <\/div>\n\n\n                <!-- BOT\u00d3N -->\n\n                <div class=\"ed-form-submit\">\n\n                    <button type=\"submit\">\n                        Enviar consulta\n                    <\/button>\n\n                <\/div>\n\n            <\/form>\n\n        <\/section>\n\n    <\/div>\n\n<\/div>\n\n\n<script>\ndocument.addEventListener(\"DOMContentLoaded\", function () {\n\n    const formulario = document.getElementById(\"contacto-form\");\n    const pais = document.getElementById(\"pais\");\n    const telefono = document.getElementById(\"telefono\");\n    const telefonoCompleto = document.getElementById(\"telefonoCompleto\");\n    const errorTelefono = document.getElementById(\"telefono-error\");\n    const origen = document.getElementById(\"origen\");\n\n    const parametros = new URLSearchParams(window.location.search);\n    if (origen && parametros.get(\"origen\") === \"relocation\") {\n        origen.value = \"Relocation\";\n    }\n\n    if (!formulario || !pais || !telefono) return;\n\n\n    const prefijos = {\n        ES: \"+34\",\n        BR: \"+55\",\n        AO: \"+244\",\n        AR: \"+54\",\n        BO: \"+591\",\n        CA: \"+1\",\n        CL: \"+56\",\n        CO: \"+57\",\n        CR: \"+506\",\n        CU: \"+53\",\n        EC: \"+593\",\n        SV: \"+503\",\n        US: \"+1\",\n        FR: \"+33\",\n        DE: \"+49\",\n        IT: \"+39\",\n        MX: \"+52\",\n        MA: \"+212\",\n        NI: \"+505\",\n        PA: \"+507\",\n        PY: \"+595\",\n        PE: \"+51\",\n        PT: \"+351\",\n        GB: \"+44\",\n        DO: \"+1\",\n        RO: \"+40\",\n        SN: \"+221\",\n        CH: \"+41\",\n        UY: \"+598\",\n        VE: \"+58\"\n    };\n\n\n    telefono.addEventListener(\"input\", function () {\n\n        telefono.value = telefono.value.replace(\/\\D\/g, \"\");\n\n        errorTelefono.classList.remove(\"visible\");\n\n    });\n\n\n    pais.addEventListener(\"change\", function () {\n\n        telefono.value = \"\";\n\n        errorTelefono.classList.remove(\"visible\");\n\n    });\n\n\n    formulario.addEventListener(\"submit\", function (e) {\n\n        const numero = telefono.value.replace(\/\\D\/g, \"\");\n        const codigoPais = pais.value;\n\n        if (!numero) {\n\n            e.preventDefault();\n\n            errorTelefono.textContent =\n                \"Introduce tu n\u00famero de tel\u00e9fono.\";\n\n            errorTelefono.classList.add(\"visible\");\n\n            telefono.focus();\n\n            return;\n        }\n\n\n        \/* ESPA\u00d1A \u2014 EXACTAMENTE 9 D\u00cdGITOS *\/\n\n        if (codigoPais === \"ES\" && numero.length !== 9) {\n\n            e.preventDefault();\n\n            errorTelefono.textContent =\n                \"En Espa\u00f1a el tel\u00e9fono debe tener exactamente 9 d\u00edgitos.\";\n\n            errorTelefono.classList.add(\"visible\");\n\n            telefono.focus();\n\n            return;\n        }\n\n\n        \/* BRASIL \u2014 10 U 11 D\u00cdGITOS *\/\n\n        if (\n            codigoPais === \"BR\" &&\n            numero.length !== 10 &&\n            numero.length !== 11\n        ) {\n\n            e.preventDefault();\n\n            errorTelefono.textContent =\n                \"En Brasil el n\u00famero debe tener 10 u 11 d\u00edgitos.\";\n\n            errorTelefono.classList.add(\"visible\");\n\n            telefono.focus();\n\n            return;\n        }\n\n\n        \/* RESTO DE PA\u00cdSES *\/\n\n        if (\n            numero.length < 6 ||\n            numero.length > 15\n        ) {\n\n            e.preventDefault();\n\n            errorTelefono.textContent =\n                \"Introduce un n\u00famero de tel\u00e9fono v\u00e1lido.\";\n\n            errorTelefono.classList.add(\"visible\");\n\n            telefono.focus();\n\n            return;\n        }\n\n\n        telefonoCompleto.value =\n            prefijos[codigoPais]\n                ? prefijos[codigoPais] + \" \" + numero\n                : numero;\n\n    });\n\n});\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Contacta con Espa\u00f1a Directa Cu\u00e9ntanos tu situaci\u00f3n y te ayudaremos a identificar los pasos que necesitas seguir. Email Escr\u00edbenos y [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","_members_access_role":[],"_members_access_error":""},"class_list":["post-73","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/pages\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":9,"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/pages\/73\/revisions"}],"predecessor-version":[{"id":328,"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/pages\/73\/revisions\/328"}],"wp:attachment":[{"href":"https:\/\/espanadirecta.com\/index.php\/wp-json\/wp\/v2\/media?parent=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}