/* Diagnóstico Digital — UI React trilingüe (FR · DE · ES). Usa window.DIAG. */ const { useState, useEffect, useRef } = React; const LANGS = ["fr", "de", "es", "en"]; const STORE = "md_lang"; const UI = { fr: { back_site: "← Retour au site", wkicker: "Gratuit · Sans inscription", wt1: "Diagnostic", wt2: "digital gratuit", wlead: "Répondez à quelques questions simples sur votre activité et recevez aussitôt un rapport personnalisé : votre score digital sur 100, vos points forts, vos axes d'amélioration et des recommandations concrètes.", f_min: "minutes", f_blocks: "blocs", f_score: "score", start: "Commencer le diagnostic", fineprint: "Vos réponses ne sont pas partagées. Le rapport est généré automatiquement pour vous.", progress: (c, t) => "Étape " + c + " sur " + t, multi_hint: "· plusieurs choix", choose: "Choisissez une option…", back: "← Retour", next: "Suivant", see_report: "Voir mon rapport", rkicker: "Votre rapport digital", rtitle: e => "Diagnostic de " + e, your_biz: "votre activité", pts: "pts", strengths_h: "Points forts détectés", opp_h: "Axes d'amélioration", impact_h: "Impact estimé sur votre activité", rec_h: "Recommandations personnalisées", svc_kicker: "Comment Mariño Digital peut vous aider", svc_h: "Des services pour ce dont vous avez besoin maintenant", cta_h: "Je veux un audit personnalisé gratuit", cta_p: "Je vous analyse en profondeur, sans engagement, et je vous propose un plan sur mesure sans jargon.", cta_btn: "Demander l'audit gratuit", cta_more: "En savoir plus sur Mariño Digital", restart: "↺ Refaire le diagnostic", }, de: { back_site: "← Zurück zur Website", wkicker: "Kostenlos · Ohne Anmeldung", wt1: "Kostenlose", wt2: "Digital-Analyse", wlead: "Beantworten Sie ein paar einfache Fragen zu Ihrem Unternehmen und erhalten Sie sofort einen persönlichen Bericht: Ihr Digital-Score von 100, Ihre Stärken, Ihre Verbesserungspotenziale und konkrete Empfehlungen.", f_min: "Minuten", f_blocks: "Blöcke", f_score: "Score", start: "Analyse starten", fineprint: "Ihre Antworten werden nicht geteilt. Der Bericht wird automatisch für Sie erstellt.", progress: (c, t) => "Schritt " + c + " von " + t, multi_hint: "· Mehrfachauswahl", choose: "Wählen Sie eine Option…", back: "← Zurück", next: "Weiter", see_report: "Meinen Bericht ansehen", rkicker: "Ihr Digital-Bericht", rtitle: e => "Diagnose von " + e, your_biz: "Ihr Unternehmen", pts: "Pkt.", strengths_h: "Erkannte Stärken", opp_h: "Verbesserungspotenziale", impact_h: "Geschätzte Auswirkung auf Ihr Geschäft", rec_h: "Persönliche Empfehlungen", svc_kicker: "Wie Mariño Digital Ihnen helfen kann", svc_h: "Services für das, was Sie jetzt brauchen", cta_h: "Ich möchte ein kostenloses Audit", cta_p: "Ich analysiere Sie gründlich, unverbindlich, und schlage Ihnen einen maßgeschneiderten Plan ohne Fachjargon vor.", cta_btn: "Kostenloses Audit anfragen", cta_more: "Mehr über Mariño Digital", restart: "↺ Analyse wiederholen", }, es: { back_site: "← Volver a la web", wkicker: "Gratis · Sin registro", wt1: "Diagnóstico", wt2: "digital gratuito", wlead: "Responde unas preguntas sencillas sobre tu negocio y recibe al instante un informe personalizado: tu puntuación digital sobre 100, tus fortalezas, tus oportunidades de mejora y recomendaciones prácticas.", f_min: "minutos", f_blocks: "bloques", f_score: "puntuación", start: "Empezar diagnóstico", fineprint: "Tus respuestas no se comparten. El informe se genera automáticamente para ti.", progress: (c, t) => "Paso " + c + " de " + t, multi_hint: "· varias opciones", choose: "Elige una opción…", back: "← Atrás", next: "Siguiente", see_report: "Ver mi informe", rkicker: "Tu informe digital", rtitle: e => "Diagnóstico de " + e, your_biz: "tu negocio", pts: "pts", strengths_h: "Fortalezas detectadas", opp_h: "Oportunidades de mejora", impact_h: "Impacto estimado en tu negocio", rec_h: "Recomendaciones personalizadas", svc_kicker: "Cómo puede ayudarte Mariño Digital", svc_h: "Servicios para lo que tu negocio necesita ahora", cta_h: "Quiero una auditoría personalizada gratuita", cta_p: "Te reviso a fondo, sin compromiso, y te propongo un plan a medida sin tecnicismos.", cta_btn: "Pedir auditoría gratis", cta_more: "Ver más sobre Mariño Digital", restart: "↺ Repetir el diagnóstico", }, en: { back_site: "← Back to site", wkicker: "Free · No sign-up", wt1: "Free digital", wt2: "diagnostic", wlead: "Answer a few simple questions about your business and instantly get a personalised report: your digital score out of 100, your strengths, your areas for improvement and practical recommendations.", f_min: "minutes", f_blocks: "blocks", f_score: "score", start: "Start the diagnostic", fineprint: "Your answers aren't shared. The report is generated automatically for you.", progress: (c, t) => "Step " + c + " of " + t, multi_hint: "· multiple choice", choose: "Choose an option…", back: "← Back", next: "Next", see_report: "See my report", rkicker: "Your digital report", rtitle: e => "Diagnostic of " + e, your_biz: "your business", pts: "pts", strengths_h: "Strengths detected", opp_h: "Areas for improvement", impact_h: "Estimated impact on your business", rec_h: "Personalised recommendations", svc_kicker: "How Mariño Digital can help you", svc_h: "Services for what you need now", cta_h: "I want a free personalised audit", cta_p: "I'll review you in depth, with no commitment, and propose a tailored plan with no jargon.", cta_btn: "Request the free audit", cta_more: "More about Mariño Digital", restart: "↺ Retake the diagnostic", }, }; function ProgressBar({ current, total, ui }) { const pct = Math.round((current / total) * 100); return (
{ui.wlead}
{ui.fineprint}
{r.level.blurb}
{r.impact}
{s.desc}
{ui.cta_p}
{step.subtitle}
}