{"id":8386,"date":"2026-11-11T15:10:52","date_gmt":"2026-11-11T14:10:52","guid":{"rendered":"https:\/\/www.atlasgranfondo.com\/granfondo\/?page_id=8386"},"modified":"2026-11-20T17:06:02","modified_gmt":"2026-11-20T16:06:02","slug":"inscripcion-nacional-atlas-gran-fondo-2027","status":"publish","type":"page","link":"https:\/\/www.atlasgranfondo.com\/granfondo\/es\/inscripcion-nacional-atlas-gran-fondo-2027\/","title":{"rendered":"Inscripci\u00f3n nacional \u2013 Atlas Gran Fondo 2027"},"content":{"rendered":"\n<div id=\"agf-maroc-bilingue\">\n<style>\n#agf-maroc-bilingue{\n --orange:#FBB03B;\n --black:#111111;\n --panel:#222222;\n --muted:#ccc;\n background:var(--black);\n color:#fff;\n font-family:Arial,Tahoma,sans-serif;\n line-height:1.65;\n overflow:hidden;\n}\n#agf-maroc-bilingue *{box-sizing:border-box}\n#agf-maroc-bilingue h1,\n#agf-maroc-bilingue h2,\n#agf-maroc-bilingue h3{\n color:#fff;\n line-height:1.25;\n margin:0 0 15px;\n}\n#agf-maroc-bilingue p{margin:0 0 14px}\n#agf-maroc-bilingue .wrap{\n width:min(1160px,calc(100% - 36px));\n margin:auto;\n}\n#agf-maroc-bilingue section{padding:65px 0}\n#agf-maroc-bilingue .orange{color:var(--orange)}\n#agf-maroc-bilingue .center{text-align:center}\n#agf-maroc-bilingue .eyebrow{\n color:var(--orange);\n font-size:13px;\n font-weight:800;\n letter-spacing:1px;\n}\n#agf-maroc-bilingue .hero{\n min-height:430px;\n display:flex;\n align-items:center;\n background:\n linear-gradient(90deg,rgba(0,0,0,.93),rgba(0,0,0,.4)),\n url('https:\/\/www.atlasgranfondo.com\/granfondo\/wp-content\/uploads\/2024\/12\/IMG_1854-copie.jpeg')\n center\/cover no-repeat;\n}\n#agf-maroc-bilingue .hero h1{\n font-size:clamp(38px,5vw,66px);\n font-weight:900;\n margin:15px 0;\n}\n#agf-maroc-bilingue .hero p{\n max-width:720px;\n font-size:18px;\n color:#eee;\n}\n#agf-maroc-bilingue .heading{\n font-size:clamp(28px,4vw,43px);\n font-weight:900;\n margin:10px 0 30px;\n}\n#agf-maroc-bilingue .bilingual{\n display:grid;\n grid-template-columns:repeat(2,minmax(0,1fr));\n gap:22px;\n}\n#agf-maroc-bilingue .panel{\n background:var(--panel);\n border:1px solid #444;\n border-radius:12px;\n padding:28px;\n}\n#agf-maroc-bilingue .panel[lang=\"ar\"]{\n direction:rtl;\n text-align:right;\n font-family:Tahoma,Arial,sans-serif;\n}\n#agf-maroc-bilingue .panel h3{\n font-size:24px;\n color:var(--orange);\n}\n#agf-maroc-bilingue .panel p{\n color:var(--muted);\n}\n#agf-maroc-bilingue .price-row{\n display:flex;\n justify-content:space-between;\n align-items:center;\n gap:12px;\n padding:18px 0;\n border-top:1px solid #444;\n}\n#agf-maroc-bilingue .price-row strong{\n font-size:24px;\n color:#fff;\n}\n#agf-maroc-bilingue .price-row span{\n font-size:25px;\n color:var(--orange);\n font-weight:900;\n white-space:nowrap;\n}\n#agf-maroc-bilingue .feature{\n padding:14px 0;\n border-bottom:1px solid #3b3b3b;\n color:#eee;\n}\n#agf-maroc-bilingue .feature:last-child{\n border-bottom:none;\n}\n#agf-maroc-bilingue .notice{\n background:#292929;\n border-left:4px solid var(--orange);\n border-radius:7px;\n padding:23px;\n margin-top:22px;\n}\n#agf-maroc-bilingue .notice[lang=\"ar\"]{\n border-left:0;\n border-right:4px solid var(--orange);\n direction:rtl;\n text-align:right;\n}\n#agf-maroc-bilingue .notice strong{\n color:var(--orange);\n}\n#agf-maroc-bilingue .cta{\n background:var(--orange);\n text-align:center;\n}\n#agf-maroc-bilingue .cta h2{\n color:#111;\n font-size:clamp(28px,4vw,42px);\n font-weight:900;\n}\n#agf-maroc-bilingue .cta p{\n color:#222;\n}\n#agf-maroc-bilingue .button{\n display:inline-block;\n background:#111;\n color:#fff!important;\n padding:15px 26px;\n border-radius:5px;\n font-weight:900;\n text-decoration:none;\n margin-top:15px;\n}\n@media(max-width:767px){\n #agf-maroc-bilingue .bilingual{\n  grid-template-columns:1fr;\n }\n #agf-maroc-bilingue section{padding:48px 0}\n #agf-maroc-bilingue .hero{min-height:380px}\n #agf-maroc-bilingue .panel{padding:22px}\n #agf-maroc-bilingue .price-row span{\n  font-size:22px;\n }\n}\n<\/style>\n\n<!-- BANNIERE -->\n<section class=\"hero\">\n <div class=\"wrap\">\n  <div class=\"eyebrow\">\n   \ud83c\uddf2\ud83c\udde6 AGADIR \u2022 30\u201331 DE ENERO DE 2027\n  <\/div>\n  <h1>\n   INSCRIPCI\u00d3N <span class=\"orange\">MARRUECOS<\/span>\n  <\/h1>\n  <p>\n   Atlas Gran Fondo 2027 \u2014\n   La inscripci\u00f3n est\u00e1 reservada a ciclistas\n   de nacionalidad marroqu\u00ed.\n  <\/p>\n  <p lang=\"ar\" dir=\"rtl\" style=\"text-align:left;font-size:21px\">\n   \u0623\u0637\u0644\u0633 \u063a\u0631\u0627\u0646 \u0641\u0648\u0646\u062f\u0648 2027 \u2014\n   \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0645\u062e\u0635\u0635 \u0644\u0644\u0645\u0634\u0627\u0631\u0643\u064a\u0646\n   \u0627\u0644\u062d\u0627\u0645\u0644\u064a\u0646 \u0644\u0644\u062c\u0646\u0633\u064a\u0629 \u0627\u0644\u0645\u063a\u0631\u0628\u064a\u0629.\n  <\/p>\n <\/div>\n<\/section>\n\n<!-- TARIFS -->\n<section>\n <div class=\"wrap\">\n  <div class=\"center\">\n   <div class=\"eyebrow\">\n    TARIFAS NACIONALES 2027\n   <\/div>\n   <h2 class=\"heading\">\n    ELIGE TU\n    <span class=\"orange\">RECORRIDO<\/span>\n  <\/h2>\n  <p lang=\"ar\" dir=\"rtl\" style=\"font-size:22px;color:#ddd\">\n   \u0627\u062e\u062a\u0631 \u0645\u0633\u0627\u0641\u062a\u0643 \u0648\u0634\u0627\u0631\u0643 \u0641\u064a \u062a\u062d\u062f\u064a\n   \u0623\u0637\u0644\u0633 \u063a\u0631\u0627\u0646 \u0641\u0648\u0646\u062f\u0648 2027\n  <\/p>\n  <\/div>\n\n  <div class=\"bilingual\">\n\n   <div class=\"panel\" lang=\"es\">\n    <h3>\ud83c\uddea\ud83c\uddf8 Inscripci\u00f3n nacional<\/h3>\n    <p>\n     Tarifas reservadas a participantes\n     de nacionalidad marroqu\u00ed.\n    <\/p>\n\n    <div class=\"price-row\">\n     <strong>135 KM<\/strong>\n     <span>450 MAD<\/span>\n    <\/div>\n\n    <div class=\"price-row\">\n     <strong>100 KM<\/strong>\n     <span>400 MAD<\/span>\n    <\/div>\n   <\/div>\n\n   <div class=\"panel\" lang=\"ar\" dir=\"rtl\">\n    <h3>\ud83c\uddf2\ud83c\udde6 \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0648\u0637\u0646\u064a<\/h3>\n    <p>\n     \u0627\u0644\u0623\u0633\u0639\u0627\u0631 \u0645\u062e\u0635\u0635\u0629 \u0644\u0644\u0645\u0634\u0627\u0631\u0643\u064a\u0646\n     \u0627\u0644\u062d\u0627\u0645\u0644\u064a\u0646 \u0644\u0644\u062c\u0646\u0633\u064a\u0629 \u0627\u0644\u0645\u063a\u0631\u0628\u064a\u0629.\n    <\/p>\n\n    <div class=\"price-row\">\n     <strong>135 \u0643\u0644\u0645<\/strong>\n     <span>450 \u062f\u0631\u0647\u0645<\/span>\n    <\/div>\n\n    <div class=\"price-row\">\n     <strong>100 \u0643\u0644\u0645<\/strong>\n     <span>400 \u062f\u0631\u0647\u0645<\/span>\n    <\/div>\n   <\/div>\n\n  <\/div>\n <\/div>\n<\/section>\n\n<!-- PRESTATIONS -->\n<section style=\"background:#181818\">\n <div class=\"wrap\">\n  <div class=\"center\">\n   <h2 class=\"heading\">\n    TU INSCRIPCI\u00d3N\n    <span class=\"orange\">INCLUYE<\/span>\n   <\/h2>\n   <p lang=\"ar\" dir=\"rtl\" style=\"font-size:22px;color:#ddd\">\n    \u0645\u0627\u0630\u0627 \u062a\u0634\u0645\u0644 \u0631\u0633\u0648\u0645 \u0627\u0644\u062a\u0633\u062c\u064a\u0644\u061f\n   <\/p>\n  <\/div>\n\n  <div class=\"bilingual\">\n\n   <div class=\"panel\" lang=\"es\">\n    <h3>\ud83c\uddea\ud83c\uddf8 Servicios incluidos<\/h3>\n    <div class=\"feature\">\ud83c\udff7\ufe0f Dorsal oficial<\/div>\n    <div class=\"feature\">\u23f1\ufe0f Cronometraje y clasificaci\u00f3n<\/div>\n    <div class=\"feature\">\ud83d\udca7 Punto de avituallamiento<\/div>\n    <div class=\"feature\">\ud83d\ude91 Seguridad y asistencia m\u00e9dica<\/div>\n    <div class=\"feature\">\ud83c\udfc5 Medalla de finisher<\/div>\n    <div class=\"feature\">\ud83d\uddfa\ufe0f Informaci\u00f3n del recorrido y GPX<\/div>\n   <\/div>\n\n   <div class=\"panel\" lang=\"ar\" dir=\"rtl\">\n    <h3>\ud83c\uddf2\ud83c\udde6 \u0627\u0644\u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0645\u0634\u0645\u0648\u0644\u0629<\/h3>\n    <div class=\"feature\">\ud83c\udff7\ufe0f \u0631\u0642\u0645 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0629 \u0627\u0644\u0631\u0633\u0645\u064a<\/div>\n    <div class=\"feature\">\u23f1\ufe0f \u0627\u0644\u062a\u0648\u0642\u064a\u062a \u0648\u0627\u0644\u062a\u0631\u062a\u064a\u0628<\/div>\n    <div class=\"feature\">\ud83d\udca7 \u0646\u0642\u0637\u0629 \u0644\u0644\u062a\u0632\u0648\u062f \u0628\u0627\u0644\u0645\u0627\u0621 \u0648\u0627\u0644\u063a\u0630\u0627\u0621<\/div>\n    <div class=\"feature\">\ud83d\ude91 \u0627\u0644\u0633\u0644\u0627\u0645\u0629 \u0648\u0627\u0644\u0645\u0633\u0627\u0639\u062f\u0629 \u0627\u0644\u0637\u0628\u064a\u0629<\/div>\n    <div class=\"feature\">\ud83c\udfc5 \u0645\u064a\u062f\u0627\u0644\u064a\u0629 \u0625\u0646\u0647\u0627\u0621 \u0627\u0644\u0633\u0628\u0627\u0642<\/div>\n    <div class=\"feature\">\ud83d\uddfa\ufe0f \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0645\u0633\u0627\u0631\u0627\u062a \u0648\u0645\u0644\u0641\u0627\u062a GPX<\/div>\n   <\/div>\n\n  <\/div>\n\n  <div class=\"bilingual\" style=\"margin-top:22px\">\n   <div class=\"notice\" lang=\"es\">\n    <strong>\ud83d\udeb4 Maillot ciclista oficial 2027<\/strong>\n    <p>Disponible como opci\u00f3n.<\/p>\n   <\/div>\n\n   <div class=\"notice\" lang=\"ar\" dir=\"rtl\">\n    <strong>\ud83d\udeb4 \u0627\u0644\u0642\u0645\u064a\u0635 \u0627\u0644\u0631\u0633\u0645\u064a \u0644\u0631\u0643\u0648\u0628 \u0627\u0644\u062f\u0631\u0627\u062c\u0627\u062a 2027<\/strong>\n    <p>\u0645\u062a\u0648\u0641\u0631 \u0643\u062e\u064a\u0627\u0631 \u0625\u0636\u0627\u0641\u064a.<\/p>\n   <\/div>\n  <\/div>\n <\/div>\n<\/section>\n\n<!-- INFORMATIONS -->\n<section>\n <div class=\"wrap\">\n  <div class=\"bilingual\">\n\n   <div class=\"panel\" lang=\"es\">\n    <h3>\u2139\ufe0f Informaci\u00f3n importante<\/h3>\n    <div class=\"feature\">\n     \ud83d\udccd Agadir, Marruecos\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udcc5 Recepci\u00f3n: 30 de enero de 2027\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udeb4 Carreras: 31 de enero de 2027\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udd27 Es obligatorio llevar un kit de reparaci\u00f3n\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udca7 Lleva provisiones suficientes entre\n     los avituallamientos\n    <\/div>\n   <\/div>\n\n   <div class=\"panel\" lang=\"ar\" dir=\"rtl\">\n    <h3>\u2139\ufe0f \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0645\u0647\u0645\u0629<\/h3>\n    <div class=\"feature\">\n     \ud83d\udccd \u0623\u0643\u0627\u062f\u064a\u0631\u060c \u0627\u0644\u0645\u063a\u0631\u0628\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udcc5 \u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0627\u0644\u0645\u0634\u0627\u0631\u0643\u064a\u0646: 30 \u064a\u0646\u0627\u064a\u0631 2027\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udeb4 \u0627\u0644\u0633\u0628\u0627\u0642\u0627\u062a: 31 \u064a\u0646\u0627\u064a\u0631 2027\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udd27 \u0623\u062f\u0648\u0627\u062a \u0625\u0635\u0644\u0627\u062d \u0627\u0644\u062f\u0631\u0627\u062c\u0629 \u0625\u0644\u0632\u0627\u0645\u064a\u0629\n    <\/div>\n    <div class=\"feature\">\n     \ud83d\udca7 \u064a\u062c\u0628 \u0627\u0644\u062a\u0632\u0648\u062f \u0628\u0627\u0644\u0645\u0627\u0621 \u0648\u0627\u0644\u063a\u0630\u0627\u0621\n     \u0628\u0634\u0643\u0644 \u0645\u0633\u062a\u0642\u0644 \u0628\u064a\u0646 \u0646\u0642\u0627\u0637 \u0627\u0644\u062a\u0645\u0648\u064a\u0646\n    <\/div>\n   <\/div>\n\n  <\/div>\n <\/div>\n<\/section>\n\n<!-- CONDITIONS -->\n<section style=\"background:#181818\">\n <div class=\"wrap\">\n  <div class=\"bilingual\">\n\n   <div class=\"notice\" lang=\"es\">\n    <strong>\u2139\ufe0f Condiciones de inscripci\u00f3n<\/strong>\n    <p>\n     Tarifa reservada a personas\n     de nacionalidad marroqu\u00ed.\n    <\/p>\n   <\/div>\n\n   <div class=\"notice\" lang=\"ar\" dir=\"rtl\">\n    <strong>\u2139\ufe0f \u0634\u0631\u0648\u0637 \u0627\u0644\u062a\u0633\u062c\u064a\u0644<\/strong>\n    <p>\n     \u0647\u0630\u0647 \u0627\u0644\u0623\u0633\u0639\u0627\u0631 \u0645\u062e\u0635\u0635\u0629 \u062d\u0635\u0631\u064a\u0627\u064b\n     \u0644\u0644\u062d\u0627\u0645\u0644\u064a\u0646 \u0644\u0644\u062c\u0646\u0633\u064a\u0629 \u0627\u0644\u0645\u063a\u0631\u0628\u064a\u0629.\n    <\/p>\n   <\/div>\n\n  <\/div>\n <\/div>\n<\/section>\n<\/div>\n\n\n\n<div id=\"agf-maroc-registration-2027\">\n<style>\n#agf-maroc-registration-2027{\n --orange:#FBB03B;\n --dark:#151515;\n --muted:#626262;\n --line:#e5e5e5;\n --light:#f7f7f7;\n max-width:1000px;\n margin:35px auto;\n font-family:Arial,Tahoma,sans-serif;\n color:var(--dark);\n line-height:1.6;\n}\n#agf-maroc-registration-2027 *{box-sizing:border-box}\n#agf-maroc-registration-2027 .agf-header{\n background:#151515;\n color:#fff;\n padding:32px 24px;\n border-radius:16px 16px 0 0;\n}\n#agf-maroc-registration-2027 .agf-header h2{\n color:#fff;\n margin:0 0 10px;\n font-size:28px;\n}\n#agf-maroc-registration-2027 .agf-header p{\n color:#ddd;\n margin:0;\n}\n#agf-maroc-registration-2027 .agf-accent{\n color:#FBB03B!important;\n}\n#agf-maroc-registration-2027 form{\n padding:26px;\n border:1px solid var(--line);\n border-radius:0 0 16px 16px;\n background:#fff;\n}\n#agf-maroc-registration-2027 .agf-section{\n padding:22px 0;\n border-bottom:1px solid var(--line);\n}\n#agf-maroc-registration-2027 .agf-section:first-child{\n padding-top:0;\n}\n#agf-maroc-registration-2027 h3{\n margin:0 0 18px;\n font-size:21px;\n color:var(--dark);\n}\n#agf-maroc-registration-2027 .agf-grid{\n display:grid;\n grid-template-columns:repeat(2,minmax(0,1fr));\n gap:16px;\n}\n#agf-maroc-registration-2027 .agf-field{\n display:flex;\n flex-direction:column;\n gap:6px;\n}\n#agf-maroc-registration-2027 label{\n font-weight:600;\n font-size:14px;\n}\n#agf-maroc-registration-2027 .agf-ar{\n display:block;\n color:var(--muted);\n font-weight:400;\n font-size:13px;\n direction:rtl;\n text-align:right;\n}\n#agf-maroc-registration-2027 input,\n#agf-maroc-registration-2027 select,\n#agf-maroc-registration-2027 textarea{\n width:100%;\n min-height:44px;\n padding:11px 12px;\n border:1px solid #ccc;\n border-radius:8px;\n background:#fff;\n color:#151515;\n font:inherit;\n}\n#agf-maroc-registration-2027 textarea{\n min-height:100px;\n resize:vertical;\n}\n#agf-maroc-registration-2027 input:focus,\n#agf-maroc-registration-2027 select:focus,\n#agf-maroc-registration-2027 textarea:focus{\n outline:2px solid var(--orange);\n outline-offset:1px;\n}\n#agf-maroc-registration-2027 .agf-full{\n grid-column:1\/-1;\n}\n#agf-maroc-registration-2027 .agf-choice{\n display:grid;\n grid-template-columns:1fr 1fr;\n gap:12px;\n}\n#agf-maroc-registration-2027 .agf-choice label{\n display:flex;\n align-items:center;\n gap:10px;\n padding:16px;\n border:1px solid #ddd;\n border-radius:10px;\n cursor:pointer;\n}\n#agf-maroc-registration-2027 .agf-choice input{\n width:18px;\n min-height:18px;\n accent-color:#FBB03B;\n}\n#agf-maroc-registration-2027 .agf-choice strong{\n margin-left:auto;\n font-size:18px;\n}\n#agf-maroc-registration-2027 .agf-note{\n padding:13px 16px;\n background:var(--light);\n border-left:4px solid var(--orange);\n border-radius:5px;\n font-size:14px;\n margin-top:14px;\n}\n#agf-maroc-registration-2027 .agf-check{\n display:flex;\n align-items:flex-start;\n gap:10px;\n margin:12px 0;\n font-size:14px;\n font-weight:400;\n}\n#agf-maroc-registration-2027 .agf-check input{\n width:18px;\n min-height:18px;\n flex-shrink:0;\n margin-top:2px;\n accent-color:#FBB03B;\n}\n#agf-maroc-registration-2027 .agf-rules-box{\n background:#fff8e9;\n border:1px solid #f1d79d;\n border-left:4px solid #FBB03B;\n border-radius:10px;\n padding:20px;\n margin:8px 0 22px;\n}\n#agf-maroc-registration-2027 .agf-rules-box h4{\n font-size:17px;\n margin:0 0 10px;\n color:#151515;\n}\n#agf-maroc-registration-2027 .agf-rules-box p{\n font-size:14px;\n margin:0 0 12px;\n}\n#agf-maroc-registration-2027 .agf-rules-link{\n display:inline-block;\n background:#151515;\n color:#FBB03B!important;\n padding:12px 18px;\n border-radius:8px;\n text-decoration:none!important;\n font-weight:700;\n font-size:14px;\n line-height:1.6;\n text-align:center;\n}\n#agf-maroc-registration-2027 .agf-rules-link:hover{\n background:#333;\n}\n#agf-maroc-registration-2027 .agf-total{\n display:flex;\n align-items:center;\n justify-content:space-between;\n gap:15px;\n padding:20px;\n background:#151515;\n color:#fff;\n border-radius:12px;\n margin-top:22px;\n}\n#agf-maroc-registration-2027 .agf-total strong{\n color:var(--orange);\n font-size:27px;\n}\n#agf-maroc-registration-2027 .agf-small{\n font-size:12px;\n color:var(--muted);\n margin-top:10px;\n}\n#agf-maroc-registration-2027 .agf-honeypot{\n position:absolute;\n left:-9999px;\n height:1px;\n overflow:hidden;\n}\n#agf-maroc-registration-2027 .agf-result{\n display:none;\n padding:24px;\n margin-top:20px;\n border-radius:12px;\n line-height:1.7;\n}\n#agf-maroc-registration-2027 .agf-result.success{\n display:block;\n background:#f0f8f1;\n border:1px solid #acd5b3;\n color:#174d29;\n}\n#agf-maroc-registration-2027 .agf-result.error{\n display:block;\n background:#fff2f2;\n border:1px solid #e9b0b0;\n color:#8c2525;\n}\n#agf-maroc-registration-2027 .agf-contact-grid{\n display:grid;\n grid-template-columns:1fr 1fr;\n gap:14px;\n margin-top:18px;\n}\n#agf-maroc-registration-2027 .agf-contact-link{\n display:flex;\n align-items:center;\n justify-content:center;\n flex-direction:column;\n gap:5px;\n width:100%;\n padding:17px 12px;\n border-radius:10px;\n font-weight:800;\n font-size:16px;\n text-align:center;\n border:0;\n cursor:pointer;\n min-height:72px;\n}\n#agf-maroc-registration-2027 .agf-contact-link small{\n font-size:12px;\n font-weight:400;\n}\n#agf-maroc-registration-2027 .agf-whatsapp{\n background:#176b45;\n color:#fff;\n}\n#agf-maroc-registration-2027 .agf-email{\n background:#151515;\n color:#fff;\n}\n#agf-maroc-registration-2027 .agf-contact-link:disabled{\n opacity:.65;\n cursor:wait;\n}\n#agf-maroc-registration-2027 .agf-contact-status{\n padding:12px;\n background:#f7f7f7;\n border-radius:8px;\n font-size:13px;\n color:#555;\n margin-top:12px;\n}\n@media(max-width:650px){\n #agf-maroc-registration-2027 .agf-grid,\n #agf-maroc-registration-2027 .agf-choice,\n #agf-maroc-registration-2027 .agf-contact-grid{\n  grid-template-columns:1fr;\n }\n #agf-maroc-registration-2027 form{\n  padding:18px;\n }\n #agf-maroc-registration-2027 .agf-header{\n  padding:24px 18px;\n }\n #agf-maroc-registration-2027 .agf-rules-box{\n  padding:16px;\n }\n #agf-maroc-registration-2027 .agf-rules-link{\n  display:block;\n }\n}\n<\/style>\n\n<div class=\"agf-header\">\n <h2>INSCRIPCI\u00d3N MARROQU\u00cd 2027<\/h2>\n <p lang=\"ar\" dir=\"rtl\">\u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0648\u0637\u0646\u064a 2027<\/p>\n <p class=\"agf-accent\">\n  30\u201331 DE ENERO DE 2027 \u00b7 AGADIR \u00b7 MARRUECOS\n <\/p>\n<\/div>\n\n<form id=\"agf-maroc-form\" method=\"POST\">\n\n<input type=\"hidden\" name=\"form_type\" value=\"maroc\">\n\n<div class=\"agf-honeypot\" aria-hidden=\"true\">\n <label>Website\n  <input type=\"text\" name=\"website\" tabindex=\"-1\" autocomplete=\"off\">\n <\/label>\n<\/div>\n\n<!-- SECTION 01 -->\n<section class=\"agf-section\">\n<h3>\n 01. Datos personales\n <span class=\"agf-ar\" lang=\"ar\">\n  \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0634\u062e\u0635\u064a\u0629\n <\/span>\n<\/h3>\n\n<div class=\"agf-grid\">\n\n <div class=\"agf-field\">\n  <label>Nombre *\n   <span class=\"agf-ar\" lang=\"ar\">\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0634\u062e\u0635\u064a<\/span>\n  <\/label>\n  <input name=\"first_name\" required maxlength=\"100\">\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Apellidos *\n   <span class=\"agf-ar\" lang=\"ar\">\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0639\u0627\u0626\u0644\u064a<\/span>\n  <\/label>\n  <input name=\"last_name\" required maxlength=\"100\">\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Fecha de nacimiento *\n   <span class=\"agf-ar\" lang=\"ar\">\u062a\u0627\u0631\u064a\u062e \u0627\u0644\u0627\u0632\u062f\u064a\u0627\u062f<\/span>\n  <\/label>\n  <input type=\"date\" name=\"birth_date\" required>\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Categor\u00eda *\n   <span class=\"agf-ar\" lang=\"ar\">\u0627\u0644\u0641\u0626\u0629<\/span>\n  <\/label>\n  <select name=\"gender\" required>\n   <option value=\"\">Seleccionar \/ \u0627\u062e\u062a\u0631<\/option>\n   <option value=\"Homme\">Hombre \/ \u0630\u0643\u0631<\/option>\n   <option value=\"Femme\">Mujer \/ \u0623\u0646\u062b\u0649<\/option>\n  <\/select>\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Nacionalidad *\n   <span class=\"agf-ar\" lang=\"ar\">\u0627\u0644\u062c\u0646\u0633\u064a\u0629<\/span>\n  <\/label>\n  <select name=\"nationality\" required>\n   <option value=\"\">Seleccionar \/ \u0627\u062e\u062a\u0631<\/option>\n   <option value=\"Marocaine\">Marroqu\u00ed \/ \u0645\u063a\u0631\u0628\u064a\u0629<\/option>\n   <option value=\"Marocain\">Marroqu\u00ed \/ \u0645\u063a\u0631\u0628\u064a<\/option>\n  <\/select>\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Pa\u00eds de residencia *\n   <span class=\"agf-ar\" lang=\"ar\">\u0628\u0644\u062f \u0627\u0644\u0625\u0642\u0627\u0645\u0629<\/span>\n  <\/label>\n  <input name=\"country\" value=\"Marruecos\" required maxlength=\"100\">\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Ciudad\n   <span class=\"agf-ar\" lang=\"ar\">\u0627\u0644\u0645\u062f\u064a\u0646\u0629<\/span>\n  <\/label>\n  <input name=\"city\" maxlength=\"100\">\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Club\n   <span class=\"agf-ar\" lang=\"ar\">\u0627\u0644\u0646\u0627\u062f\u064a<\/span>\n  <\/label>\n  <input name=\"club\" maxlength=\"150\">\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Correo electr\u00f3nico *\n   <span class=\"agf-ar\" lang=\"ar\">\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a<\/span>\n  <\/label>\n  <input type=\"email\" name=\"email\" required maxlength=\"200\">\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Tel\u00e9fono *\n   <span class=\"agf-ar\" lang=\"ar\">\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641<\/span>\n  <\/label>\n  <input type=\"tel\" name=\"phone\" required maxlength=\"40\" placeholder=\"+212...\">\n <\/div>\n\n <div class=\"agf-field agf-full\">\n  <label>Contacto de emergencia *\n   <span class=\"agf-ar\" lang=\"ar\">\n    \u062c\u0647\u0629 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0641\u064a \u062d\u0627\u0644\u0629 \u0627\u0644\u0637\u0648\u0627\u0631\u0626\n   <\/span>\n  <\/label>\n  <input name=\"emergency_contact\" required maxlength=\"150\" placeholder=\"Nombre y tel\u00e9fono \/ \u0627\u0644\u0627\u0633\u0645 \u0648\u0627\u0644\u0647\u0627\u062a\u0641\">\n <\/div>\n\n<\/div>\n<\/section>\n\n<!-- SECTION 02 -->\n<section class=\"agf-section\">\n<h3>\n 02. Elige tu recorrido\n <span class=\"agf-ar\" lang=\"ar\">\n  \u0627\u062e\u062a\u0631 \u0645\u0633\u0627\u0641\u062a\u0643\n <\/span>\n<\/h3>\n\n<div class=\"agf-choice\">\n\n <label>\n  <input type=\"radio\" name=\"distance\" value=\"135 km\" data-price=\"450\" required>\n  <span>135 KM<\/span>\n  <strong>450 MAD<\/strong>\n <\/label>\n\n <label>\n  <input type=\"radio\" name=\"distance\" value=\"100 km\" data-price=\"400\" required>\n  <span>100 KM<\/span>\n  <strong>400 MAD<\/strong>\n <\/label>\n\n<\/div>\n\n<div class=\"agf-note\">\n La inscripci\u00f3n nacional est\u00e1 reservada a personas\n de nacionalidad marroqu\u00ed.\n <span class=\"agf-ar\" lang=\"ar\">\n  \u0627\u0644\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0648\u0637\u0646\u064a \u0645\u062e\u0635\u0635 \u0644\u0644\u0623\u0634\u062e\u0627\u0635 \u0627\u0644\u062d\u0627\u0645\u0644\u064a\u0646 \u0644\u0644\u062c\u0646\u0633\u064a\u0629 \u0627\u0644\u0645\u063a\u0631\u0628\u064a\u0629.\n <\/span>\n<\/div>\n\n<\/section>\n\n<!-- SECTION 03 -->\n<section class=\"agf-section\">\n<h3>\n 03. Servicios adicionales\n <span class=\"agf-ar\" lang=\"ar\">\n  \u062e\u062f\u0645\u0627\u062a \u0625\u0636\u0627\u0641\u064a\u0629\n <\/span>\n<\/h3>\n\n<div class=\"agf-grid\">\n\n <div class=\"agf-field\">\n  <label>\n   Maillot ciclista oficial 2027\n   \u2014 Opcional: 300 MAD\n   <span class=\"agf-ar\" lang=\"ar\">\n    \u0627\u0644\u0642\u0645\u064a\u0635 \u0627\u0644\u0631\u0633\u0645\u064a \u0644\u0644\u062f\u0631\u0627\u062c\u0627\u062a 2027\n    \u2014 \u0627\u062e\u062a\u064a\u0627\u0631\u064a: 300 \u062f\u0631\u0647\u0645\n   <\/span>\n  <\/label>\n  <select name=\"jersey\" id=\"agf-maroc-jersey\">\n   <option value=\"Non\">\n    No, gracias \/ \u0644\u0627\u060c \u0634\u0643\u0631\u0627\u064b\n   <\/option>\n   <option value=\"Oui - 300 MAD\">\n    S\u00ed, quiero el maillot (+300 MAD)\n    \/ \u0646\u0639\u0645\u060c \u0623\u0637\u0644\u0628 \u0627\u0644\u0642\u0645\u064a\u0635 (+300 \u062f\u0631\u0647\u0645)\n   <\/option>\n  <\/select>\n <\/div>\n\n <div class=\"agf-field\">\n  <label>Talla del maillot\n   <span class=\"agf-ar\" lang=\"ar\">\n    \u0645\u0642\u0627\u0633 \u0627\u0644\u0642\u0645\u064a\u0635\n   <\/span>\n  <\/label>\n  <select name=\"jersey_size\" id=\"agf-maroc-jersey-size\" disabled>\n   <option value=\"\">Seleccionar \/ \u0627\u062e\u062a\u0631<\/option>\n   <option>XS<\/option>\n   <option>S<\/option>\n   <option>M<\/option>\n   <option>L<\/option>\n   <option>XL<\/option>\n   <option>XXL<\/option>\n  <\/select>\n <\/div>\n\n <div class=\"agf-field agf-full\">\n  <label>Comentarios\n   <span class=\"agf-ar\" lang=\"ar\">\n    \u0645\u0644\u0627\u062d\u0638\u0627\u062a \u0625\u0636\u0627\u0641\u064a\u0629\n   <\/span>\n  <\/label>\n  <textarea name=\"comments\" maxlength=\"1500\"><\/textarea>\n <\/div>\n\n<\/div>\n<\/section>\n\n<!-- SECTION 04 -->\n<section class=\"agf-section\">\n<h3>\n 04. Confirmaci\u00f3n de la inscripci\u00f3n\n <span class=\"agf-ar\" lang=\"ar\">\n  \u062a\u0623\u0643\u064a\u062f \u0627\u0644\u062a\u0633\u062c\u064a\u0644\n <\/span>\n<\/h3>\n\n<!-- R\u00c8GLEMENT OFFICIEL ES \/ AR -->\n<div class=\"agf-rules-box\">\n <h4>\n  Reglamento oficial\n  <span class=\"agf-ar\" lang=\"ar\">\n   \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0627\u0644\u0631\u0633\u0645\u064a \u0644\u0644\u0633\u0628\u0627\u0642\n  <\/span>\n <\/h4>\n\n <p>\n  Antes de confirmar tu inscripci\u00f3n,\n  consulta el reglamento oficial\n  del Atlas Gran Fondo 2027.\n <\/p>\n\n <p class=\"agf-ar\" lang=\"ar\">\n  \u0642\u0628\u0644 \u062a\u0623\u0643\u064a\u062f \u062a\u0633\u062c\u064a\u0644\u0643\u060c \u064a\u0631\u062c\u0649 \u0627\u0644\u0627\u0637\u0644\u0627\u0639 \u0639\u0644\u0649\n  \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0627\u0644\u0631\u0633\u0645\u064a \u0644\u0633\u0628\u0627\u0642 \u0623\u0637\u0644\u0633 \u063a\u0631\u0627\u0646 \u0641\u0648\u0646\u062f\u0648 2027.\n <\/p>\n\n <a\n  class=\"agf-rules-link\"\n  href=\"https:\/\/www.atlasgranfondo.com\/granfondo\/reglement-2027\/\"\n  target=\"_blank\"\n  rel=\"noopener noreferrer\"\n >\n  Consultar el reglamento oficial (versi\u00f3n en franc\u00e9s)\n  <span style=\"display:block;\" lang=\"ar\" dir=\"rtl\">\n   \u0627\u0644\u0627\u0637\u0644\u0627\u0639 \u0639\u0644\u0649 \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0627\u0644\u0631\u0633\u0645\u064a\n  <\/span>\n <\/a>\n<\/div>\n\n<!-- ACCEPTATION OBLIGATOIRE -->\n<label class=\"agf-check\">\n <input type=\"checkbox\" name=\"rules\" value=\"oui\" required>\n <span>\n  <strong>\n   He le\u00eddo y acepto el reglamento oficial\n   del Atlas Gran Fondo 2027.\n  <\/strong>\n  <span class=\"agf-ar\" lang=\"ar\">\n   \u0644\u0642\u062f \u0642\u0631\u0623\u062a \u0627\u0644\u0642\u0627\u0646\u0648\u0646 \u0627\u0644\u0631\u0633\u0645\u064a \u0644\u0633\u0628\u0627\u0642 \u0623\u0637\u0644\u0633 \u063a\u0631\u0627\u0646 \u0641\u0648\u0646\u062f\u0648 2027\n   \u0648\u0623\u0648\u0627\u0641\u0642 \u0639\u0644\u0649 \u062c\u0645\u064a\u0639 \u0623\u062d\u0643\u0627\u0645\u0647.\n  <\/span>\n <\/span>\n<\/label>\n\n<label class=\"agf-check\">\n <input type=\"checkbox\" name=\"accuracy\" value=\"oui\" required>\n <span>\n  Confirmo que la informaci\u00f3n es correcta.\n  <span class=\"agf-ar\" lang=\"ar\">\n   \u0623\u0624\u0643\u062f \u0635\u062d\u0629 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0645\u0642\u062f\u0645\u0629.\n  <\/span>\n <\/span>\n<\/label>\n\n<label class=\"agf-check\">\n <input type=\"checkbox\" name=\"privacy\" value=\"oui\" required>\n <span>\n  He le\u00eddo la informaci\u00f3n sobre el tratamiento\n  de mis datos personales. <a href=\"https:\/\/www.atlasgranfondo.com\/granfondo\/?page_id=8329\" target=\"_blank\" rel=\"noopener noreferrer\">Leer la pol\u00edtica de privacidad<\/a>.\n  <span class=\"agf-ar\" lang=\"ar\">\n   \u0627\u0637\u0644\u0639\u062a \u0639\u0644\u0649 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0645\u0639\u0627\u0644\u062c\u0629 \u0628\u064a\u0627\u0646\u0627\u062a\u064a \u0627\u0644\u0634\u062e\u0635\u064a\u0629. <a href=\"https:\/\/www.atlasgranfondo.com\/granfondo\/?page_id=8329\" target=\"_blank\" rel=\"noopener noreferrer\">\u0633\u064a\u0627\u0633\u0629 \u0627\u0644\u062e\u0635\u0648\u0635\u064a\u0629<\/a>.\n  <\/span>\n <\/span>\n<\/label>\n\n<div class=\"agf-total\">\n <span>\n  Precio de inscripci\u00f3n\n  <span class=\"agf-ar\" lang=\"ar\">\n   \u0631\u0633\u0648\u0645 \u0627\u0644\u062a\u0633\u062c\u064a\u0644\n  <\/span>\n <\/span>\n <strong id=\"agf-maroc-total\">\u2014 MAD<\/strong>\n<\/div>\n\n<p class=\"agf-small\">\n No se solicita ning\u00fan pago en esta etapa.\n <span class=\"agf-ar\" lang=\"ar\">\n  \u0644\u0627 \u064a\u064f\u0637\u0644\u0628 \u0627\u0644\u062f\u0641\u0639 \u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0645\u0631\u062d\u0644\u0629.\n <\/span>\n<\/p>\n\n<div style=\"margin-top:26px\">\n <h3>\n  Elige c\u00f3mo confirmar tu inscripci\u00f3n\n  <span class=\"agf-ar\" lang=\"ar\">\n   \u0627\u062e\u062a\u0631 \u0637\u0631\u064a\u0642\u0629 \u062a\u0623\u0643\u064a\u062f \u0627\u0644\u062a\u0633\u062c\u064a\u0644\n  <\/span>\n <\/h3>\n\n <div class=\"agf-contact-grid\">\n\n  <button type=\"submit\" id=\"agf-maroc-whatsapp\" class=\"agf-contact-link agf-whatsapp\" data-method=\"whatsapp\">\n   \u2713 CONFIRMAR POR WHATSAPP\n   <small lang=\"ar\">\n    \u0627\u0644\u062a\u0623\u0643\u064a\u062f \u0639\u0628\u0631 \u0648\u0627\u062a\u0633\u0627\u0628\n   <\/small>\n  <\/button>\n\n  <button type=\"submit\" id=\"agf-maroc-email\" class=\"agf-contact-link agf-email\" data-method=\"email\">\n   \u2709 CONFIRMAR POR CORREO ELECTR\u00d3NICO\n   <small lang=\"ar\">\n    \u0627\u0644\u062a\u0623\u0643\u064a\u062f \u0639\u0628\u0631 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a\n   <\/small>\n  <\/button>\n\n <\/div>\n\n <div class=\"agf-contact-status\" id=\"agf-maroc-contact-status\" role=\"status\" aria-live=\"polite\">\n  Elige una opci\u00f3n para enviar tu inscripci\u00f3n.\n  <span class=\"agf-ar\" lang=\"ar\">\n   \u0627\u062e\u062a\u0631 \u0625\u062d\u062f\u0649 \u0627\u0644\u0637\u0631\u064a\u0642\u062a\u064a\u0646 \u0644\u0625\u062a\u0645\u0627\u0645 \u0627\u0644\u062a\u0633\u062c\u064a\u0644.\n  <\/span>\n <\/div>\n<\/div>\n\n<\/section>\n<\/form>\n\n<div id=\"agf-maroc-result\" class=\"agf-result\" role=\"status\" aria-live=\"polite\">\n<\/div>\n\n<script>\n(function(){\n\n const root=document.getElementById(\n  'agf-maroc-registration-2027'\n );\n\n if(!root||root.dataset.initialized==='yes')return;\n root.dataset.initialized='yes';\n\n const form=root.querySelector('#agf-maroc-form');\n const total=root.querySelector('#agf-maroc-total');\n const result=root.querySelector('#agf-maroc-result');\n const whatsapp=root.querySelector('#agf-maroc-whatsapp');\n const emailButton=root.querySelector('#agf-maroc-email');\n const jersey=root.querySelector('#agf-maroc-jersey');\n const jerseySize=root.querySelector('#agf-maroc-jersey-size');\n const contactStatus=root.querySelector(\n  '#agf-maroc-contact-status'\n );\n\n const endpoint=\n  'https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/agf2027\/v1\/registration';\n\n let confirmed=false;\n let sending=false;\n let selectedMethod='';\n\n \/\/ CALCUL AUTOMATIQUE DU TOTAL\n function updateTotal(){\n\n  const selectedDistance=root.querySelector(\n   'input[name=\"distance\"]:checked'\n  );\n\n  if(!selectedDistance){\n   total.textContent='\u2014 MAD';\n   return;\n  }\n\n  const registrationPrice=Number(\n   selectedDistance.dataset.price\n  );\n\n  const jerseyPrice=\n   jersey.value!=='Non' ? 300 : 0;\n\n  const finalTotal=registrationPrice+jerseyPrice;\n\n  total.textContent=finalTotal.toFixed(0)+' MAD';\n }\n\n root.querySelectorAll(\n  'input[name=\"distance\"]'\n ).forEach(function(radio){\n  radio.addEventListener('change',updateTotal);\n });\n\n jersey.addEventListener('change',function(){\n\n  const selected=jersey.value!=='Non';\n\n  jerseySize.disabled=!selected;\n  jerseySize.required=selected;\n\n  if(!selected){\n   jerseySize.value='';\n  }\n\n  updateTotal();\n });\n\n function setButtonsDisabled(disabled){\n  whatsapp.disabled=disabled;\n  emailButton.disabled=disabled;\n }\n\n function showMessage(type,title,message){\n  result.className='agf-result '+type;\n  result.replaceChildren();\n\n  const heading=document.createElement('h3');\n  heading.textContent=title;\n\n  const paragraph=document.createElement('p');\n  paragraph.textContent=message;\n\n  result.append(heading,paragraph);\n\n  result.scrollIntoView({\n   behavior:'smooth',\n   block:'center'\n  });\n }\n\n whatsapp.addEventListener('click',function(){\n  selectedMethod='whatsapp';\n });\n\n emailButton.addEventListener('click',function(){\n  selectedMethod='email';\n });\n\n form.addEventListener('submit',async function(event){\n\n  event.preventDefault();\n\n  if(confirmed||sending)return;\n  if(!form.reportValidity())return;\n\n  const method=event.submitter &&\n   event.submitter.dataset.method\n    ?event.submitter.dataset.method\n    :selectedMethod;\n\n  if(method!=='whatsapp'&&method!=='email'){\n   showMessage(\n    'error',\n    'Falta elegir el m\u00e9todo de confirmaci\u00f3n',\n    'Elige WhatsApp o correo electr\u00f3nico.'\n   );\n   return;\n  }\n\n  sending=true;\n  setButtonsDisabled(true);\n\n  contactStatus.textContent=\n   'Enviando tu inscripci\u00f3n... \/ \u062c\u0627\u0631\u064d \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0637\u0644\u0628...';\n\n  result.className='agf-result';\n  result.replaceChildren();\n\n  const data=new FormData(form);\n\n  const getField=function(name){\n   return String(data.get(name)||'').trim();\n  };\n\n  const firstName=getField('first_name');\n  const lastName=getField('last_name');\n  const fullName=(firstName+' '+lastName).trim();\n  const distance=getField('distance');\n\n  const selectedDistance=form.querySelector(\n   'input[name=\"distance\"]:checked'\n  );\n\n  const registrationPrice=selectedDistance\n   ?Number(selectedDistance.dataset.price)\n   :0;\n\n  const jerseySelected=getField('jersey')!=='Non';\n  const jerseyPrice=jerseySelected ? 300 : 0;\n  const totalPrice=registrationPrice+jerseyPrice;\n\n  let whatsappWindow=null;\n\n  if(method==='whatsapp'){\n   whatsappWindow=window.open('','_blank');\n\n   if(whatsappWindow){\n    try{\n     whatsappWindow.document.title=\n      'Atlas Gran Fondo 2027';\n\n     whatsappWindow.document.body.textContent=\n      'Enviando tu inscripci\u00f3n...';\n    }catch(e){}\n   }\n  }\n\n  try{\n\n   const response=await fetch(endpoint,{\n    method:'POST',\n    body:data,\n    credentials:'same-origin',\n    headers:{\n     'Accept':'application\/json'\n    }\n   });\n\n   let answer;\n\n   try{\n    answer=await response.json();\n   }catch(e){\n    throw new Error(\n     'No se pudo leer la respuesta del servidor. '+\n     'Contacta con la organizaci\u00f3n antes de volver a intentarlo.'\n    );\n   }\n\n   if(!response.ok||answer.ok!==true){\n    throw new Error(\n     answer.message||\n     'No se pudo confirmar la inscripci\u00f3n.'\n    );\n   }\n\n   if(!answer.reference){\n    throw new Error(\n     'No se recibi\u00f3 una referencia. '+\n     'Contacta con la organizaci\u00f3n antes de volver a intentarlo.'\n    );\n   }\n\n   const reference=String(answer.reference);\n   confirmed=true;\n\n   \/\/ OBJET DE L'E-MAIL\n   const subject=\n    'AGF 2027 - Inscription Maroc - '+\n    reference+' - '+fullName;\n\n   \/\/ FICHE COMPLETE POUR E-MAIL ET WHATSAPP\n   const message=\n    'ATLAS GRAN FONDO 2027\\n'+\n    'RESUMEN COMPLETO DE INSCRIPCI\u00d3N - MARRUECOS\\n'+\n    '30-31 ENERO 2027 - AGADIR\\n'+\n    '================================\\n\\n'+\n\n    'REFERENCIA DE INSCRIPCI\u00d3N : '+reference+'\\n'+\n    'ESTADO: Pago pendiente\\n\\n'+\n\n    '01. DATOS PERSONALES\\n'+\n    '--------------------------------\\n'+\n    'Nombre: '+getField('first_name')+'\\n'+\n    'Apellidos: '+getField('last_name')+'\\n'+\n    'Fecha de nacimiento: '+getField('birth_date')+'\\n'+\n    'Categor\u00eda: '+getField('gender')+'\\n'+\n    'Nacionalidad: '+getField('nationality')+'\\n'+\n    'Pa\u00eds de residencia: '+getField('country')+'\\n'+\n    'Ciudad: '+(getField('city')||'No indicado')+'\\n'+\n    'Club : '+(getField('club')||'No indicado')+'\\n'+\n    'Correo electr\u00f3nico: '+getField('email')+'\\n'+\n    'Tel\u00e9fono: '+getField('phone')+'\\n'+\n    'Contacto de emergencia: '+\n     getField('emergency_contact')+'\\n\\n'+\n\n    '02. RECORRIDO\\n'+\n    '--------------------------------\\n'+\n    'Distancia: '+distance+'\\n'+\n    'Precio de inscripci\u00f3n: '+\n     registrationPrice+' MAD\\n\\n'+\n\n    '03. SERVICIOS ADICIONALES\\n'+\n    '--------------------------------\\n'+\n    'Maillot oficial: '+\n     (jerseySelected?'Oui':'Non')+'\\n'+\n    'Talla del maillot: '+\n     (jerseySelected\n      ?(getField('jersey_size')||'No indicado')\n      :'No aplica')+'\\n'+\n    'Precio del maillot: '+jerseyPrice+' MAD\\n'+\n    'Comentarios: '+\n     (getField('comments')||'Ninguno')+'\\n\\n'+\n\n    '04. RESUMEN DE COSTES\\n'+\n    '--------------------------------\\n'+\n    'Inscripci\u00f3n: '+registrationPrice+' MAD\\n'+\n    'Maillot oficial: '+jerseyPrice+' MAD\\n'+\n    '--------------------------------\\n'+\n    'TOTAL A PAGAR: '+totalPrice+' MAD\\n'+\n    'Pago: PENDIENTE\\n\\n'+\n\n    '05. CONFIRMACIONES\\n'+\n    '--------------------------------\\n'+\n    'Reglamento oficial : '+\n     'https:\/\/www.atlasgranfondo.com\/granfondo\/reglement-2027\/\\n'+\n    'Reglamento aceptado: '+\n     (getField('rules')==='oui'?'Oui':'Non')+'\\n'+\n    'Informaci\u00f3n confirmada: '+\n     (getField('accuracy')==='oui'?'Oui':'Non')+'\\n'+\n    'Tratamiento de datos aceptado: '+\n     (getField('privacy')==='oui'?'Oui':'Non')+'\\n\\n'+\n\n    '================================\\n'+\n    'ATLAS GRAN FONDO 2027\\n'+\n    'Resumen de inscripci\u00f3n\\n'+\n    'R\u00e9f\u00e9rence : '+reference+'\\n';\n\n   setButtonsDisabled(true);\n\n   whatsapp.textContent=\n    '\u2713 INSCRIPCI\u00d3N REGISTRADA';\n\n   emailButton.textContent=\n    '\u2713 \u062a\u0645 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0637\u0644\u0628';\n\n   contactStatus.textContent=\n    'Inscripci\u00f3n registrada : '+reference+\n    '. Pago pendiente. \/ \u062a\u0645 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0637\u0644\u0628 \u0628\u0646\u062c\u0627\u062d.';\n\n   form.querySelectorAll(\n    'input,select,textarea'\n   ).forEach(function(field){\n    field.disabled=true;\n   });\n\n   showMessage(\n    'success',\n    '\u2713 Inscripci\u00f3n registrada \/ \u062a\u0645 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u0637\u0644\u0628',\n    'Gracias '+firstName+\n    ' ! Referencia: '+reference+\n    '. Recorrido: '+distance+\n    '. Total: '+totalPrice+' MAD. Pago pendiente.'\n   );\n\n   if(method==='whatsapp'){\n\n    const url=\n     'https:\/\/wa.me\/212611292331?text='+\n     encodeURIComponent(message);\n\n    if(whatsappWindow&&!whatsappWindow.closed){\n     whatsappWindow.location.replace(url);\n    }else{\n     window.location.href=url;\n    }\n\n   }else{\n\n    const url=\n     'mailto:contact@atlasgranfondo.com?subject='+\n     encodeURIComponent(subject)+\n     '&body='+encodeURIComponent(message);\n\n    window.location.href=url;\n   }\n\n  }catch(error){\n\n   if(whatsappWindow&&!whatsappWindow.closed){\n    whatsappWindow.close();\n   }\n\n   showMessage(\n    'error',\n    'Inscripci\u00f3n no confirmada \/ \u0644\u0645 \u064a\u062a\u0645 \u062a\u0623\u0643\u064a\u062f \u0627\u0644\u062a\u0633\u062c\u064a\u0644',\n    error.message||\n    'Error de conexi\u00f3n. Int\u00e9ntalo de nuevo.'\n   );\n\n   sending=false;\n   setButtonsDisabled(false);\n\n   contactStatus.textContent=\n    'Inscripci\u00f3n no confirmada. Consulta el mensaje.';\n  }\n\n });\n\n})();\n<\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\uddf2\ud83c\udde6 AGADIR \u2022 30\u201331 DE ENERO DE 2027 INSCRIPCI\u00d3N MARRUECOS Atlas Gran Fondo 2027 \u2014 La inscripci\u00f3n est\u00e1 reservada a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"content-type":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"full-width-container","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":""},"class_list":["post-8386","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/pages\/8386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/comments?post=8386"}],"version-history":[{"count":8,"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/pages\/8386\/revisions"}],"predecessor-version":[{"id":8653,"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/pages\/8386\/revisions\/8653"}],"wp:attachment":[{"href":"https:\/\/www.atlasgranfondo.com\/granfondo\/wp-json\/wp\/v2\/media?parent=8386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}