{"id":874,"date":"2026-09-29T23:10:13","date_gmt":"2026-09-29T23:10:13","guid":{"rendered":"https:\/\/fastloansmortgages.com\/portal\/"},"modified":"2026-10-21T16:06:49","modified_gmt":"2026-10-21T16:06:49","slug":"portal","status":"publish","type":"page","link":"https:\/\/fastloansmortgages.com\/es\/portal\/","title":{"rendered":"Portal Seguro de Documentos"},"content":{"rendered":"\n<div class=\"flm-portal-wrap translatepress-no-translate\" data-no-translation>\n    <style>\n        .flm-portal-wrap {\n            font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;\n            color: #1e293b;\n            background: #f8fafc;\n            min-height: 80vh;\n            padding: 32px 16px 64px;\n        }\n        .flm-portal-container {\n            max-width: 840px;\n            margin: 0 auto;\n        }\n        .flm-portal-hero {\n            background: #ffffff;\n            border-radius: 16px;\n            padding: 28px 24px;\n            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);\n            border: 1px solid #e2e8f0;\n            margin-bottom: 24px;\n        }\n        .flm-security-badge {\n            display: inline-flex;\n            align-items: center;\n            gap: 6px;\n            background: #ecfdf5;\n            color: #065f46;\n            font-size: 12px;\n            font-weight: 600;\n            padding: 6px 12px;\n            border-radius: 20px;\n            border: 1px solid #a7f3d0;\n            margin-bottom: 16px;\n        }\n        .flm-portal-title {\n            font-size: 26px;\n            font-weight: 800;\n            color: #0f172a;\n            margin: 0 0 8px;\n            line-height: 1.25;\n        }\n        .flm-portal-subtitle {\n            font-size: 15px;\n            color: #475569;\n            margin: 0 0 20px;\n            line-height: 1.5;\n        }\n        \/* LO Card *\/\n        .flm-lo-card {\n            display: flex;\n            align-items: center;\n            gap: 16px;\n            background: #f1f5f9;\n            border-radius: 12px;\n            padding: 14px 18px;\n            border-left: 4px solid #1b4332;\n        }\n        .flm-lo-avatar {\n            width: 52px;\n            height: 52px;\n            border-radius: 50%;\n            object-fit: cover;\n            border: 2px solid #ffffff;\n            box-shadow: 0 2px 6px rgba(0,0,0,0.1);\n        }\n        .flm-lo-info {\n            flex: 1;\n        }\n        .flm-lo-name {\n            font-size: 15px;\n            font-weight: 700;\n            color: #0f172a;\n            margin: 0;\n        }\n        .flm-lo-title {\n            font-size: 12px;\n            color: #64748b;\n            margin: 2px 0 0;\n        }\n        .flm-lo-actions {\n            display: flex;\n            gap: 8px;\n        }\n        .flm-lo-btn {\n            display: inline-flex;\n            align-items: center;\n            justify-content: center;\n            width: 36px;\n            height: 36px;\n            border-radius: 8px;\n            background: #ffffff;\n            color: #1b4332;\n            text-decoration: none;\n            border: 1px solid #cbd5e1;\n            font-size: 14px;\n            transition: all 0.2s;\n        }\n        .flm-lo-btn:hover {\n            background: #1b4332;\n            color: #ffffff;\n            border-color: #1b4332;\n        }\n        \/* Progress Section *\/\n        .flm-progress-section {\n            background: #ffffff;\n            border-radius: 14px;\n            padding: 20px 24px;\n            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);\n            border: 1px solid #e2e8f0;\n            margin-bottom: 24px;\n        }\n        .flm-progress-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-bottom: 10px;\n        }\n        .flm-progress-title {\n            font-size: 14px;\n            font-weight: 700;\n            text-transform: uppercase;\n            letter-spacing: 0.05em;\n            color: #475569;\n        }\n        .flm-progress-percent {\n            font-size: 16px;\n            font-weight: 800;\n            color: #15803d;\n        }\n        .flm-progress-track {\n            height: 10px;\n            background: #e2e8f0;\n            border-radius: 8px;\n            overflow: hidden;\n        }\n        .flm-progress-fill {\n            height: 100%;\n            background: linear-gradient(90deg, #15803d, #22c55e);\n            width: 0%;\n            transition: width 0.6s ease;\n        }\n        \/* Document Cards *\/\n        .flm-doc-list {\n            display: flex;\n            flex-direction: column;\n            gap: 16px;\n        }\n        .flm-doc-card {\n            background: #ffffff;\n            border-radius: 14px;\n            padding: 20px 24px;\n            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);\n            border: 1px solid #e2e8f0;\n            transition: all 0.2s ease;\n        }\n        .flm-doc-card:hover {\n            border-color: #cbd5e1;\n            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);\n        }\n        .flm-doc-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: flex-start;\n            gap: 12px;\n            margin-bottom: 8px;\n        }\n        .flm-doc-title-row {\n            display: flex;\n            align-items: center;\n            gap: 8px;\n        }\n        .flm-doc-icon {\n            color: #64748b;\n            flex-shrink: 0;\n        }\n        .flm-doc-name {\n            font-size: 16px;\n            font-weight: 700;\n            color: #0f172a;\n            margin: 0;\n        }\n        .flm-doc-desc {\n            font-size: 13px;\n            color: #64748b;\n            line-height: 1.45;\n            margin: 0 0 16px;\n        }\n        \/* Status Badges *\/\n        .flm-status-pill {\n            display: inline-flex;\n            align-items: center;\n            gap: 6px;\n            font-size: 12px;\n            font-weight: 600;\n            padding: 4px 10px;\n            border-radius: 12px;\n            white-space: nowrap;\n        }\n        .flm-status-pending {\n            background: #f1f5f9;\n            color: #475569;\n            border: 1px solid #cbd5e1;\n        }\n        .flm-status-uploaded {\n            background: #eff6ff;\n            color: #1d4ed8;\n            border: 1px solid #bfdbfe;\n        }\n        .flm-status-approved {\n            background: #f0fdf4;\n            color: #15803d;\n            border: 1px solid #bbf7d0;\n        }\n        .flm-status-rejected {\n            background: #fef2f2;\n            color: #b91c1c;\n            border: 1px solid #fecaca;\n        }\n        \/* Upload Area *\/\n        .flm-upload-box {\n            border: 2px dashed #cbd5e1;\n            border-radius: 10px;\n            padding: 16px;\n            text-align: center;\n            background: #fafafa;\n            cursor: pointer;\n            transition: all 0.2s ease;\n        }\n        .flm-upload-box:hover, .flm-upload-box.dragover {\n            border-color: #15803d;\n            background: #f0fdf4;\n        }\n        .flm-upload-box input[type=\"file\"] {\n            display: none;\n        }\n        .flm-upload-cta {\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            gap: 12px;\n            flex-wrap: wrap;\n        }\n        .flm-upload-btn-main {\n            display: inline-flex;\n            align-items: center;\n            gap: 8px;\n            background: #15803d;\n            color: #ffffff;\n            font-size: 13px;\n            font-weight: 600;\n            padding: 8px 16px;\n            border-radius: 8px;\n            border: none;\n            cursor: pointer;\n            transition: background 0.2s;\n        }\n        .flm-upload-btn-main:hover {\n            background: #166534;\n        }\n        .flm-upload-btn-camera {\n            display: inline-flex;\n            align-items: center;\n            gap: 6px;\n            background: #ffffff;\n            color: #1e293b;\n            font-size: 13px;\n            font-weight: 600;\n            padding: 8px 14px;\n            border-radius: 8px;\n            border: 1px solid #cbd5e1;\n            cursor: pointer;\n            transition: all 0.2s;\n        }\n        .flm-upload-btn-camera:hover {\n            border-color: #15803d;\n            color: #15803d;\n        }\n        .flm-upload-hint {\n            font-size: 11px;\n            color: #94a3b8;\n            margin-top: 6px;\n        }\n        \/* Feedback Box *\/\n        .flm-feedback-box {\n            background: #fef2f2;\n            border-left: 4px solid #ef4444;\n            padding: 12px 16px;\n            border-radius: 6px;\n            margin-bottom: 12px;\n            font-size: 13px;\n            color: #991b1b;\n        }\n        .flm-feedback-title {\n            font-weight: 700;\n            margin-bottom: 4px;\n        }\n        \/* File Meta *\/\n        .flm-file-meta {\n            display: flex;\n            align-items: center;\n            gap: 8px;\n            background: #f8fafc;\n            border: 1px solid #e2e8f0;\n            padding: 8px 12px;\n            border-radius: 6px;\n            font-size: 12px;\n            color: #334155;\n            margin-top: 10px;\n        }\n        \/* Loader & Error *\/\n        .flm-loading-card, .flm-error-card {\n            background: #ffffff;\n            border-radius: 16px;\n            padding: 48px 24px;\n            text-align: center;\n            box-shadow: 0 4px 20px rgba(0,0,0,0.05);\n            border: 1px solid #e2e8f0;\n        }\n        .flm-spinner {\n            width: 44px;\n            height: 44px;\n            border: 4px solid #e2e8f0;\n            border-top-color: #15803d;\n            border-radius: 50%;\n            animation: flmSpin 0.9s linear infinite;\n            margin: 0 auto 16px;\n        }\n        @keyframes flmSpin {\n            to { transform: rotate(360deg); }\n        }\n        \/* Toast *\/\n        .flm-toast {\n            position: fixed;\n            bottom: 24px;\n            right: 24px;\n            background: #0f172a;\n            color: #ffffff;\n            padding: 12px 20px;\n            border-radius: 10px;\n            font-size: 14px;\n            font-weight: 500;\n            box-shadow: 0 10px 25px rgba(0,0,0,0.2);\n            display: none;\n            align-items: center;\n            gap: 10px;\n            z-index: 9999;\n            animation: flmSlideUp 0.3s ease;\n        }\n        @keyframes flmSlideUp {\n            from { transform: translateY(20px); opacity: 0; }\n            to { transform: translateY(0); opacity: 1; }\n        }\n\n        \/* --- SELF-SERVICE LOGIN \/ SIGN-IN CARD --- *\/\n        .flm-auth-card {\n            background: #ffffff;\n            border-radius: 16px;\n            padding: 36px 28px;\n            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);\n            border: 1px solid #e2e8f0;\n            max-width: 580px;\n            margin: 0 auto;\n        }\n        .flm-tabs {\n            display: flex;\n            background: #f1f5f9;\n            border-radius: 10px;\n            padding: 4px;\n            margin-bottom: 24px;\n        }\n        .flm-tab-btn {\n            flex: 1;\n            padding: 10px 14px;\n            font-size: 13px;\n            font-weight: 600;\n            border: none;\n            background: transparent;\n            color: #64748b;\n            border-radius: 8px;\n            cursor: pointer;\n            transition: all 0.2s;\n            text-align: center;\n        }\n        .flm-tab-btn.active {\n            background: #ffffff;\n            color: #0f172a;\n            box-shadow: 0 2px 6px rgba(0,0,0,0.06);\n        }\n        .flm-form-group {\n            margin-bottom: 16px;\n            text-align: left;\n        }\n        .flm-form-label {\n            display: block;\n            font-size: 13px;\n            font-weight: 600;\n            color: #334155;\n            margin-bottom: 6px;\n        }\n        .flm-form-input, .flm-form-select {\n            width: 100%;\n            padding: 12px 14px;\n            border: 1px solid #cbd5e1;\n            border-radius: 8px;\n            font-size: 14px;\n            color: #0f172a;\n            box-sizing: border-box;\n            outline: none;\n            transition: border-color 0.2s;\n        }\n        .flm-form-input:focus, .flm-form-select:focus {\n            border-color: #15803d;\n            box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);\n        }\n        .flm-btn-submit {\n            width: 100%;\n            padding: 14px;\n            background: #15803d;\n            color: #ffffff;\n            font-size: 15px;\n            font-weight: 700;\n            border: none;\n            border-radius: 8px;\n            cursor: pointer;\n            transition: background 0.2s;\n            margin-top: 8px;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            gap: 8px;\n        }\n        .flm-btn-submit:hover {\n            background: #166534;\n        }\n        .flm-btn-submit:disabled {\n            background: #94a3b8;\n            cursor: not-allowed;\n        }\n        .flm-auth-success {\n            background: #f0fdf4;\n            border: 1px solid #bbf7d0;\n            border-radius: 12px;\n            padding: 24px;\n            text-align: center;\n            margin-top: 16px;\n        }\n        .flm-btn-direct {\n            display: inline-block;\n            background: #15803d;\n            color: #ffffff;\n            text-decoration: none;\n            padding: 12px 24px;\n            border-radius: 8px;\n            font-weight: 700;\n            font-size: 15px;\n            margin-top: 14px;\n            transition: background 0.2s;\n        }\n        \n        \/* OTP 6-Digit Screen Styles *\/\n        \n        \/* Language Switcher Bar *\/\n        .flm-lang-bar {\n            display: none !important;\n        }\n        .flm-lang-toggle {\n            display: inline-flex;\n            background: #f1f5f9;\n            border: 1px solid #cbd5e1;\n            border-radius: 9999px;\n            padding: 3px;\n            gap: 2px;\n            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);\n        }\n        .flm-lang-btn {\n            display: inline-flex;\n            align-items: center;\n            gap: 5px;\n            border: none;\n            background: transparent;\n            padding: 6px 14px;\n            font-size: 12.5px;\n            font-weight: 600;\n            color: #64748b;\n            border-radius: 9999px;\n            cursor: pointer;\n            transition: all 0.15s ease;\n            line-height: 1;\n        }\n        .flm-lang-btn:hover {\n            color: #0f172a;\n        }\n        .flm-lang-btn.active {\n            background: #ffffff;\n            color: #15803d;\n            font-weight: 700;\n            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);\n        }\n        .flm-lang-flag {\n            font-size: 13px;\n        }\n\n        .flm-otp-box {\n            text-align: center;\n            margin: 20px 0;\n        }\n        .flm-otp-input {\n            width: 100%;\n            max-width: 260px;\n            margin: 0 auto 12px;\n            display: block;\n            text-align: center;\n            font-size: 30px;\n            font-weight: 700;\n            letter-spacing: 8px;\n            font-family: 'SF Mono', Consolas, Monaco, monospace;\n            padding: 12px 16px;\n            border: 2px solid #cbd5e1;\n            border-radius: 10px;\n            color: #0f172a;\n            background: #f8fafc;\n            transition: all 0.2s ease;\n            box-sizing: border-box;\n        }\n        .flm-otp-input:focus {\n            border-color: #15803d;\n            background: #ffffff;\n            box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);\n            outline: none;\n        }\n        .flm-otp-helper {\n            font-size: 12.5px;\n            color: #64748b;\n            margin-top: 8px;\n            text-align: center;\n            line-height: 1.4;\n        }\n        .flm-otp-actions {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-top: 20px;\n            padding-top: 16px;\n            border-top: 1px solid #f1f5f9;\n        }\n        .flm-otp-btn-link {\n            background: none;\n            border: none;\n            font-size: 13px;\n            cursor: pointer;\n            padding: 6px 10px;\n            border-radius: 6px;\n            transition: all 0.15s;\n            text-decoration: underline;\n        }\n        .flm-otp-btn-back {\n            color: #64748b;\n        }\n        .flm-otp-btn-back:hover {\n            color: #0f172a;\n            background: #f1f5f9;\n        }\n        .flm-otp-btn-resend {\n            color: #15803d;\n            font-weight: 600;\n        }\n        .flm-otp-btn-resend:hover {\n            color: #166534;\n            background: #f0fdf4;\n        }\n        .flm-otp-btn-resend:disabled {\n            color: #94a3b8;\n            cursor: not-allowed;\n            text-decoration: none;\n            background: transparent;\n        }\n\n        .flm-btn-direct:hover {\n            background: #166534;\n        }\n\n        @media (max-width: 640px) {\n            .flm-portal-hero { padding: 20px 16px; }\n            .flm-doc-card { padding: 16px; }\n            .flm-portal-title { font-size: 22px; }\n            .flm-auth-card { padding: 24px 16px; }\n        }\n\n        \n        \/* Suppress generic theme Contact Form 7 \/ footer form inside portal *\/\n        .wp-block-contact-form-7,\n        .wpcf7,\n        form.wpcf7-form,\n        section:has(.wpcf7),\n        div:has(> .wpcf7),\n        div.wp-block-columns:has(.wpcf7),\n        p:has(a[href*=\"#contact\"]),\n        p:has(> a[href*=\"contact\"]),\n        footer #apply,\n        body.page-id-874 #apply,\n        body.page-id-874 footer .is-style-section-primary--3 {\n            display: none !important;\n            visibility: hidden !important;\n            height: 0 !important;\n            margin: 0 !important;\n            padding: 0 !important;\n            overflow: hidden !important;\n        }\n\n        \/* Additional Document Card & Actions *\/\n        .flm-add-doc-card {\n            background: #ffffff;\n            border-radius: 14px;\n            padding: 22px 24px;\n            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);\n            border: 2px dashed #94a3b8;\n            margin-top: 20px;\n            transition: all 0.2s ease;\n        }\n        .flm-add-doc-card:hover {\n            border-color: #00875a;\n            box-shadow: 0 4px 16px rgba(0, 135, 90, 0.08);\n        }\n        .flm-add-doc-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            gap: 16px;\n            flex-wrap: wrap;\n        }\n        .flm-add-doc-title {\n            font-size: 16px;\n            font-weight: 700;\n            color: #0f172a;\n            margin: 0 0 4px;\n        }\n        .flm-add-doc-sub {\n            font-size: 13px;\n            color: #64748b;\n            margin: 0;\n            line-height: 1.4;\n        }\n        .flm-btn-toggle-add {\n            display: inline-flex;\n            align-items: center;\n            gap: 8px;\n            background: #00875a;\n            color: #ffffff;\n            font-size: 13.5px;\n            font-weight: 600;\n            padding: 10px 18px;\n            border-radius: 8px;\n            border: none;\n            cursor: pointer;\n            transition: background 0.15s ease;\n            white-space: nowrap;\n        }\n        .flm-btn-toggle-add:hover {\n            background: #006b47;\n        }\n\n        .flm-btn-extra-slot {\n            display: inline-flex;\n            align-items: center;\n            gap: 6px;\n            background: #f1f5f9;\n            color: #1e293b;\n            border: 1px solid #cbd5e1;\n            border-radius: 6px;\n            padding: 7px 12px;\n            font-size: 12.5px;\n            font-weight: 600;\n            cursor: pointer;\n            transition: all 0.15s ease;\n            margin-top: 10px;\n        }\n        .flm-btn-extra-slot:hover {\n            background: #e2e8f0;\n            border-color: #94a3b8;\n            color: #0f172a;\n        }\n\n        \/* Bottom Loan Officer Contact Box *\/\n        .flm-lo-contact-box {\n            background: #ffffff;\n            border-radius: 14px;\n            padding: 24px;\n            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);\n            border: 1px solid #e2e8f0;\n            margin-top: 28px;\n        }\n        .flm-lo-contact-header {\n            display: flex;\n            align-items: center;\n            gap: 16px;\n            margin-bottom: 16px;\n        }\n        .flm-lo-contact-title {\n            font-size: 17px;\n            font-weight: 700;\n            color: #0f172a;\n            margin: 0 0 4px;\n        }\n        .flm-lo-contact-sub {\n            font-size: 13px;\n            color: #64748b;\n            margin: 0;\n            line-height: 1.4;\n        }\n        .flm-lo-direct-actions {\n            display: flex;\n            gap: 10px;\n            flex-wrap: wrap;\n            margin-bottom: 20px;\n        }\n        .flm-btn-action-lo {\n            display: inline-flex;\n            align-items: center;\n            gap: 8px;\n            padding: 9px 16px;\n            border-radius: 8px;\n            font-size: 13px;\n            font-weight: 600;\n            text-decoration: none;\n            transition: all 0.15s ease;\n        }\n        .flm-btn-wa {\n            background: #25d366;\n            color: #ffffff !important;\n        }\n        .flm-btn-wa:hover {\n            background: #20ba5a;\n        }\n        .flm-btn-call {\n            background: #00875a;\n            color: #ffffff !important;\n        }\n        .flm-btn-call:hover {\n            background: #006b47;\n        }\n        .flm-btn-email {\n            background: #0b111e;\n            color: #ffffff !important;\n        }\n        .flm-btn-email:hover {\n            background: #1e293b;\n        }\n        .flm-lo-msg-area {\n            width: 100%;\n            box-sizing: border-box;\n            border: 1px solid #cbd5e1;\n            border-radius: 8px;\n            padding: 10px 14px;\n            font-size: 13.5px;\n            font-family: inherit;\n            color: #0f172a;\n            background: #f8fafc;\n            min-height: 52px;\n            resize: vertical;\n            transition: border-color 0.15s ease;\n        }\n        .flm-lo-msg-area:focus {\n            outline: none;\n            border-color: #00875a;\n            background: #ffffff;\n            box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.12);\n        }\n\n        \/* Suppress site-wide machine GTranslate floating globe widget inside Document Portal *\/\n        .gtranslate_wrapper,\n        #gt-wrapper-11800929,\n        .gt_switcher,\n        .gt_float_switcher,\n        div[class*=\"gtranslate\"],\n        div[id*=\"gt-wrapper\"],\n        .trp-language-switcher-container,\n        div[class*=\"trp-language-switcher\"],\n        div[id*=\"trp-floater\"],\n        #trp-floater-ls {\n            display: none !important;\n            visibility: hidden !important;\n            opacity: 0 !important;\n            pointer-events: none !important;\n        }\n    <\/style>\n\n    <div class=\"flm-portal-container\">\n        <!-- Language Switcher handled natively by Header -->\n\n        <!-- Loading State -->\n        <div id=\"flm-portal-loading\" class=\"flm-loading-card\">\n            <div class=\"flm-spinner\"><\/div>\n            <h2 id=\"flm-loading-title\" style=\"font-size: 18px; margin: 0 0 6px; color: #0f172a;\">Loading Secure Portal&#8230;<\/h2>\n            <p id=\"flm-loading-subtitle\" style=\"font-size: 13px; color: #64748b; margin: 0;\">Verifying credentials and data encryption.<\/p>\n        <\/div>\n\n        <!-- Self-Service Sign-In \/ Registration Screen (Shown when no token) -->\n        <div id=\"flm-portal-login\" class=\"flm-auth-card\" style=\"display: none;\">\n            <div style=\"text-align: center;\">\n                <div class=\"flm-security-badge\">\n                    <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"><\/rect><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"><\/path><\/svg>\n                    <span id=\"flm-badge-text-login\">Secure Document Portal \u00b7 256-bit SSL<\/span>\n                <\/div>\n                <h1 id=\"flm-title-login\" class=\"flm-portal-title\" style=\"font-size: 24px;\">Access Your Mortgage File<\/h1>\n                <p class=\"flm-portal-subtitle\" style=\"font-size: 14px; margin-bottom: 24px;\">\n                    <span id=\"flm-subtitle-login\">Upload your documents and check approval status in real-time without remembering passwords.<\/span>\n                <\/p>\n            <\/div>\n\n            <!-- Tabs Switcher -->\n            <div id=\"flm-auth-tabs\" class=\"flm-tabs\">\n                <button type=\"button\" id=\"tab-btn-signin\" class=\"flm-tab-btn active\" onclick=\"switchPortalTab('signin')\">\n                    <span id=\"flm-tab-signin-text\">Existing Client \/ Sign In<\/span>\n                <\/button>\n                <button type=\"button\" id=\"tab-btn-register\" class=\"flm-tab-btn\" onclick=\"switchPortalTab('register')\">\n                    <span id=\"flm-tab-register-text\">New Client \/ Register<\/span>\n                <\/button>\n            <\/div>\n\n            <!-- Tab 1: Sign In (Email Only) -->\n            <form id=\"form-portal-signin\" onsubmit=\"handleRequestOtp(event)\">\n                <div class=\"flm-form-group\">\n                    <label id=\"label-signin-email\" class=\"flm-form-label\" for=\"signin-email\">Registered Email Address *<\/label>\n                    <input type=\"email\" id=\"signin-email\" class=\"flm-form-input\" placeholder=\"name@example.com\" required autocomplete=\"email\">\n                <\/div>\n                <button type=\"submit\" id=\"btn-submit-signin\" class=\"flm-btn-submit\">\n                    <span id=\"btn-submit-signin-text\">Request Access Code (6 Digits)<\/span> \u2709\ufe0f\n                <\/button>\n                <p style=\"font-size: 12px; color: #64748b; margin-top: 12px; line-height: 1.4; text-align: center;\">\n                    <span id=\"footnote-signin\">\ud83d\udd12 For your security, we will send a 6-digit verification code to your email.<\/span>\n                <\/p>\n            <\/form>\n\n            <!-- Step 2: OTP Verification Screen (Used for Sign In & Register) -->\n            <div id=\"flm-step-otp\" style=\"display: none;\">\n                <div style=\"text-align: center; margin-bottom: 20px;\">\n                    <div style=\"width: 52px; height: 52px; border-radius: 50%; background: #ecfdf5; color: #15803d; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; border: 1px solid #bbf7d0; box-shadow: 0 2px 6px rgba(21,128,61,0.08);\">\n                        \ud83d\udd11\n                    <\/div>\n                    <h3 id=\"flm-otp-title\" style=\"font-size: 19px; font-weight: 700; color: #0f172a; margin: 0 0 6px;\">Verification Code<\/h3>\n                    <p style=\"font-size: 13.5px; color: #64748b; line-height: 1.5; margin: 0;\">\n                        <span id=\"flm-otp-subtitle\">We have sent a secure 6-digit code to:<\/span><br>\n                        <strong id=\"flm-otp-target-email\" style=\"color: #0f172a; font-size: 14.5px;\"><\/strong>\n                    <\/p>\n                <\/div>\n\n                <form id=\"form-portal-otp\" onsubmit=\"handleVerifyOtp(event)\">\n                    <div class=\"flm-form-group flm-otp-box\">\n                        <label id=\"label-otp-code\" class=\"flm-form-label\" style=\"text-align: center; margin-bottom: 8px;\" for=\"otp-code\">Enter your 6-digit code<\/label>\n                        <input type=\"text\" id=\"otp-code\" class=\"flm-otp-input\" placeholder=\"000000\" maxlength=\"6\" inputmode=\"numeric\" pattern=\"[0-9]*\" autocomplete=\"one-time-code\" required autofocus>\n                        <p class=\"flm-otp-helper\">\n                            <span id=\"flm-otp-helper\">Code expires in 15 minutes. Please check your Spam \/ Junk folder if needed.<\/span>\n                        <\/p>\n                    <\/div>\n\n                    <button type=\"submit\" id=\"btn-submit-otp\" class=\"flm-btn-submit\">\n                        <span id=\"btn-submit-otp-text\">Verify &#038; Enter Portal<\/span> \u2794\n                    <\/button>\n\n                    <div class=\"flm-otp-actions\">\n                        <button type=\"button\" class=\"flm-otp-btn-link flm-otp-btn-back\" onclick=\"backToEmailStep()\">\n                            <span id=\"btn-otp-back-text\">\u2190 Change email<\/span>\n                        <\/button>\n                        <button type=\"button\" id=\"btn-resend-otp\" class=\"flm-otp-btn-link flm-otp-btn-resend\" onclick=\"handleResendOtp()\">\n                            <span id=\"btn-resend-otp-text\">Resend code<\/span>\n                        <\/button>\n                    <\/div>\n                <\/form>\n            <\/div>\n\n            <!-- Tab 2: Register -->\n            <form id=\"form-portal-register\" style=\"display: none;\" onsubmit=\"handlePortalRegister(event)\">\n                <div class=\"flm-form-group\">\n                    <label id=\"label-reg-name\" class=\"flm-form-label\" for=\"reg-name\">Full Name *<\/label>\n                    <input type=\"text\" id=\"reg-name\" class=\"flm-form-input\" placeholder=\"e.g. Carlos G\u00f3mez\" required autocomplete=\"name\">\n                <\/div>\n                <div class=\"flm-form-group\">\n                    <label id=\"label-reg-email\" class=\"flm-form-label\" for=\"reg-email\">Email Address *<\/label>\n                    <input type=\"email\" id=\"reg-email\" class=\"flm-form-input\" placeholder=\"ejemplo@correo.com\" required autocomplete=\"email\">\n                <\/div>\n                <div class=\"flm-form-group\">\n                    <label id=\"label-reg-phone\" class=\"flm-form-label\" for=\"reg-phone\">Cell Phone *<\/label>\n                    <input type=\"tel\" id=\"reg-phone\" class=\"flm-form-input\" placeholder=\"(305) 555-0199\" required autocomplete=\"tel\">\n                <\/div>\n                <div class=\"flm-form-group\">\n                    <label id=\"label-reg-lo\" class=\"flm-form-label\" for=\"reg-lo\">Who is your Loan Officer?<\/label>\n                    <select id=\"reg-lo\" class=\"flm-form-select\">\n                        <option value=\"68f2db3cbca7a5158\" selected>Juan S\u00e1enz \u2014 Senior Loan Officer \/ CEO (NMLS #1464659)<\/option>\n                    <\/select>\n                <\/div>\n                <button type=\"submit\" id=\"btn-submit-register\" class=\"flm-btn-submit\">\n                    <span id=\"btn-submit-register-text\">Create File &#038; Verify with Code<\/span> \u2794\n                <\/button>\n                <p style=\"font-size: 12px; color: #64748b; margin-top: 12px; line-height: 1.4; text-align: center;\">\n                    <span id=\"footnote-register\">\ud83d\udd12 Complies with FTC &#038; GLBA financial data privacy standards.<\/span>\n                <\/p>\n            <\/form>\n        <\/div>\n\n        <!-- Error Card (When token is invalid\/expired) -->\n        <div id=\"flm-portal-error\" class=\"flm-error-card\" style=\"display: none;\">\n            <div style=\"font-size: 36px; margin-bottom: 12px;\">\ud83d\udd12<\/div>\n            <h2 id=\"flm-error-title\" style=\"font-size: 20px; color: #b91c1c; margin: 0 0 8px;\">Link Expired or Invalid<\/h2>\n            <p id=\"flm-error-msg\" style=\"font-size: 14px; color: #64748b; max-width: 480px; margin: 0 auto 20px; line-height: 1.5;\"><\/p>\n            <button onclick=\"showLoginForm()\" class=\"flm-btn-submit\" style=\"max-width: 320px; margin: 0 auto;\">\n                <span id=\"flm-btn-error-text\">Request New Access Link<\/span>\n            <\/button>\n        <\/div>\n\n        <!-- Portal Main Content (Shown on valid token) -->\n        <div id=\"flm-portal-content\" style=\"display: none;\">\n            <!-- Hero Card -->\n            <div class=\"flm-portal-hero\">\n                <div class=\"flm-security-badge\">\n                    <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"><\/rect><path d=\"M7 11V7a5 5 0 0 1 10 0v4\"><\/path><\/svg>\n                    <span id=\"flm-badge-text-auth\">Secure Encrypted Portal \u00b7 256-bit SSL \u00b7 GLBA &#038; FTC Compliant<\/span>\n                <\/div>\n                <h1 id=\"flm-client-greeting\" class=\"flm-portal-title\">Expediente de Documentos<\/h1>\n                <p class=\"flm-portal-subtitle\">\n                    <span id=\"flm-portal-subtitle-auth\">Please upload the requested documents below to begin the analysis and pre-qualification of your mortgage loan. You can take photos directly from your phone or attach PDF files.<\/span>\n                <\/p>\n\n                <!-- Loan Officer Card -->\n                <div class=\"flm-lo-card\">\n                    <img decoding=\"async\" id=\"flm-lo-img\" class=\"flm-lo-avatar\" src=\"https:\/\/fastloans.acrm.app\/api\/v1\/Portal\/avatar\" alt=\"Loan Officer\">\n                    <div class=\"flm-lo-info\">\n                        <div id=\"flm-lo-name\" class=\"flm-lo-name\">Loan Officer<\/div>\n                        <div id=\"flm-lo-desc\" class=\"flm-lo-title\">Loan Officer \u00b7 NMLS #2424324<\/div>\n                    <\/div>\n                    <div class=\"flm-lo-actions\">\n                        <a id=\"flm-lo-phone\" href=\"#\" class=\"flm-lo-btn\" title=\"Call Loan Officer\">\ud83d\udcde<\/a>\n                        <a id=\"flm-lo-wa\" href=\"#\" target=\"_blank\" rel=\"noopener\" class=\"flm-lo-btn\" title=\"WhatsApp\">\ud83d\udcac<\/a>\n                        <a id=\"flm-lo-email\" href=\"#\" class=\"flm-lo-btn\" title=\"Send Email\">\u2709\ufe0f<\/a>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <!-- Progress Section -->\n            <div class=\"flm-progress-section\">\n                <div class=\"flm-progress-header\">\n                    <span id=\"flm-progress-title\" class=\"flm-progress-title\">Verification Status<\/span>\n                    <span id=\"flm-progress-text\" class=\"flm-progress-percent\">0%<\/span>\n                <\/div>\n                <div class=\"flm-progress-track\">\n                    <div id=\"flm-progress-bar\" class=\"flm-progress-fill\"><\/div>\n                <\/div>\n                <div id=\"flm-progress-subtext\" style=\"font-size: 13px; color: #64748b; margin-top: 8px;\">\n                    0 de 4 documentos aprobados\n                <\/div>\n            <\/div>\n\n            <!-- Document Checklist -->\n            <div id=\"flm-doc-list\" class=\"flm-doc-list\">\n                <!-- Rendered dynamically -->\n            <\/div>\n\n            <!-- Additional Document Card \/ Action -->\n            <div class=\"flm-add-doc-card\">\n                <div class=\"flm-add-doc-header\">\n                    <div>\n                        <h3 class=\"flm-add-doc-title\">\u2795 <span id=\"flm-add-doc-heading\">Subir Documento Adicional<\/span><\/h3>\n                        <p class=\"flm-add-doc-sub\" id=\"flm-add-doc-sub\">\u00bfTienes otro estado de cuenta, tal\u00f3n de pago o documento solicitado por tu Loan Officer? Puedes agregarlo aqu\u00ed.<\/p>\n                    <\/div>\n                    <button type=\"button\" class=\"flm-btn-toggle-add\" id=\"btn-toggle-add\" onclick=\"toggleAddDocForm()\">\n                        <span id=\"btn-toggle-add-text\">+ Agregar Documento<\/span>\n                    <\/button>\n                <\/div>\n                <div id=\"flm-add-doc-form-wrapper\" style=\"display: none; margin-top: 18px; padding-top: 18px; border-top: 1px dashed #cbd5e1;\">\n                    <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;\">\n                        <div>\n                            <label class=\"flm-form-label\" id=\"label-add-preset\">Tipo de Documento *<\/label>\n                            <select id=\"add-doc-preset\" class=\"flm-form-select\" onchange=\"handleDocPresetChange()\">\n                                <option value=\"bank\">Estados de Cuenta Bancarios (Mes 2 o Banco Adicional)<\/option>\n                                <option value=\"paystub\">Tal\u00f3n de Pago Adicional (Paystub)<\/option>\n                                <option value=\"w2\">W-2 \/ 1099 Adicional<\/option>\n                                <option value=\"explanation\">Carta de Explicaci\u00f3n<\/option>\n                                <option value=\"lease\">Contrato de Arrendamiento (Lease)<\/option>\n                                <option value=\"gift\">Carta de Regalo \/ Soporte de Fondos (Gift Letter)<\/option>\n                                <option value=\"other\">Otro Documento (Especificar)<\/option>\n                            <\/select>\n                        <\/div>\n                        <div id=\"add-doc-custom-wrap\" style=\"display: none;\">\n                            <label class=\"flm-form-label\" id=\"label-add-custom\">Nombre del Documento *<\/label>\n                            <input type=\"text\" id=\"add-doc-custom-name\" class=\"flm-form-input\" placeholder=\"Ej. Estado de Cuenta de Ahorros\">\n                        <\/div>\n                    <\/div>\n                    <div class=\"flm-upload-box\" id=\"upload-box-additional\" onclick=\"triggerFileInput('additional')\">\n                        <input type=\"file\" id=\"file-input-additional\" accept=\"image\/jpeg,image\/png,image\/webp,application\/pdf\" onchange=\"handleAdditionalFileSelected()\">\n                        <div class=\"flm-upload-cta\">\n                            <button type=\"button\" class=\"flm-upload-btn-main\">\n                                <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"><\/path><polyline points=\"17 8 12 3 7 8\"><\/polyline><line x1=\"12\" y1=\"3\" x2=\"12\" y2=\"15\"><\/line><\/svg>\n                                <span id=\"btn-select-additional-text\">Seleccionar Archivo (PDF \/ Foto)<\/span>\n                            <\/button>\n                        <\/div>\n                        <div class=\"flm-upload-hint\" id=\"hint-add-drop\">Arrastra y suelta tu archivo aqu\u00ed \u00b7 PDF, JPG o PNG hasta 25MB<\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n            <!-- Direct Loan Officer Contact & Question Box -->\n            <div class=\"flm-lo-contact-box\">\n                <div class=\"flm-lo-contact-header\">\n                    <img decoding=\"async\" id=\"flm-lo-contact-avatar\" class=\"flm-lo-avatar\" src=\"https:\/\/fastloans.acrm.app\/api\/v1\/Portal\/avatar\" alt=\"Loan Officer\">\n                    <div>\n                        <h3 class=\"flm-lo-contact-title\" id=\"flm-lo-contact-title\">\u00bfTienes alguna duda sobre tus documentos?<\/h3>\n                        <p class=\"flm-lo-contact-sub\" id=\"flm-lo-contact-sub\">Tu Oficial de Pr\u00e9stamos asignado est\u00e1 disponible para ayudarte a completar tu expediente.<\/p>\n                    <\/div>\n                <\/div>\n                <div class=\"flm-lo-direct-actions\">\n                    <a id=\"flm-lo-bottom-wa\" href=\"#\" target=\"_blank\" rel=\"noopener\" class=\"flm-btn-action-lo flm-btn-wa\">\n                        \ud83d\udcac <span id=\"btn-wa-text\">WhatsApp Directo<\/span>\n                    <\/a>\n                    <a id=\"flm-lo-bottom-phone\" href=\"#\" class=\"flm-btn-action-lo flm-btn-call\">\n                        \ud83d\udcde <span id=\"btn-call-text\">Llamar<\/span>\n                    <\/a>\n                    <a id=\"flm-lo-bottom-email\" href=\"#\" class=\"flm-btn-action-lo flm-btn-email\">\n                        \u2709\ufe0f <span id=\"btn-email-text\">Enviar Correo<\/span>\n                    <\/a>\n                <\/div>\n                <div class=\"flm-lo-message-form\">\n                    <label class=\"flm-form-label\" id=\"label-lo-msg\" for=\"lo-client-message\">O d\u00e9jale un mensaje directo a tu Loan Officer aqu\u00ed:<\/label>\n                    <div style=\"display: flex; gap: 10px; margin-top: 6px;\">\n                        <textarea id=\"lo-client-message\" class=\"flm-lo-msg-area\" placeholder=\"Escribe tu consulta o aclaraci\u00f3n...\"><\/textarea>\n                        <button type=\"button\" id=\"btn-send-lo-msg\" class=\"flm-btn-submit\" style=\"width: auto; padding: 0 20px; white-space: nowrap; margin-top: 0;\" onclick=\"handleSendLoMessage()\">\n                            <span id=\"btn-send-lo-msg-text\">Enviar<\/span> \u2794\n                        <\/button>\n                    <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <!-- Toast Notification -->\n    <div id=\"flm-toast\" class=\"flm-toast\">\n        <span id=\"flm-toast-icon\">\u2705<\/span>\n        <span id=\"flm-toast-msg\">Mensaje<\/span>\n    <\/div>\n<\/div>\n\n<script>\nconst API_BASE = 'https:\/\/fastloans.acrm.app\/api\/v1\/Portal';\n\nfunction showToast(msg, icon = '\u2705') {\n    const elToast = document.getElementById('flm-toast');\n    const elToastMsg = document.getElementById('flm-toast-msg');\n    const elToastIcon = document.getElementById('flm-toast-icon');\n    if (elToast && elToastMsg) {\n        elToastMsg.textContent = msg;\n        if (elToastIcon) elToastIcon.textContent = icon;\n        elToast.style.display = 'flex';\n        setTimeout(() => { elToast.style.display = 'none'; }, 4000);\n    }\n}\n\nlet currentAuthEmail = '';\nlet resendCooldownTimer = null;\n\nfunction switchPortalTab(tab) {\n    const btnSignin = document.getElementById('tab-btn-signin');\n    const btnRegister = document.getElementById('tab-btn-register');\n    const formSignin = document.getElementById('form-portal-signin');\n    const formRegister = document.getElementById('form-portal-register');\n    const stepOtp = document.getElementById('flm-step-otp');\n\n    if (stepOtp) stepOtp.style.display = 'none';\n\n    if (tab === 'signin') {\n        btnSignin.classList.add('active');\n        btnRegister.classList.remove('active');\n        formSignin.style.display = 'block';\n        formRegister.style.display = 'none';\n    } else {\n        btnRegister.classList.add('active');\n        btnSignin.classList.remove('active');\n        formSignin.style.display = 'none';\n        formRegister.style.display = 'block';\n        loadLoanOfficers();\n    }\n}\n\nfunction showLoginForm() {\n    document.getElementById('flm-portal-loading').style.display = 'none';\n    document.getElementById('flm-portal-error').style.display = 'none';\n    document.getElementById('flm-portal-content').style.display = 'none';\n    document.getElementById('flm-portal-login').style.display = 'block';\n    \n    \/\/ Ensure email input is visible and reset\n    document.getElementById('flm-auth-tabs').style.display = 'flex';\n    document.getElementById('form-portal-signin').style.display = 'block';\n    document.getElementById('form-portal-register').style.display = 'none';\n    const stepOtp = document.getElementById('flm-step-otp');\n    if (stepOtp) stepOtp.style.display = 'none';\n    \n    loadLoanOfficers();\n}\n\nasync function loadLoanOfficers() {\n    const select = document.getElementById('reg-lo');\n    if (!select || select.dataset.loaded) return;\n\n    try {\n        const res = await fetch(`${API_BASE}\/loanOfficers`);\n        const data = await res.json();\n        if (data.success && data.loanOfficers && data.loanOfficers.length) {\n            select.innerHTML = '';\n            data.loanOfficers.forEach(lo => {\n                const opt = document.createElement('option');\n                opt.value = lo.id;\n                opt.textContent = `${lo.name} \u2014 ${lo.title} (${lo.email || 'FLM'})`;\n                if (lo.isDefault) opt.selected = true;\n                select.appendChild(opt);\n            });\n            select.dataset.loaded = 'true';\n        }\n    } catch (e) {\n        console.error('Could not load loan officers roster', e);\n    }\n}\n\nfunction showOtpStep(maskedEmail, email) {\n    currentAuthEmail = email;\n    document.getElementById('flm-auth-tabs').style.display = 'none';\n    document.getElementById('form-portal-signin').style.display = 'none';\n    document.getElementById('form-portal-register').style.display = 'none';\n    \n    document.getElementById('flm-otp-target-email').textContent = maskedEmail || email;\n    const otpInput = document.getElementById('otp-code');\n    otpInput.value = '';\n    \n    document.getElementById('flm-step-otp').style.display = 'block';\n    setTimeout(() => otpInput.focus(), 150);\n\n    startResendCooldown(45);\n}\n\nfunction backToEmailStep() {\n    document.getElementById('flm-step-otp').style.display = 'none';\n    document.getElementById('flm-auth-tabs').style.display = 'flex';\n    document.getElementById('form-portal-signin').style.display = 'block';\n    document.getElementById('signin-email').focus();\n    if (resendCooldownTimer) clearInterval(resendCooldownTimer);\n}\n\nfunction startResendCooldown(seconds) {\n    const btnResend = document.getElementById('btn-resend-otp');\n    if (!btnResend) return;\n    if (resendCooldownTimer) clearInterval(resendCooldownTimer);\n\n    let remaining = seconds;\n    btnResend.disabled = true;\n    btnResend.textContent = `${I18N[currentLang].otpResendIn} (${remaining}s)`;\n\n    resendCooldownTimer = setInterval(() => {\n        remaining--;\n        if (remaining <= 0) {\n            clearInterval(resendCooldownTimer);\n            btnResend.disabled = false;\n            btnResend.textContent = I18N[currentLang].otpResend;\n        } else {\n            btnResend.textContent = `Reenviar c\u00f3digo (${remaining}s)`;\n        }\n    }, 1000);\n}\n\nasync function handleRequestOtp(event) {\n    event.preventDefault();\n    const email = document.getElementById('signin-email').value.trim();\n    if (!email) return;\n\n    const btnSubmit = document.getElementById('btn-submit-signin');\n    const origHtml = btnSubmit.innerHTML;\n    btnSubmit.disabled = true;\n    btnSubmit.innerHTML = `<span>${I18N[currentLang].toastSendingCode}<\/span> \u23f3`;\n\n    try {\n        const res = await fetch(`${API_BASE}\/requestOtp`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\/json' },\n            body: JSON.stringify({ email })\n        });\n        const data = await res.json();\n\n        if (!res.ok || !data.success) {\n            showToast(data.error || 'No se pudo enviar el c\u00f3digo. Verifica tu correo.', '\u26a0\ufe0f');\n            btnSubmit.disabled = false;\n            btnSubmit.innerHTML = origHtml;\n            return;\n        }\n\n        showToast(I18N[currentLang].toastCodeSent, '\ud83d\udce9');\n        btnSubmit.disabled = false;\n        btnSubmit.innerHTML = origHtml;\n        showOtpStep(data.emailMasked, email);\n\n    } catch (err) {\n        console.error('Request OTP error', err);\n        showToast('Error de conexi\u00f3n al solicitar el c\u00f3digo. Int\u00e9ntalo de nuevo.', '\u274c');\n        btnSubmit.disabled = false;\n        btnSubmit.innerHTML = origHtml;\n    }\n}\n\nasync function handleResendOtp() {\n    if (!currentAuthEmail) return;\n    const btnResend = document.getElementById('btn-resend-otp');\n    btnResend.disabled = true;\n    btnResend.textContent = I18N[currentLang].otpResending;\n\n    try {\n        const res = await fetch(`${API_BASE}\/requestOtp`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\/json' },\n            body: JSON.stringify({ email: currentAuthEmail })\n        });\n        const data = await res.json();\n\n        if (data.success) {\n            showToast(I18N[currentLang].toastNewCodeSent, '\ud83d\udce9');\n            startResendCooldown(60);\n        } else {\n            showToast(data.error || 'No se pudo reenviar el c\u00f3digo.', '\u26a0\ufe0f');\n            btnResend.disabled = false;\n            btnResend.textContent = 'Reenviar c\u00f3digo';\n        }\n    } catch (e) {\n        showToast('Error de red al reenviar el c\u00f3digo.', '\u274c');\n        btnResend.disabled = false;\n        btnResend.textContent = 'Reenviar c\u00f3digo';\n    }\n}\n\nasync function handleVerifyOtp(event) {\n    event.preventDefault();\n    const code = document.getElementById('otp-code').value.trim().replace(\/\\D\/g, '');\n    if (!code || code.length !== 6) {\n        showToast(I18N[currentLang].toastEnter6Digits, '\u26a0\ufe0f');\n        document.getElementById('otp-code').focus();\n        return;\n    }\n\n    const btnSubmit = document.getElementById('btn-submit-otp');\n    const origHtml = btnSubmit.innerHTML;\n    btnSubmit.disabled = true;\n    btnSubmit.innerHTML = `<span>${I18N[currentLang].toastVerifying}<\/span> \u23f3`;\n\n    try {\n        const res = await fetch(`${API_BASE}\/verifyOtp`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\/json' },\n            body: JSON.stringify({ email: currentAuthEmail, code })\n        });\n        const data = await res.json();\n\n        if (!res.ok || !data.success) {\n            showToast(data.error || 'C\u00f3digo incorrecto o expirado.', '\u26a0\ufe0f');\n            btnSubmit.disabled = false;\n            btnSubmit.innerHTML = origHtml;\n            return;\n        }\n\n        \/\/ Successfully verified!\n        showToast(`${I18N[currentLang].toastWelcome} ${data.client ? (data.client.firstName || data.client.name) : ''}!`, '\u2705');\n        history.replaceState(null, '', `?token=${encodeURIComponent(data.token)}`);\n        document.getElementById('flm-portal-login').style.display = 'none';\n        loadChecklist(data.token);\n\n    } catch (err) {\n        console.error('Verify OTP error', err);\n        showToast('Error de conexi\u00f3n al verificar el c\u00f3digo.', '\u274c');\n        btnSubmit.disabled = false;\n        btnSubmit.innerHTML = origHtml;\n    }\n}\n\nasync function handlePortalRegister(event) {\n    event.preventDefault();\n    const name = document.getElementById('reg-name').value.trim();\n    const email = document.getElementById('reg-email').value.trim();\n    const phone = document.getElementById('reg-phone').value.trim();\n    const loanOfficerId = document.getElementById('reg-lo').value;\n\n    const btnSubmit = document.getElementById('btn-submit-register');\n    const origHtml = btnSubmit.innerHTML;\n    btnSubmit.disabled = true;\n    btnSubmit.innerHTML = `<span>${I18N[currentLang].toastCreatingFile}<\/span> \u23f3`;\n\n    try {\n        const res = await fetch(`${API_BASE}\/requestAccess`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\/json' },\n            body: JSON.stringify({ name, email, phone, loanOfficerId })\n        });\n        const data = await res.json();\n\n        if (!res.ok || !data.success) {\n            showToast(data.error || 'No se pudo crear el expediente.', '\u26a0\ufe0f');\n            btnSubmit.disabled = false;\n            btnSubmit.innerHTML = origHtml;\n            return;\n        }\n\n        \/\/ Contact created! Now send OTP for instant verification\n        btnSubmit.innerHTML = `<span>${I18N[currentLang].toastSendingAccess}<\/span> \u23f3`;\n        const otpRes = await fetch(`${API_BASE}\/requestOtp`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\/json' },\n            body: JSON.stringify({ email })\n        });\n        const otpData = await otpRes.json();\n\n        btnSubmit.disabled = false;\n        btnSubmit.innerHTML = origHtml;\n\n        showToast(I18N[currentLang].toastRegSuccess, '\ud83d\udce9');\n        showOtpStep(otpData.emailMasked || email, email);\n\n    } catch (err) {\n        console.error('Register error', err);\n        showToast('Error de conexi\u00f3n al registrar. Int\u00e9ntalo de nuevo.', '\u274c');\n        btnSubmit.disabled = false;\n        btnSubmit.innerHTML = origHtml;\n    }\n}\n\nasync function loadChecklist(activeToken) {\n    const elLoading = document.getElementById('flm-portal-loading');\n    const elError = document.getElementById('flm-portal-error');\n    const elErrorTitle = document.getElementById('flm-error-title');\n    const elErrorMsg = document.getElementById('flm-error-msg');\n    const elContent = document.getElementById('flm-portal-content');\n    const elLogin = document.getElementById('flm-portal-login');\n\n    elLoading.style.display = 'block';\n    elError.style.display = 'none';\n    elContent.style.display = 'none';\n    elLogin.style.display = 'none';\n\n    try {\n        const res = await fetch(`${API_BASE}\/checklist?token=${encodeURIComponent(activeToken)}`);\n        const data = await res.json();\n\n        if (!res.ok || !data.success) {\n            elLoading.style.display = 'none';\n            elErrorTitle.textContent = 'Enlace no v\u00e1lido o expirado';\n            elErrorMsg.textContent = data.error || 'No se pudo acceder a tu expediente. Solicita un nuevo enlace a tu Loan Officer.';\n            elError.style.display = 'block';\n            return;\n        }\n\n        renderPortal(data, activeToken);\n        elLoading.style.display = 'none';\n        elContent.style.display = 'block';\n    } catch (err) {\n        elLoading.style.display = 'none';\n        elErrorTitle.textContent = 'Error de Conexi\u00f3n';\n        elErrorMsg.textContent = 'No pudimos conectar con el servidor seguro. Por favor verifica tu conexi\u00f3n a internet o intenta nuevamente.';\n        elError.style.display = 'block';\n    }\n}\n\n\n\/\/ ==========================================\n\/\/ \ud83c\udf10 FLM BILINGUAL ENGINE (EN | ES)\n\/\/ ==========================================\nlet currentLang = (() => {\n    const p = window.location.pathname;\n    if (p.indexOf('\/es\/') === 0 || p === '\/es' || (document.documentElement.lang && document.documentElement.lang.toLowerCase().indexOf('es') !== -1)) {\n        return 'es';\n    }\n    return localStorage.getItem('flm_portal_lang') || 'en';\n})();\nwindow.lastPortalData = null;\nwindow.lastActiveToken = null;\n\nconst I18N = {\n    en: {\n        securityBadgeLogin: \"Secure Document Portal \u00b7 256-bit SSL\",\n        securityBadgeAuth: \"Secure Encrypted Portal \u00b7 256-bit SSL \u00b7 GLBA & FTC Compliant\",\n        loginTitle: \"Access Your Mortgage File\",\n        loginSubtitle: \"Upload your documents and check approval status in real-time without remembering passwords.\",\n        tabSignin: \"Existing Client \/ Sign In\",\n        tabRegister: \"New Client \/ Register\",\n        signinEmailLabel: \"Registered Email Address *\",\n        signinEmailPlaceholder: \"name@example.com\",\n        signinBtn: \"Request Access Code (6 Digits)\",\n        signinFootnote: \"\ud83d\udd12 For your security, we will send a 6-digit verification code to your email.\",\n        otpTitle: \"Verification Code\",\n        otpSubtitle: \"We have sent a secure 6-digit code to:\",\n        otpInputLabel: \"Enter your 6-digit code\",\n        otpInputPlaceholder: \"000000\",\n        otpHelper: \"Code expires in 15 minutes. Please check your Spam \/ Junk folder if needed.\",\n        otpVerifyBtn: \"Verify & Enter Portal\",\n        otpChangeEmail: \"\u2190 Change email\",\n        otpResend: \"Resend code\",\n        otpResending: \"Sending...\",\n        otpResendIn: \"Resend code in\",\n        regNameLabel: \"Full Name *\",\n        regNamePlaceholder: \"e.g. Carlos G\u00f3mez\",\n        regEmailLabel: \"Email Address *\",\n        regEmailPlaceholder: \"name@example.com\",\n        regPhoneLabel: \"Cell Phone *\",\n        regPhonePlaceholder: \"(305) 555-0199\",\n        regLoLabel: \"Who is your Loan Officer?\",\n        regBtn: \"Create File & Verify with Code\",\n        regFootnote: \"\ud83d\udd12 Complies with FTC & GLBA financial data privacy standards.\",\n        portalTitlePrefix: \"Mortgage Document File\",\n        portalSubtitle: \"Please upload the requested documents below to begin the analysis and pre-qualification of your mortgage loan. You can take photos directly from your phone or attach PDF files.\",\n        loAssignedBadge: \"Your Assigned Loan Officer\",\n        loCall: \"Call\",\n        loWhatsapp: \"WhatsApp\",\n        loEmail: \"Email\",\n        progressTitle: \"Verification Status\",\n        progressDone: \"\ud83c\udf89 All required documents have been approved by your Loan Officer!\",\n        progressPending: \"{approved} of {total} documents approved by your Loan Officer\",\n        statusPending: \"\u26aa Pending Upload\",\n        statusReview: \"\ud83d\udfe1 Under Review\",\n        statusApproved: \"\ud83d\udfe2 Approved\",\n        statusRejected: \"\ud83d\udd34 Action Required\",\n        feedbackTitle: \"\u26a0\ufe0f Correction requested by your Loan Officer:\",\n        reasonTitle: \"Reason:\",\n        notesTitle: \"Note:\",\n        selectFileBtn: \"Select File (PDF \/ Photo)\",\n        takePhotoBtn: \"Take Photo with Camera\",\n        dropHint: \"Drag and drop your file here \u00b7 PDF, JPG or PNG up to 25MB\",\n        currentFile: \"Current file:\",\n        docApprovedNotice: \"\u2713 Document verified and approved by your Loan Officer\",\n        uploading: \"Uploading and encrypting:\",\n        uploadSuccess: \"Document uploaded successfully:\",\n        uploadError: \"Error uploading file.\",\n        uploadTooBig: \"File exceeds the 25MB limit.\",\n        toastCodeSent: \"6-digit code sent to your email\",\n        toastNewCodeSent: \"New code sent to your email\",\n        toastEnter6Digits: \"Please enter all 6 digits of the code\",\n        toastWelcome: \"Welcome,\",\n        toastVerifying: \"Verifying...\",\n        toastSendingCode: \"Sending code...\",\n        toastCreatingFile: \"Creating file...\",\n        toastSendingAccess: \"Sending access code...\",\n        toastRegSuccess: \"File created! Enter the code sent to your email\",\n        toastNetError: \"Network connection error. Please try again.\",\n        toastLinkGen: \"Secure access link generated successfully\",\n        linkExpiredTitle: \"Link Expired or Invalid\",\n        requestNewLinkBtn: \"Request New Access Link\",\n        loadingTitle: \"Loading Secure Portal...\",\n        loadingSubtitle: \"Verifying credentials and data encryption.\",\n        addDocHeading: \"Upload Additional Document\",\n        addDocSub: \"Have another bank statement, paystub, or document requested by your Loan Officer? You can add it here.\",\n        addDocBtnToggle: \"+ Add Document\",\n        addDocLabelPreset: \"Document Type *\",\n        addDocLabelCustom: \"Document Name *\",\n        addDocBtnSelect: \"Select File (PDF \/ Photo)\",\n        addDocHintDrop: \"Drag and drop your file here \u00b7 PDF, JPG or PNG up to 25MB\",\n        extraSlotBtn: \"\u2795 Attach another file for this requirement (e.g. Month 2 or 2nd Bank)\",\n        contactLoTitle: \"Have questions about your documents? Contact your Loan Officer\",\n        contactLoSub: \"Your assigned Loan Officer is available to assist you in completing your file.\",\n        contactLoMsgLabel: \"Or send a direct message to your Loan Officer here:\",\n        contactLoMsgPlaceholder: \"Write your question or note here...\",\n        contactLoBtnSend: \"Send Message\",\n        toastMsgSending: \"Sending message...\",\n        toastMsgSent: \"Message sent directly to your Loan Officer!\",\n        toastUploadingExtra: \"Uploading additional document...\"\n    },\n    es: {\n        securityBadgeLogin: \"Portal Seguro de Documentos \u00b7 SSL 256-bit\",\n        securityBadgeAuth: \"Portal Seguro Encriptado \u00b7 256-bit SSL \u00b7 GLBA & FTC Compliant\",\n        loginTitle: \"Acceso a tu Expediente Hipotecario\",\n        loginSubtitle: \"Sube tus documentos y consulta el estado de aprobaci\u00f3n en tiempo real sin recordar contrase\u00f1as.\",\n        tabSignin: \"Ya tengo expediente \/ Ingresar\",\n        tabRegister: \"Nuevo cliente \/ Registrarme\",\n        signinEmailLabel: \"Correo Electr\u00f3nico Registrado *\",\n        signinEmailPlaceholder: \"ejemplo@correo.com\",\n        signinBtn: \"Solicitar C\u00f3digo de Acceso (6 D\u00edgitos)\",\n        signinFootnote: \"\ud83d\udd12 Por tu seguridad, te enviaremos un c\u00f3digo de verificaci\u00f3n de 6 d\u00edgitos a tu correo.\",\n        otpTitle: \"C\u00f3digo de Verificaci\u00f3n\",\n        otpSubtitle: \"Hemos enviado un c\u00f3digo seguro de 6 d\u00edgitos a:\",\n        otpInputLabel: \"Introduce tu c\u00f3digo de 6 d\u00edgitos\",\n        otpInputPlaceholder: \"000000\",\n        otpHelper: \"El c\u00f3digo es v\u00e1lido por 15 minutos. Revisa tambi\u00e9n tu carpeta de Spam \/ Correo No Deseado.\",\n        otpVerifyBtn: \"Verificar e Ingresar al Portal\",\n        otpChangeEmail: \"\u2190 Cambiar correo\",\n        otpResend: \"Reenviar c\u00f3digo\",\n        otpResending: \"Enviando...\",\n        otpResendIn: \"Reenviar c\u00f3digo en\",\n        regNameLabel: \"Nombre y Apellido *\",\n        regNamePlaceholder: \"Ej. Carlos G\u00f3mez\",\n        regEmailLabel: \"Correo Electr\u00f3nico *\",\n        regEmailPlaceholder: \"ejemplo@correo.com\",\n        regPhoneLabel: \"Tel\u00e9fono Celular *\",\n        regPhonePlaceholder: \"(305) 555-0199\",\n        regLoLabel: \"\u00bfQui\u00e9n es tu Oficial de Pr\u00e9stamos (Loan Officer)?\",\n        regBtn: \"Crear Expediente y Validar con C\u00f3digo\",\n        regFootnote: \"\ud83d\udd12 Cumple con est\u00e1ndares de protecci\u00f3n de datos financieros de la FTC y GLBA.\",\n        portalTitlePrefix: \"Expediente de Documentos\",\n        portalSubtitle: \"Por favor sube los documentos solicitados a continuaci\u00f3n para iniciar el an\u00e1lisis y pre-calificaci\u00f3n de tu pr\u00e9stamo hipotecario. Puedes tomar fotos directas desde tu celular o adjuntar archivos PDF.\",\n        loAssignedBadge: \"Tu Oficial de Pr\u00e9stamos Asignado\",\n        loCall: \"Llamar\",\n        loWhatsapp: \"WhatsApp\",\n        loEmail: \"Enviar Correo\",\n        progressTitle: \"Estado de Verificaci\u00f3n\",\n        progressDone: \"\ud83c\udf89 \u00a1Todos los documentos requeridos han sido aprobados por tu Loan Officer!\",\n        progressPending: \"{approved} de {total} documentos aprobados por tu Loan Officer\",\n        statusPending: \"\u26aa Pendiente\",\n        statusReview: \"\ud83d\udfe1 Subido \/ En Revisi\u00f3n\",\n        statusApproved: \"\ud83d\udfe2 Aprobado\",\n        statusRejected: \"\ud83d\udd34 Requiere Correcci\u00f3n\",\n        feedbackTitle: \"\u26a0\ufe0f Correcci\u00f3n solicitada por tu Oficial de Pr\u00e9stamos:\",\n        reasonTitle: \"Motivo:\",\n        notesTitle: \"Nota:\",\n        selectFileBtn: \"Seleccionar Archivo (PDF \/ Foto)\",\n        takePhotoBtn: \"Tomar Foto con C\u00e1mara\",\n        dropHint: \"Arrastra y suelta tu archivo aqu\u00ed \u00b7 PDF, JPG o PNG hasta 25MB\",\n        currentFile: \"Archivo actual:\",\n        docApprovedNotice: \"\u2713 Documento verificado y aceptado por tu Oficial de Pr\u00e9stamos\",\n        uploading: \"Subiendo y encriptando:\",\n        uploadSuccess: \"Documento subido con \u00e9xito:\",\n        uploadError: \"Error al subir el archivo.\",\n        uploadTooBig: \"El archivo supera los 25MB permitidos.\",\n        toastCodeSent: \"C\u00f3digo de 6 d\u00edgitos enviado a tu correo\",\n        toastNewCodeSent: \"Nuevo c\u00f3digo enviado a tu correo\",\n        toastEnter6Digits: \"Introduce los 6 d\u00edgitos del c\u00f3digo\",\n        toastWelcome: \"\u00a1Bienvenido,\",\n        toastVerifying: \"Verificando...\",\n        toastSendingCode: \"Enviando c\u00f3digo...\",\n        toastCreatingFile: \"Creando expediente...\",\n        toastSendingAccess: \"Enviando c\u00f3digo de acceso...\",\n        toastRegSuccess: \"\u00a1Expediente creado! Ingresa el c\u00f3digo enviado a tu correo\",\n        toastNetError: \"Error de conexi\u00f3n. Int\u00e9ntalo de nuevo.\",\n        toastLinkGen: \"Enlace seguro generado con \u00e9xito\",\n        linkExpiredTitle: \"Enlace Expirado o Inv\u00e1lido\",\n        requestNewLinkBtn: \"Solicitar Nuevo Enlace de Acceso\",\n        loadingTitle: \"Cargando Portal Seguro...\",\n        loadingSubtitle: \"Verificando credenciales y encriptaci\u00f3n de datos.\",\n        addDocHeading: \"Subir Documento Adicional\",\n        addDocSub: \"\u00bfTienes otro estado de cuenta, tal\u00f3n de pago o documento solicitado por tu Loan Officer? Puedes agregarlo aqu\u00ed.\",\n        addDocBtnToggle: \"+ Agregar Documento\",\n        addDocLabelPreset: \"Tipo de Documento *\",\n        addDocLabelCustom: \"Nombre del Documento *\",\n        addDocBtnSelect: \"Seleccionar Archivo (PDF \/ Foto)\",\n        addDocHintDrop: \"Arrastra y suelta tu archivo aqu\u00ed \u00b7 PDF, JPG o PNG hasta 25MB\",\n        extraSlotBtn: \"\u2795 Subir otro archivo para este requisito (ej. Mes 2 o 2do Banco)\",\n        contactLoTitle: \"\u00bfTienes alguna duda sobre tus documentos? Contacta a tu Loan Officer\",\n        contactLoSub: \"Tu Oficial de Pr\u00e9stamos asignado est\u00e1 disponible para ayudarte a completar tu expediente.\",\n        contactLoMsgLabel: \"O d\u00e9jale un mensaje directo a tu Loan Officer aqu\u00ed:\",\n        contactLoMsgPlaceholder: \"Escribe tu consulta o aclaraci\u00f3n...\",\n        contactLoBtnSend: \"Enviar Mensaje\",\n        toastMsgSending: \"Enviando mensaje...\",\n        toastMsgSent: \"\u00a1Mensaje enviado a tu Loan Officer!\",\n        toastUploadingExtra: \"Subiendo documento adicional...\"\n    }\n};\n\nconst DOC_TRANSLATIONS = {\n    en: {\n        \"Identificaci\u00f3n Oficial (Driver's License o Pasaporte)\": {\n            name: \"Official Photo ID (Driver's License or Passport)\",\n            desc: \"Clear photo or PDF of your valid driver's license or passport.\"\n        },\n        \"Formularios W-2 \/ 1099 de los \u00faltimos 2 a\u00f1os\": {\n            name: \"W-2 \/ 1099 Tax Forms (Last 2 Years)\",\n            desc: \"Complete copies of W-2 or 1099 forms for the last 2 tax years.\"\n        },\n        \"Talones de Pago (Paystubs de los \u00faltimos 30 d\u00edas)\": {\n            name: \"Recent Paystubs (Last 30 Days)\",\n            desc: \"Your most recent consecutive paystubs covering the last 30 continuous days.\"\n        },\n        \"Estados de Cuenta Bancarios (\u00daltimos 2 meses completos)\": {\n            name: \"Bank Statements (Last 2 Full Months)\",\n            desc: \"Checking and savings account statements with all numbered pages included.\"\n        }\n    }\n};\n\nconst REJECT_REASONS = {\n    en: {\n        \"Documento Ilegible o Borroso\": \"Illegible or Blurry Document\",\n        \"Falta P\u00e1ginas \/ Incompleto\": \"Missing Pages \/ Incomplete Document\",\n        \"Documento Vencido\": \"Expired Document\",\n        \"Documento Cortado\": \"Cropped \/ Cut-off Document\",\n        \"Formato No V\u00e1lido\": \"Invalid File Format\",\n        \"Documento Incorrecto\": \"Incorrect Document\"\n    }\n};\n\nfunction setLanguage(lang) {\n    currentLang = lang;\n    localStorage.setItem('flm_portal_lang', lang);\n\n    \/\/ Sync native header switcher if present\n    const hEn = document.querySelector('.flm-lang-btn-en');\n    const hEs = document.querySelector('.flm-lang-btn-es');\n    if (hEn && hEs) {\n        if (lang === 'es') {\n            hEn.classList.remove('is-active');\n            hEs.classList.add('is-active');\n        } else {\n            hEs.classList.remove('is-active');\n            hEn.classList.add('is-active');\n        }\n    }\n\n    \/\/ Update buttons\n    const btnEn = document.getElementById('flm-lang-btn-en');\n    const btnEs = document.getElementById('flm-lang-btn-es');\n    if (btnEn && btnEs) {\n        btnEn.classList.toggle('active', lang === 'en');\n        btnEs.classList.toggle('active', lang === 'es');\n    }\n\n    const t = I18N[lang];\n    const updateText = (id, text) => {\n        const el = document.getElementById(id);\n        if (el) el.textContent = text;\n    };\n    const updatePlaceholder = (id, text) => {\n        const el = document.getElementById(id);\n        if (el) el.placeholder = text;\n    };\n\n    \/\/ Header \/ Badges\n    updateText('flm-badge-text-login', t.securityBadgeLogin);\n    updateText('flm-badge-text-auth', t.securityBadgeAuth);\n\n    \/\/ Auth Titles\n    updateText('flm-title-login', t.loginTitle);\n    updateText('flm-subtitle-login', t.loginSubtitle);\n\n    \/\/ Tabs\n    updateText('flm-tab-signin-text', t.tabSignin);\n    updateText('flm-tab-register-text', t.tabRegister);\n\n    \/\/ Sign In Form\n    updateText('label-signin-email', t.signinEmailLabel);\n    updatePlaceholder('signin-email', t.signinEmailPlaceholder);\n    updateText('btn-submit-signin-text', t.signinBtn);\n    updateText('footnote-signin', t.signinFootnote);\n\n    \/\/ OTP Form\n    updateText('flm-otp-title', t.otpTitle);\n    updateText('flm-otp-subtitle', t.otpSubtitle);\n    updateText('label-otp-code', t.otpInputLabel);\n    updatePlaceholder('otp-code', t.otpInputPlaceholder);\n    updateText('flm-otp-helper', t.otpHelper);\n    updateText('btn-submit-otp-text', t.otpVerifyBtn);\n    updateText('btn-otp-back-text', t.otpChangeEmail);\n    updateText('btn-resend-otp-text', t.otpResend);\n\n    \/\/ Register Form\n    updateText('label-reg-name', t.regNameLabel);\n    updatePlaceholder('reg-name', t.regNamePlaceholder);\n    updateText('label-reg-email', t.regEmailLabel);\n    updatePlaceholder('reg-email', t.regEmailPlaceholder);\n    updateText('label-reg-phone', t.regPhoneLabel);\n    updatePlaceholder('reg-phone', t.regPhonePlaceholder);\n    updateText('label-reg-lo', t.regLoLabel);\n    updateText('btn-submit-register-text', t.regBtn);\n    updateText('footnote-register', t.regFootnote);\n\n    \/\/ Error & Loading\n    updateText('flm-loading-title', t.loadingTitle);\n    updateText('flm-loading-subtitle', t.loadingSubtitle);\n    updateText('flm-error-title', t.linkExpiredTitle);\n    updateText('flm-btn-error-text', t.requestNewLinkBtn);\n\n    \/\/ Authenticated Portal\n    updateText('flm-portal-subtitle-auth', t.portalSubtitle);\n    updateText('flm-progress-title', t.progressTitle);\n    updateText('flm-add-doc-heading', t.addDocHeading);\n    updateText('flm-add-doc-sub', t.addDocSub);\n    updateText('btn-toggle-add-text', t.addDocBtnToggle);\n    updateText('label-add-preset', t.addDocLabelPreset);\n    updateText('label-add-custom', t.addDocLabelCustom);\n    updateText('btn-select-additional-text', t.addDocBtnSelect);\n    updateText('hint-add-drop', t.addDocHintDrop);\n    updateText('flm-lo-contact-sub', t.contactLoSub);\n    updateText('label-lo-msg', t.contactLoMsgLabel);\n    updatePlaceholder('lo-client-message', t.contactLoMsgPlaceholder);\n    updateText('btn-send-lo-msg-text', t.contactLoBtnSend);\n    updateText('btn-wa-text', t.loWhatsapp);\n    updateText('btn-call-text', t.loCall);\n    updateText('btn-email-text', t.loEmail);\n\n    \/\/ Re-render portal view if active data is loaded\n    if (window.lastPortalData && window.lastActiveToken) {\n        renderPortal(window.lastPortalData, window.lastActiveToken);\n    }\n}\n\nfunction renderPortal(data, activeToken) {\n    window.lastPortalData = data;\n    window.lastActiveToken = activeToken;\n    const t = I18N[currentLang];\n\n    const clientName = data.client.firstName || data.client.name || (currentLang === 'en' ? 'Borrower' : 'Prestatario');\n    const greetingEl = document.getElementById('flm-client-greeting');\n    if (greetingEl) {\n        greetingEl.textContent = currentLang === 'en' \n            ? `Hello, ${clientName} \u00b7 Your Documents`\n            : `Hola, ${clientName} \u00b7 Tus Documentos`;\n    }\n\n    const lo = data.loanOfficer;\n    if (lo) {\n        const elLoName = document.getElementById('flm-lo-name');\n        if (elLoName) elLoName.textContent = lo.name || 'Loan Officer';\n        \n        const elLoDesc = document.getElementById('flm-lo-desc');\n        if (elLoDesc) {\n            const loTitle = currentLang === 'en' ? (lo.title || 'Loan Officer') : 'Oficial de Pr\u00e9stamos';\n            const nmlsNumber = lo.nmls || '2424324';\n            elLoDesc.textContent = `${loTitle} \u00b7 NMLS #${nmlsNumber}`;\n        }\n\n        const elLoImg = document.getElementById('flm-lo-img');\n        if (elLoImg) {\n            if (lo.avatarUrl) {\n                elLoImg.src = lo.avatarUrl;\n            }\n            elLoImg.alt = lo.name || 'Loan Officer';\n        }\n\n        if (lo.phone) {\n            const cleanDigits = lo.phone.replace(\/[^0-9]\/g, '');\n            const elPhone = document.getElementById('flm-lo-phone');\n            if (elPhone) {\n                elPhone.href = `tel:+${cleanDigits}`;\n                elPhone.title = currentLang === 'en' ? `Call ${lo.name}` : `Llamar a ${lo.name}`;\n            }\n            const elWa = document.getElementById('flm-lo-wa');\n            if (elWa) {\n                const waPhone = cleanDigits.length === 10 ? ('1' + cleanDigits) : cleanDigits;\n                const waMsg = currentLang === 'en'\n                    ? `Hello ${lo.name}, I have a question about my mortgage loan documents with FLM.`\n                    : `Hola ${lo.name}, tengo una consulta sobre los documentos de mi pr\u00e9stamo con FLM.`;\n                elWa.href = `https:\/\/wa.me\/${waPhone}?text=${encodeURIComponent(waMsg)}`;\n                elWa.title = currentLang === 'en' ? `WhatsApp ${lo.name}` : `WhatsApp a ${lo.name}`;\n            }\n        }\n        if (lo.email) {\n            const elEmail = document.getElementById('flm-lo-email');\n            if (elEmail) {\n                elEmail.href = `mailto:${lo.email}`;\n                elEmail.title = currentLang === 'en' ? `Send Email to ${lo.name}` : `Enviar Correo a ${lo.name}`;\n            }\n        }\n\n        \/\/ Hydrate Bottom Contact Box\n        const elBottomTitle = document.getElementById('flm-lo-contact-title');\n        if (elBottomTitle) {\n            elBottomTitle.textContent = currentLang === 'en'\n                ? `Questions about your documents? Contact ${lo.name}`\n                : `\u00bfTienes alguna duda sobre tus documentos? Contacta a ${lo.name}`;\n        }\n        const elBottomAvatar = document.getElementById('flm-lo-contact-avatar');\n        if (elBottomAvatar && lo.avatarUrl) {\n            elBottomAvatar.src = lo.avatarUrl;\n            elBottomAvatar.alt = lo.name || 'Loan Officer';\n        }\n        if (lo.phone) {\n            const cleanDigits = lo.phone.replace(\/[^0-9]\/g, '');\n            const elBPhone = document.getElementById('flm-lo-bottom-phone');\n            if (elBPhone) {\n                elBPhone.href = `tel:+${cleanDigits}`;\n            }\n            const elBWa = document.getElementById('flm-lo-bottom-wa');\n            if (elBWa) {\n                const waPhone = cleanDigits.length === 10 ? ('1' + cleanDigits) : cleanDigits;\n                const waMsg = currentLang === 'en'\n                    ? `Hello ${lo.name}, I have a question about my mortgage loan documents with FLM.`\n                    : `Hola ${lo.name}, tengo una consulta sobre los documentos de mi pr\u00e9stamo con FLM.`;\n                elBWa.href = `https:\/\/wa.me\/${waPhone}?text=${encodeURIComponent(waMsg)}`;\n            }\n        }\n        if (lo.email) {\n            const elBEmail = document.getElementById('flm-lo-bottom-email');\n            if (elBEmail) {\n                elBEmail.href = `mailto:${lo.email}`;\n            }\n        }\n    }\n\n    const stats = data.stats;\n    const elProgressBar = document.getElementById('flm-progress-bar');\n    if (elProgressBar) elProgressBar.style.width = `${stats.percent}%`;\n\n    const elProgressText = document.getElementById('flm-progress-text');\n    if (elProgressText) elProgressText.textContent = `${stats.percent}%`;\n\n    const elProgressSub = document.getElementById('flm-progress-subtext');\n    if (elProgressSub) {\n        if (stats.percent === 100) {\n            elProgressSub.textContent = t.progressDone;\n        } else {\n            elProgressSub.textContent = t.progressPending\n                .replace('{approved}', stats.approved)\n                .replace('{total}', stats.total);\n        }\n    }\n\n    const elDocList = document.getElementById('flm-doc-list');\n    elDocList.innerHTML = '';\n    data.documents.forEach((doc) => {\n        const card = document.createElement('div');\n        card.className = 'flm-doc-card';\n        card.id = `doc-card-${doc.id}`;\n\n        let statusPillClass = 'flm-status-pending';\n        let statusText = t.statusPending;\n        if (doc.status === 'Uploaded') {\n            statusPillClass = 'flm-status-uploaded';\n            statusText = t.statusReview;\n        } else if (doc.status === 'Approved') {\n            statusPillClass = 'flm-status-approved';\n            statusText = t.statusApproved;\n        } else if (doc.status === 'Rejected') {\n            statusPillClass = 'flm-status-rejected';\n            statusText = t.statusRejected;\n        }\n\n        \/\/ Translate Title & Description if in English\n        let docDisplayName = doc.name;\n        let docDisplayDesc = doc.description || '';\n        if (currentLang === 'en' && DOC_TRANSLATIONS.en[doc.name]) {\n            docDisplayName = DOC_TRANSLATIONS.en[doc.name].name;\n            docDisplayDesc = DOC_TRANSLATIONS.en[doc.name].desc;\n        }\n\n        let feedbackHtml = '';\n        if (doc.status === 'Rejected' && (doc.rejectReason || doc.rejectNotes)) {\n            let reasonDisplay = doc.rejectReason || (currentLang === 'en' ? 'Invalid document' : 'Documento no v\u00e1lido');\n            if (currentLang === 'en' && REJECT_REASONS.en[doc.rejectReason]) {\n                reasonDisplay = REJECT_REASONS.en[doc.rejectReason];\n            }\n            feedbackHtml = `\n                <div class=\"flm-feedback-box\">\n                    <div class=\"flm-feedback-title\">${t.feedbackTitle}<\/div>\n                    <div><strong>${t.reasonTitle}<\/strong> ${reasonDisplay}<\/div>\n                    ${doc.rejectNotes ? `<div><strong>${t.notesTitle}<\/strong> ${doc.rejectNotes}<\/div>` : ''}\n                <\/div>\n            `;\n        }\n\n        let fileMetaHtml = '';\n        if (doc.hasFile && doc.fileName) {\n            const sizeKb = doc.fileSize ? Math.round(doc.fileSize \/ 1024) : 0;\n            fileMetaHtml = `\n                <div class=\"flm-file-meta\">\n                    <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"><\/path><polyline points=\"14 2 14 8 20 8\"><\/polyline><\/svg>\n                    <span><strong>${t.currentFile}<\/strong> ${doc.fileName} (${sizeKb} KB)<\/span>\n                <\/div>\n                <div style=\"margin-top: 10px;\">\n                    <button type=\"button\" class=\"flm-btn-extra-slot\" onclick=\"uploadExtraFileForDoc('${doc.id}', '${doc.name.replace(\/'\/g, \"\\\\'\")}', '${doc.type || 'Additional'}')\">\n                        ${t.extraSlotBtn || '\u2795 Subir otro archivo para este requisito (ej. Mes 2 o 2do Banco)'}\n                    <\/button>\n                <\/div>\n            `;\n        }\n\n        let uploadActionHtml = '';\n        if (doc.status !== 'Approved') {\n            uploadActionHtml = `\n                <div class=\"flm-upload-box\" id=\"upload-box-${doc.id}\" onclick=\"triggerFileInput('${doc.id}')\">\n                    <input type=\"file\" id=\"file-input-${doc.id}\" accept=\"image\/jpeg,image\/png,image\/webp,application\/pdf\" onchange=\"handleFileSelected('${doc.id}', '${activeToken}')\">\n                    <input type=\"file\" id=\"camera-input-${doc.id}\" accept=\"image\/*\" capture=\"environment\" style=\"display: none;\" onchange=\"handleFileSelected('${doc.id}', '${activeToken}', true)\">\n                    <div class=\"flm-upload-cta\">\n                        <button type=\"button\" class=\"flm-upload-btn-main\">\n                            <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"><\/path><polyline points=\"17 8 12 3 7 8\"><\/polyline><line x1=\"12\" y1=\"3\" x2=\"12\" y2=\"15\"><\/line><\/svg>\n                            ${t.selectFileBtn}\n                        <\/button>\n                        <button type=\"button\" class=\"flm-upload-btn-camera\" onclick=\"event.stopPropagation(); triggerCameraInput('${doc.id}')\">\n                            <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z\"><\/path><circle cx=\"12\" cy=\"13\" r=\"4\"><\/circle><\/svg>\n                            ${t.takePhotoBtn}\n                        <\/button>\n                    <\/div>\n                    <div class=\"flm-upload-hint\">${t.dropHint}<\/div>\n                <\/div>\n            `;\n        } else {\n            uploadActionHtml = `\n                <div style=\"font-size: 13px; color: #15803d; font-weight: 600; padding: 8px 0;\">\n                    ${t.docApprovedNotice}\n                <\/div>\n            `;\n        }\n\n        card.innerHTML = `\n            <div class=\"flm-doc-header\">\n                <div class=\"flm-doc-title-row\">\n                    <svg class=\"flm-doc-icon\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\"><path d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z\"><\/path><polyline points=\"14 2 14 8 20 8\"><\/polyline><\/svg>\n                    <h3 class=\"flm-doc-name\">${docDisplayName}<\/h3>\n                <\/div>\n                <span class=\"flm-status-pill ${statusPillClass}\">${statusText}<\/span>\n            <\/div>\n            <p class=\"flm-doc-desc\">${docDisplayDesc}<\/p>\n            ${feedbackHtml}\n            ${uploadActionHtml}\n            ${fileMetaHtml}\n        `;\n        elDocList.appendChild(card);\n        setupDragDrop(doc.id, activeToken);\n    });\n}\n\n\nfunction triggerFileInput(docId) {\n    const input = document.getElementById(`file-input-${docId}`);\n    if (input) input.click();\n}\n\nfunction triggerCameraInput(docId) {\n    const input = document.getElementById(`camera-input-${docId}`);\n    if (input) input.click();\n}\n\nfunction setupDragDrop(docId, activeToken) {\n    const box = document.getElementById(`upload-box-${docId}`);\n    if (!box) return;\n    box.addEventListener('dragover', (e) => { e.preventDefault(); box.classList.add('dragover'); });\n    box.addEventListener('dragleave', () => { box.classList.remove('dragover'); });\n    box.addEventListener('drop', (e) => {\n        e.preventDefault();\n        box.classList.remove('dragover');\n        if (e.dataTransfer.files && e.dataTransfer.files.length > 0) {\n            uploadFile(docId, e.dataTransfer.files[0], activeToken);\n        }\n    });\n}\n\nfunction handleFileSelected(docId, activeToken, isCamera = false) {\n    const input = document.getElementById(isCamera ? `camera-input-${docId}` : `file-input-${docId}`);\n    if (input && input.files && input.files[0]) {\n        uploadFile(docId, input.files[0], activeToken);\n    }\n}\n\nasync function uploadFile(docId, file, activeToken) {\n    if (file.size > 25 * 1024 * 1024) {\n        showToast(I18N[currentLang].uploadTooBig, '\u26a0\ufe0f');\n        return;\n    }\n    const box = document.getElementById(`upload-box-${docId}`);\n    if (box) {\n        box.innerHTML = `\n            <div style=\"display: flex; align-items: center; justify-content: center; gap: 10px; color: #15803d; font-weight: 600; font-size: 14px;\">\n                <div class=\"flm-spinner\" style=\"width: 24px; height: 24px; border-width: 3px; margin: 0;\"><\/div>\n                ${I18N[currentLang].uploading} ${file.name}...\n            <\/div>\n        `;\n    }\n    const formData = new FormData();\n    formData.append('token', activeToken);\n    formData.append('documentId', docId);\n    formData.append('file', file);\n\n    try {\n        const res = await fetch(`${API_BASE}\/upload`, {\n            method: 'POST',\n            body: formData\n        });\n        const data = await res.json();\n        if (!res.ok || !data.success) {\n            showToast(data.error || 'Error al subir el archivo.', '\u274c');\n            loadChecklist(activeToken);\n            return;\n        }\n        showToast(`${I18N[currentLang].uploadSuccess} ${file.name}`, '\u2705');\n        loadChecklist(activeToken);\n    } catch (e) {\n        showToast('Error de red al subir el documento.', '\u274c');\n        loadChecklist(activeToken);\n    }\n}\n\n\n\/\/ ==========================================\n\/\/ \ud83d\ude80 ADDITIONAL DOCS & LO MESSAGING ENGINE\n\/\/ ==========================================\nfunction toggleAddDocForm() {\n    const wrap = document.getElementById('flm-add-doc-form-wrapper');\n    if (!wrap) return;\n    const isHidden = wrap.style.display === 'none' || wrap.style.display === '';\n    wrap.style.display = isHidden ? 'block' : 'none';\n    const btnText = document.getElementById('btn-toggle-add-text');\n    if (btnText) {\n        btnText.textContent = isHidden \n            ? (currentLang === 'en' ? 'Close Form' : 'Cerrar') \n            : I18N[currentLang].addDocBtnToggle;\n    }\n}\n\nfunction handleDocPresetChange() {\n    const preset = document.getElementById('add-doc-preset').value;\n    const customWrap = document.getElementById('add-doc-custom-wrap');\n    if (customWrap) {\n        customWrap.style.display = (preset === 'other') ? 'block' : 'none';\n        if (preset === 'other') {\n            document.getElementById('add-doc-custom-name').focus();\n        }\n    }\n}\n\nfunction getSelectedAdditionalDocInfo() {\n    const preset = document.getElementById('add-doc-preset').value;\n    const customInput = document.getElementById('add-doc-custom-name');\n    const customVal = customInput ? customInput.value.trim() : '';\n\n    const map = {\n        bank: {\n            name: currentLang === 'en' ? 'Bank Statement (Additional Month\/Account)' : 'Estado de Cuenta Bancario Adicional',\n            type: 'Bank Statements'\n        },\n        paystub: {\n            name: currentLang === 'en' ? 'Additional Paystub' : 'Tal\u00f3n de Pago Adicional (Paystub)',\n            type: 'Paystubs'\n        },\n        w2: {\n            name: currentLang === 'en' ? 'Additional W-2 \/ 1099 Form' : 'W-2 \/ 1099 Adicional',\n            type: 'W-2'\n        },\n        explanation: {\n            name: currentLang === 'en' ? 'Letter of Explanation' : 'Carta de Explicaci\u00f3n',\n            type: 'Explanation Letter'\n        },\n        lease: {\n            name: currentLang === 'en' ? 'Lease Agreement' : 'Contrato de Arrendamiento (Lease)',\n            type: 'Lease Agreement'\n        },\n        gift: {\n            name: currentLang === 'en' ? 'Gift Letter \/ Source of Funds' : 'Carta de Regalo \/ Soporte de Fondos',\n            type: 'Gift Letter'\n        },\n        other: {\n            name: customVal || (currentLang === 'en' ? 'Additional Document' : 'Documento Adicional'),\n            type: 'Additional'\n        }\n    };\n    return map[preset] || map.other;\n}\n\nfunction handleAdditionalFileSelected() {\n    const input = document.getElementById('file-input-additional');\n    if (!input || !input.files || !input.files[0]) return;\n    const file = input.files[0];\n    const docInfo = getSelectedAdditionalDocInfo();\n    uploadNewDocument(docInfo.name, docInfo.type, file, window.lastActiveToken);\n}\n\nfunction uploadExtraFileForDoc(parentDocId, parentDocName, docType) {\n    const hiddenInputId = 'temp-extra-file-input';\n    let input = document.getElementById(hiddenInputId);\n    if (!input) {\n        input = document.createElement('input');\n        input.type = 'file';\n        input.id = hiddenInputId;\n        input.accept = 'image\/jpeg,image\/png,image\/webp,application\/pdf';\n        input.style.display = 'none';\n        document.body.appendChild(input);\n    }\n    input.onchange = function() {\n        if (input.files && input.files[0]) {\n            const file = input.files[0];\n            const extraName = `${parentDocName} (Archivo Adicional)`;\n            uploadNewDocument(extraName, docType, file, window.lastActiveToken);\n        }\n    };\n    input.click();\n}\n\nasync function uploadNewDocument(docName, docType, file, activeToken) {\n    if (file.size > 25 * 1024 * 1024) {\n        showToast(I18N[currentLang].uploadTooBig, '\u26a0\ufe0f');\n        return;\n    }\n\n    showToast(I18N[currentLang].toastUploadingExtra || 'Subiendo...', '\u23f3');\n\n    const formData = new FormData();\n    formData.append('token', activeToken);\n    formData.append('documentId', 'new');\n    formData.append('documentName', docName);\n    formData.append('documentType', docType);\n    formData.append('file', file);\n\n    try {\n        const res = await fetch(`${API_BASE}\/upload`, {\n            method: 'POST',\n            body: formData\n        });\n        const data = await res.json();\n        if (!res.ok || !data.success) {\n            showToast(data.error || 'Error al subir el documento adicional.', '\u274c');\n            return;\n        }\n        showToast(`${I18N[currentLang].uploadSuccess} ${file.name}`, '\u2705');\n        const wrap = document.getElementById('flm-add-doc-form-wrapper');\n        if (wrap) wrap.style.display = 'none';\n        loadChecklist(activeToken);\n    } catch (e) {\n        showToast('Error de red al subir documento adicional.', '\u274c');\n        loadChecklist(activeToken);\n    }\n}\n\nasync function handleSendLoMessage() {\n    const elMsg = document.getElementById('lo-client-message');\n    if (!elMsg) return;\n    const text = elMsg.value.trim();\n    if (!text) {\n        showToast(currentLang === 'en' ? 'Please enter your message.' : 'Por favor escribe tu mensaje.', '\u26a0\ufe0f');\n        elMsg.focus();\n        return;\n    }\n\n    const btn = document.getElementById('btn-send-lo-msg');\n    const origHtml = btn.innerHTML;\n    btn.disabled = true;\n    btn.innerHTML = `<span>${I18N[currentLang].toastMsgSending || 'Enviando...'}<\/span> \u23f3`;\n\n    try {\n        const res = await fetch(`${API_BASE}\/sendMessage`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\/json' },\n            body: JSON.stringify({ token: window.lastActiveToken, message: text })\n        });\n        const data = await res.json();\n\n        btn.disabled = false;\n        btn.innerHTML = origHtml;\n\n        if (!res.ok || !data.success) {\n            showToast(data.error || 'Error al enviar el mensaje.', '\u274c');\n            return;\n        }\n\n        showToast(I18N[currentLang].toastMsgSent || 'Mensaje enviado a tu Loan Officer.', '\u2705');\n        elMsg.value = '';\n    } catch (e) {\n        btn.disabled = false;\n        btn.innerHTML = origHtml;\n        showToast('Error de red al enviar el mensaje.', '\u274c');\n    }\n}\n\n\/\/ Initial Run\n(function init() {\n    setLanguage(currentLang);\n    const params = new URLSearchParams(window.location.search);\n    const token = params.get('token');\n    if (token) {\n        loadChecklist(token);\n    } else {\n        showLoginForm();\n    }\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Loading Secure Portal&#8230; Verifying credentials and data encryption. Secure Document Portal \u00b7 256-bit SSL Access Your Mortgage File Upload your documents and check approval status in real-time without remembering passwords. Existing Client \/ Sign In New Client \/ Register Registered Email Address * Request Access Code (6 Digits) \u2709\ufe0f \ud83d\udd12 For your security, we will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":880,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-874","page","type-page","status-publish","has-post-thumbnail","hentry"],"rankMath":{"parentDomain":"fastloansmortgages.com","noFollowDomains":[],"noFollowExcludeDomains":[],"noFollowExternalLinks":false,"featuredImageNotice":"The featured image should be at least 200 by 200 pixels to be picked up by Facebook and other social media sites.","pluginReviewed":false,"postSettings":{"linkSuggestions":true,"useFocusKeyword":false},"frontEndScore":false,"postName":"portal","permalinkFormat":"https:\/\/fastloansmortgages.com\/es\/%pagename%\/","showLockModifiedDate":true,"assessor":{"focusKeywordLink":"https:\/\/fastloansmortgages.com\/wp-admin\/edit.php?focus_keyword=%focus_keyword%&post_type=%post_type%","hasTOCPlugin":false,"primaryTaxonomy":false,"serpData":{"title":"","description":"","focusKeywords":"","pillarContent":false,"canonicalUrl":"","breadcrumbTitle":"","advancedRobots":[],"facebookTitle":"","facebookDescription":"","facebookImage":"","facebookImageID":"","facebookHasOverlay":false,"facebookImageOverlay":"","facebookAuthor":"","twitterCardType":"","twitterUseFacebook":true,"twitterTitle":"","twitterDescription":"","twitterImage":"","twitterImageID":"","twitterHasOverlay":false,"twitterImageOverlay":"","twitterPlayerUrl":"","twitterPlayerSize":"","twitterPlayerStream":"","twitterPlayerStreamCtype":"","twitterAppDescription":"","twitterAppIphoneName":"","twitterAppIphoneID":"","twitterAppIphoneUrl":"","twitterAppIpadName":"","twitterAppIpadID":"","twitterAppIpadUrl":"","twitterAppGoogleplayName":"","twitterAppGoogleplayID":"","twitterAppGoogleplayUrl":"","twitterAppCountry":"","robots":{"index":true},"twitterAuthor":"username","primaryTerm":0,"authorName":"admin","titleTemplate":"%title% %sep% %sitename%","descriptionTemplate":"%excerpt%","showScoreFrontend":true,"lockModifiedDate":false},"powerWords":["incre\u00edble","asombroso","maravilloso","\u00fanico","hermoso","felicidad","brillante","cautivador","carism\u00e1tico","impactante","claro","completamente","confidencial","confianza","significativo","creativo","definitivamente","delicioso","demostrar","apres\u00farate","decidido","digno","din\u00e1mico","impresionante","esencial","inspirador","innovador","intenso","eficaz","m\u00e1gico","magn\u00edfico","hist\u00f3rico","importante","incre\u00edble","indispensable","inolvidable","irresistible","legendario","luminoso","lujo","m\u00e1gico","magn\u00edfico","majestuoso","memorable","maravilloso","milagroso","motivador","necesario","nuevo","oficial","perfecto","apasionado","persuasivo","fenomenal","placer","popular","poder","prestigioso","prodigioso","profundo","pr\u00f3spero","poderoso","calidad","radiante","r\u00e1pido","exitoso","revolucionario","satisfecho","seguridad","sensacional","sereno","suntuoso","espl\u00e9ndido","sublime","sorprendente","talentoso","terror\u00edfico","\u00fanico","valor","vibrante","victorioso","vivo","verdaderamente","celoso","aut\u00e9ntico","aventurero","espectacular","exclusivo","garantizado","extraordinario","fabuloso","fascinante","formidable","genial","grandioso","gratuito","h\u00e1bil","ilimitado","impecable","infalible","infinitamente","influyente","ingenioso","inolvidable","irremplazable","l\u00edder","maestro","notable","novedoso","pionero","poderoso","reconocido","revolucionario","sorprendente","superior","triunfante","ultra","valiente","valioso","vanguardista","vigoroso","visionario","voluntad","vital","triunfo","glorioso","imparable","inigualable","inteligente","invencible","libertad","orgullo","paz","progreso","renovado","sabidur\u00eda","satisfacci\u00f3n","seguro","serenidad","superaci\u00f3n","talento","transcendente","transformador","valent\u00eda","victoria"],"diacritics":{"A":"[\\u0041\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F]","AA":"[\\uA732]","AE":"[\\u00C6\\u01FC\\u01E2]","AO":"[\\uA734]","AU":"[\\uA736]","AV":"[\\uA738\\uA73A]","AY":"[\\uA73C]","B":"[\\u0042\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0182\\u0181]","C":"[\\u0043\\u24B8\\uFF23\\u0106\\u0108\\u010A\\u010C\\u00C7\\u1E08\\u0187\\u023B\\uA73E]","D":"[\\u0044\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018B\\u018A\\u0189\\uA779]","DZ":"[\\u01F1\\u01C4]","Dz":"[\\u01F2\\u01C5]","E":"[\\u0045\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E]","F":"[\\u0046\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B]","G":"[\\u0047\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E]","H":"[\\u0048\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D]","I":"[\\u0049\\u24BE\\uFF29\\u00CC\\u00CD\\u00CE\\u0128\\u012A\\u012C\\u0130\\u00CF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197]","J":"[\\u004A\\u24BF\\uFF2A\\u0134\\u0248]","K":"[\\u004B\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2]","L":"[\\u004C\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780]","LJ":"[\\u01C7]","Lj":"[\\u01C8]","M":"[\\u004D\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C]","N":"[\\u004E\\u24C3\\uFF2E\\u01F8\\u0143\\u00D1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u0220\\u019D\\uA790\\uA7A4]","NJ":"[\\u01CA]","Nj":"[\\u01CB]","O":"[\\u004F\\u24C4\\uFF2F\\u00D2\\u00D3\\u00D4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\u00D5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\u00D6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\u00D8\\u01FE\\u0186\\u019F\\uA74A\\uA74C]","OI":"[\\u01A2]","OO":"[\\uA74E]","OU":"[\\u0222]","P":"[\\u0050\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754]","Q":"[\\u0051\\u24C6\\uFF31\\uA756\\uA758\\u024A]","R":"[\\u0052\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782]","S":"[\\u0053\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784]","T":"[\\u0054\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786]","TZ":"[\\uA728]","U":"[\\u0055\\u24CA\\uFF35\\u00D9\\u00DA\\u00DB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\u00DC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244]","V":"[\\u0056\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245]","VY":"[\\uA760]","W":"[\\u0057\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72]","X":"[\\u0058\\u24CD\\uFF38\\u1E8A\\u1E8C]","Y":"[\\u0059\\u24CE\\uFF39\\u1EF2\\u00DD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE]","Z":"[\\u005A\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762]","a":"[\\u0061\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250]","aa":"[\\uA733]","ae":"[\\u00E6\\u01FD\\u01E3]","ao":"[\\uA735]","au":"[\\uA737]","av":"[\\uA739\\uA73B]","ay":"[\\uA73D]","b":"[\\u0062\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253]","c":"[\\u0063\\u24D2\\uFF43\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184]","d":"[\\u0064\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\uA77A]","dz":"[\\u01F3\\u01C6]","e":"[\\u0065\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u025B\\u01DD]","f":"[\\u0066\\u24D5\\uFF46\\u1E1F\\u0192\\uA77C]","g":"[\\u0067\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\u1D79\\uA77F]","h":"[\\u0068\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265]","hv":"[\\u0195]","i":"[\\u0069\\u24D8\\uFF49\\u00EC\\u00ED\\u00EE\\u0129\\u012B\\u012D\\u00EF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131]","j":"[\\u006A\\u24D9\\uFF4A\\u0135\\u01F0\\u0249]","k":"[\\u006B\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3]","l":"[\\u006C\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747]","lj":"[\\u01C9]","m":"[\\u006D\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F]","n":"[\\u006E\\u24DD\\uFF4E\\u01F9\\u0144\\u00F1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5]","nj":"[\\u01CC]","o":"[\\u006F\\u24DE\\uFF4F\\u00F2\\u00F3\\u00F4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\u00F5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\u00F6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\u00F8\\u01FF\\u0254\\uA74B\\uA74D\\u0275]","oi":"[\\u01A3]","ou":"[\\u0223]","oo":"[\\uA74F]","p":"[\\u0070\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755]","q":"[\\u0071\\u24E0\\uFF51\\u024B\\uA757\\uA759]","r":"[\\u0072\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783]","s":"[\\u0073\\u24E2\\uFF53\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B]","ss":"[\\u00DF]","t":"[\\u0074\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787]","tz":"[\\uA729]","u":"[\\u0075\\u24E4\\uFF55\\u00F9\\u00FA\\u00FB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\u00FC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289]","v":"[\\u0076\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C]","vy":"[\\uA761]","w":"[\\u0077\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73]","x":"[\\u0078\\u24E7\\uFF58\\u1E8B\\u1E8D]","y":"[\\u0079\\u24E8\\uFF59\\u1EF3\\u00FD\\u0177\\u1EF9\\u0233\\u1E8F\\u00FF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF]","z":"[\\u007A\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763]"},"researchesTests":["contentHasTOC","contentHasShortParagraphs","contentHasAssets","keywordInTitle","keywordInMetaDescription","keywordInPermalink","keywordIn10Percent","keywordInContent","keywordInSubheadings","keywordInImageAlt","keywordDensity","keywordNotUsed","lengthContent","lengthPermalink","linksHasInternal","linksHasExternals","linksNotAllExternals","titleStartWithKeyword","titleSentiment","titleHasPowerWords","titleHasNumber","hasContentAI"],"hasRedirection":false,"hasBreadcrumb":false},"homeUrl":"https:\/\/fastloansmortgages.com\/es","objectID":874,"objectType":"post","locale":"es","localeFull":"es_ES","overlayImages":{"play":{"name":"Play icon","url":"https:\/\/fastloansmortgages.com\/wp-content\/plugins\/seo-by-rank-math\/assets\/admin\/img\/icon-play.png","path":"\/home\/fastloansmortgag\/public_html\/wp-content\/plugins\/seo-by-rank-math\/assets\/admin\/img\/icon-play.png","position":"middle_center"},"gif":{"name":"GIF icon","url":"https:\/\/fastloansmortgages.com\/wp-content\/plugins\/seo-by-rank-math\/assets\/admin\/img\/icon-gif.png","path":"\/home\/fastloansmortgag\/public_html\/wp-content\/plugins\/seo-by-rank-math\/assets\/admin\/img\/icon-gif.png","position":"middle_center"}},"defautOgImage":"https:\/\/fastloansmortgages.com\/wp-content\/plugins\/seo-by-rank-math\/assets\/admin\/img\/social-placeholder.jpg","customPermalinks":true,"isUserRegistered":true,"autoSuggestKeywords":true,"connectSiteUrl":"https:\/\/rankmath.com\/auth?site=https%3A%2F%2Ffastloansmortgages.com%2Fes&r=https%3A%2F%2Ffastloansmortgages.com%2Fes%2Fwp-json%2Fwp%2Fv2%2Fpages%2F874%3Fnonce%3D5cd4abc65f&pro=1","maxTags":100,"trendsIcon":"<svg viewBox=\"0 0 610 610\"><path d=\"M18.85,446,174.32,290.48l58.08,58.08L76.93,504a14.54,14.54,0,0,1-20.55,0L18.83,466.48a14.54,14.54,0,0,1,0-20.55Z\" style=\"fill:#4285f4\"\/><path d=\"M242.65,242.66,377.59,377.6l-47.75,47.75a14.54,14.54,0,0,1-20.55,0L174.37,290.43l47.75-47.75A14.52,14.52,0,0,1,242.65,242.66Z\" style=\"fill:#ea4335\"\/><polygon points=\"319.53 319.53 479.26 159.8 537.34 217.88 377.61 377.62 319.53 319.53\" style=\"fill:#fabb05\"\/><path d=\"M594.26,262.73V118.61h0a16.94,16.94,0,0,0-16.94-16.94H433.2a16.94,16.94,0,0,0-12,28.92L565.34,274.71h0a16.94,16.94,0,0,0,28.92-12Z\" style=\"fill:#34a853\"\/><rect width=\"610\" height=\"610\" style=\"fill:none\"\/><\/svg>","showScore":true,"siteFavIcon":"https:\/\/fastloansmortgages.com\/wp-content\/uploads\/2025\/02\/Icon-Full_Color-150x150.png","canUser":{"general":false,"advanced":false,"snippet":false,"social":false,"analysis":false,"analytics":false,"content_ai":false},"isPro":true,"is_front_page":false,"trendsUpgradeLink":"https:\/\/rankmath.com\/pricing\/?utm_source=Plugin&utm_medium=CE%20General%20Tab%20Trends&utm_campaign=WP","trendsUpgradeLabel":"Upgrade","trendsPreviewImage":"https:\/\/fastloansmortgages.com\/wp-content\/plugins\/seo-by-rank-math\/assets\/admin\/img\/trends-preview.jpg","currentEditor":false,"homepageData":{"assessor":{"powerWords":["incre\u00edble","asombroso","maravilloso","\u00fanico","hermoso","felicidad","brillante","cautivador","carism\u00e1tico","impactante","claro","completamente","confidencial","confianza","significativo","creativo","definitivamente","delicioso","demostrar","apres\u00farate","decidido","digno","din\u00e1mico","impresionante","esencial","inspirador","innovador","intenso","eficaz","m\u00e1gico","magn\u00edfico","hist\u00f3rico","importante","incre\u00edble","indispensable","inolvidable","irresistible","legendario","luminoso","lujo","m\u00e1gico","magn\u00edfico","majestuoso","memorable","maravilloso","milagroso","motivador","necesario","nuevo","oficial","perfecto","apasionado","persuasivo","fenomenal","placer","popular","poder","prestigioso","prodigioso","profundo","pr\u00f3spero","poderoso","calidad","radiante","r\u00e1pido","exitoso","revolucionario","satisfecho","seguridad","sensacional","sereno","suntuoso","espl\u00e9ndido","sublime","sorprendente","talentoso","terror\u00edfico","\u00fanico","valor","vibrante","victorioso","vivo","verdaderamente","celoso","aut\u00e9ntico","aventurero","espectacular","exclusivo","garantizado","extraordinario","fabuloso","fascinante","formidable","genial","grandioso","gratuito","h\u00e1bil","ilimitado","impecable","infalible","infinitamente","influyente","ingenioso","inolvidable","irremplazable","l\u00edder","maestro","notable","novedoso","pionero","poderoso","reconocido","revolucionario","sorprendente","superior","triunfante","ultra","valiente","valioso","vanguardista","vigoroso","visionario","voluntad","vital","triunfo","glorioso","imparable","inigualable","inteligente","invencible","libertad","orgullo","paz","progreso","renovado","sabidur\u00eda","satisfacci\u00f3n","seguro","serenidad","superaci\u00f3n","talento","transcendente","transformador","valent\u00eda","victoria"],"diacritics":true,"researchesTests":["contentHasTOC","contentHasShortParagraphs","contentHasAssets","keywordInTitle","keywordInMetaDescription","keywordInPermalink","keywordIn10Percent","keywordInContent","keywordInSubheadings","keywordInImageAlt","keywordDensity","keywordNotUsed","lengthContent","lengthPermalink","linksHasInternal","linksHasExternals","linksNotAllExternals","titleStartWithKeyword","titleSentiment","titleHasPowerWords","titleHasNumber","hasContentAI"],"hasBreadcrumb":false,"serpData":{"title":"%sitename% %page% %sep% %sitedesc%","description":"","titleTemplate":"%sitename% %page% %sep% %sitedesc%","descriptionTemplate":"","focusKeywords":"","breadcrumbTitle":"Home","robots":{"index":true},"advancedRobots":[],"facebookTitle":"","facebookDescription":"","facebookImage":"","facebookImageID":""}}},"tocTitle":"Table of Contents","tocExcludeHeadings":[],"listStyle":"ul"},"_links":{"self":[{"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/pages\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":15,"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/pages\/874\/revisions"}],"predecessor-version":[{"id":922,"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/pages\/874\/revisions\/922"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/media\/880"}],"wp:attachment":[{"href":"https:\/\/fastloansmortgages.com\/es\/wp-json\/wp\/v2\/media?parent=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}