{"id":889,"date":"2026-09-09T02:12:49","date_gmt":"2026-09-09T06:12:49","guid":{"rendered":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/?page_id=889"},"modified":"2026-09-09T09:48:27","modified_gmt":"2026-09-09T13:48:27","slug":"registro","status":"publish","type":"page","link":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/registro\/","title":{"rendered":"Registro"},"content":{"rendered":"\n\n\n    <link rel=\"stylesheet\" href=\"https:\/\/cdn.jsdelivr.net\/npm\/intl-tel-input@18.2.1\/build\/css\/intlTelInput.css\">\n    <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/intl-tel-input@18.2.1\/build\/js\/intlTelInput.min.js\"><\/script>\n\n    <style>\n      .cii-form-container {\n        max-width: 820px;\n        margin: 20px auto;\n        background: #ffffff;\n        padding: 30px;\n        border-radius: 12px;\n        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);\n        border: 1px solid #e2e8f0;\n        font-family: inherit;\n        color: #1e293b;\n      }\n      .cii-section-title {\n        font-size: 18px;\n        font-weight: 700;\n        color: #0f172a;\n        margin-top: 25px;\n        margin-bottom: 15px;\n        padding-bottom: 8px;\n        border-bottom: 2px solid #e2e8f0;\n      }\n      .cii-form-group { margin-bottom: 18px; }\n      .cii-form-group label {\n        display: block;\n        font-weight: 600;\n        margin-bottom: 6px;\n        color: #334155;\n      }\n      .cii-form-control {\n        width: 100%;\n        height: 44px;\n        padding: 0 14px;\n        border: 1px solid #cbd5e1;\n        border-radius: 8px;\n        font-size: 15px;\n        box-sizing: border-box;\n      }\n      textarea.cii-form-control { height: auto; padding: 10px 14px; }\n\n      .iti { width: 100% !important; }\n      .iti__country-list { z-index: 9999 !important; color: #1e293b !important; }\n      \n      .cii-doc-group { \n        display: flex; \n        gap: 8px; \n        align-items: stretch; \n        width: 100%;\n      }\n      .cii-doc-prefix { \n        width: 90px !important; \n        flex-shrink: 0; \n        font-weight: bold; \n        height: 44px !important;\n      }\n      .cii-doc-input {\n        flex: 1;\n        height: 44px !important;\n      }\n      .cii-btn-search {\n        height: 44px !important;\n        padding: 0 22px;\n        background-color: #334155;\n        color: white;\n        border: none;\n        border-radius: 8px;\n        font-weight: 600;\n        cursor: pointer;\n        white-space: nowrap;\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        transition: background 0.2s;\n      }\n      .cii-btn-search:hover { background-color: #1e293b; }\n\n      .cii-alert-warning {\n        background-color: #fffbeb;\n        border-left: 4px solid #f59e0b;\n        color: #b45309;\n        padding: 14px;\n        border-radius: 6px;\n        margin-bottom: 20px;\n        font-size: 14px;\n        line-height: 1.5;\n      }\n      .cii-alert-danger {\n        background-color: #fef2f2;\n        border-left: 4px solid #ef4444;\n        color: #991b1b;\n        padding: 14px;\n        border-radius: 6px;\n        margin-bottom: 20px;\n        font-size: 14px;\n      }\n      .cii-alert-info {\n        background-color: #f0f9ff;\n        border-left: 4px solid #0284c7;\n        color: #0369a1;\n        padding: 14px;\n        border-radius: 6px;\n        margin-bottom: 20px;\n        font-size: 14px;\n      }\n      .cii-alert-note {\n        background-color: #f8fafc;\n        border: 1px solid #cbd5e1;\n        border-left: 4px solid #0284c7;\n        color: #1e293b;\n        padding: 14px;\n        border-radius: 6px;\n        margin-top: 15px;\n        margin-bottom: 20px;\n        font-size: 14px;\n        line-height: 1.5;\n      }\n      .cii-card-art {\n        background: #f8fafc;\n        border: 1px solid #cbd5e1;\n        padding: 12px 15px;\n        border-radius: 8px;\n        margin-bottom: 10px;\n        display: flex;\n        align-items: flex-start;\n        gap: 12px;\n      }\n      .cii-card-art.paid { background: #f1f5f9; opacity: 0.75; }\n      .cii-bank-card {\n        background: #f8fafc;\n        border: 1px solid #cbd5e1;\n        padding: 16px;\n        border-radius: 8px;\n        margin-bottom: 20px;\n        font-size: 14px;\n        line-height: 1.6;\n      }\n      .cii-actions-group {\n        display: flex;\n        gap: 12px;\n        margin-top: 20px;\n      }\n      .cii-btn-submit {\n        flex: 2;\n        padding: 14px;\n        background-color: #0284c7;\n        color: white;\n        border: none;\n        border-radius: 8px;\n        font-weight: 700;\n        font-size: 16px;\n        cursor: pointer;\n        transition: background 0.2s ease;\n      }\n      .cii-btn-submit:hover { background-color: #0369a1; }\n      .cii-btn-submit:disabled { background-color: #94a3b8; cursor: not-allowed; }\n      \n      .cii-btn-back {\n        flex: 1;\n        padding: 14px;\n        background-color: #64748b;\n        color: white;\n        border: none;\n        border-radius: 8px;\n        font-weight: 600;\n        font-size: 15px;\n        cursor: pointer;\n        text-align: center;\n        text-decoration: none;\n        transition: background 0.2s ease;\n      }\n      .cii-btn-back:hover { background-color: #475569; }\n\n      .cii-btn-bancamiga {\n        display: inline-block;\n        width: 100%;\n        text-align: center;\n        padding: 14px;\n        background-color: #10b981;\n        color: white;\n        border-radius: 8px;\n        font-weight: 700;\n        font-size: 16px;\n        text-decoration: none;\n        margin-bottom: 12px;\n        transition: background 0.2s ease;\n      }\n      .cii-btn-bancamiga:hover { background-color: #059669; }\n      .cii-currency-selector {\n        display: flex;\n        gap: 15px;\n        margin-bottom: 15px;\n      }\n      .cii-currency-option {\n        flex: 1;\n        border: 2px solid #cbd5e1;\n        padding: 12px;\n        border-radius: 8px;\n        cursor: pointer;\n        text-align: center;\n        font-weight: bold;\n      }\n      .cii-currency-option.active {\n        border-color: #0284c7;\n        background-color: #f0f9ff;\n        color: #0284c7;\n      }\n      .cii-locked-badge {\n        background-color: #0f172a;\n        color: #ffffff;\n        padding: 14px 18px;\n        border-radius: 8px;\n        font-weight: 700;\n        font-size: 15px;\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        margin-bottom: 20px;\n        border-left: 5px solid #0284c7;\n      }\n      .cii-locked-badge.ponente { border-left-color: #f59e0b; }\n    <\/style>\n\n    <div class=\"cii-form-container\">\n      <form id=\"cii-registration-form\" enctype=\"multipart\/form-data\" novalidate>\n\n        <!-- SELECTOR DIN\u00c1MICO \/ BLOQUEO SEG\u00daN URL -->\n        <div id=\"wrapper-selector-tipo\" class=\"cii-form-group\">\n          <label for=\"tipo\">Tipo de Participaci\u00f3n *<\/label>\n          <select id=\"tipo\" name=\"tipo\" class=\"cii-form-control\" onchange=\"cambiarTipoInscripcion()\" style=\"font-weight: bold; background: #f8fafc;\">\n            <option value=\"ponente\">PONENTES<\/option>\n            <option value=\"asistente\">ASISTENTES<\/option>\n          <\/select>\n        <\/div>\n\n        <!-- TARJETA DE CONFIRMACI\u00d3N BLOQUEADA SI VIENE DE LA URL -->\n        <div id=\"bloque-tipo-bloqueado\" class=\"cii-locked-badge\" style=\"display:none;\">\n          <span>Modalidad de Inscripci\u00f3n: <strong id=\"texto-tipo-bloqueado\" style=\"text-transform: uppercase;\">--<\/strong><\/span>\n        <\/div>\n\n        <div id=\"bloque-filiation\" class=\"cii-form-group\">\n          <label for=\"afiliacion\">Condici\u00f3n \/ Categor\u00eda *<\/label>\n          <select id=\"afiliacion\" name=\"afiliacion\" class=\"cii-form-control\" onchange=\"evaluarAvisosYCostos()\"><\/select>\n        <\/div>\n\n        <div id=\"aviso-estudiante\" class=\"cii-alert-warning\" style=\"display:none;\">\n          <strong>Atenci\u00f3n Estudiantes:<\/strong> La tarifa especial de $10 USD es de uso exclusivo para estudiantes activos de pregrado de la UNET. Su estatus ser\u00e1 auditado con Control de Estudios; de no ser estudiante activo, deber\u00e1 cancelar la diferencia correspondiente.\n        <\/div>\n\n        <div id=\"aviso-unet-personal\" class=\"cii-alert-warning\" style=\"display:none;\">\n          <strong>Atenci\u00f3n Personal UNET:<\/strong> La tarifa UNET ser\u00e1 verificada directamente con la Direcci\u00f3n de Talento Humano \/ N\u00f3mina UNET. De no comprobarse la relaci\u00f3n laboral activa, deber\u00e1 cancelar la diferencia de la tarifa.\n        <\/div>\n\n        <div id=\"alerta-sin-trabajo\" class=\"cii-alert-danger\" style=\"display:none;\">\n          <strong>Atenci\u00f3n:<\/strong> No se encontraron trabajos o ponencias aprobadas asociados a la c\u00e9dula consultada. Para asistir al congreso debe seleccionar la opci\u00f3n <strong>\"ASISTENTES\"<\/strong> en el selector principal.\n        <\/div>\n\n        <!-- B\u00daSQUEDA OBLIGATORIA PARA PONENTES -->\n        <div id=\"bloque-busqueda-cedula\" class=\"cii-form-group\">\n          <label for=\"cedula_buscar_num\">B\u00fasqueda de Trabajos Aprobados (C\u00e9dula o Pasaporte) *<\/label>\n          <div class=\"cii-doc-group\">\n            <select id=\"cedula_buscar_prefijo\" class=\"cii-form-control cii-doc-prefix\">\n              <option value=\"V\">V-<\/option>\n              <option value=\"E\">E-<\/option>\n              <option value=\"P\">P-<\/option>\n            <\/select>\n            <input type=\"text\" id=\"cedula_buscar_num\" class=\"cii-form-control cii-doc-input\" placeholder=\"Ej: 17954855\" oninput=\"limpiarFormatoDocumento(this)\">\n            <button type=\"button\" class=\"cii-btn-search\" onclick=\"ejecutarBusqueda()\">Buscar<\/button>\n          <\/div>\n          <small style=\"color: #64748b; margin-top: 4px; display: block;\">Nota de Prueba: C\u00e9dula demo cargada en JSON: <strong>17954855<\/strong><\/small>\n        <\/div>\n\n        <div id=\"contenedor-articulos\" class=\"cii-form-group\" style=\"display:none;\">\n          <label>Seleccione los Trabajos que Desea Cancelar en este Registro:<\/label>\n          <div id=\"lista-articulos-items\"><\/div>\n        <\/div>\n\n        <div class=\"cii-section-title\">Datos Personales del Inscrito<\/div>\n\n        <div class=\"cii-form-group\">\n          <label>Documento de Identidad \/ Pasaporte *<\/label>\n          <div class=\"cii-doc-group\">\n            <select id=\"cedula_prefijo\" name=\"cedula_prefijo\" class=\"cii-form-control cii-doc-prefix\" required>\n              <option value=\"V\">V-<\/option>\n              <option value=\"E\">E-<\/option>\n              <option value=\"P\">P-<\/option>\n            <\/select>\n            <input type=\"text\" id=\"cedula_numero\" name=\"cedula_numero\" class=\"cii-form-control cii-doc-input\" placeholder=\"Ej: 17954855\" oninput=\"limpiarFormatoDocumento(this)\" required>\n          <\/div>\n        <\/div>\n\n        <div class=\"cii-form-group\">\n          <label for=\"nombres_apellidos\">Nombres y Apellidos Completos *<\/label>\n          <input type=\"text\" id=\"nombres_apellidos\" name=\"nombres_apellidos\" class=\"cii-form-control\" placeholder=\"Ej: Juan Diego Urbina Chuscano\" required>\n        <\/div>\n\n        <div class=\"cii-form-group\">\n          <label for=\"correo\">Correo Electr\u00f3nico *<\/label>\n          <input type=\"email\" id=\"correo\" name=\"correo\" class=\"cii-form-control\" placeholder=\"ejemplo@correo.com\" required>\n        <\/div>\n\n        <!-- M\u00d3DULO DE TEL\u00c9FONO CON INTL-TEL-INPUT -->\n        <div class=\"cii-form-group\">\n          <label for=\"telefono_input\">Tel\u00e9fono de Contacto (con WhatsApp activo) *<\/label>\n          <input type=\"tel\" id=\"telefono_input\" class=\"cii-form-control\" required>\n          <input type=\"hidden\" name=\"telefono\" id=\"telefono_hidden\">\n          <small style=\"color: #0284c7; font-weight: 600; margin-top: 5px; display: block;\">\n            \ud83d\udcf2 Le solicitamos ingresar un n\u00famero con WhatsApp activo para el env\u00edo de notificaciones y confirmaciones del congreso.\n          <\/small>\n        <\/div>\n\n        <!-- AVISO DE CERTIFICADOS CON REDACCI\u00d3N SIN REPETIR -->\n        <div class=\"cii-alert-note\">\n          <strong>Aseg\u00farese de verificar sus datos personales,<\/strong> ya que ser\u00e1n utilizados para la emisi\u00f3n del certificado de participaci\u00f3n.\n        <\/div>\n\n        <div class=\"cii-section-title\">Monto y Selecci\u00f3n de M\u00e9todo de Pago<\/div>\n\n        <div id=\"seccion-seleccion-moneda\" class=\"cii-form-group\">\n          <label>Seleccione la Moneda \/ Forma de Pago *<\/label>\n          <div class=\"cii-currency-selector\">\n            <div id=\"opt-usd\" class=\"cii-currency-option active\" onclick=\"seleccionarMoneda('USD')\">\n              Pagar en Divisas (USD)\n            <\/div>\n            <div id=\"opt-bs\" class=\"cii-currency-option\" onclick=\"seleccionarMoneda('BS')\">\n              Pagar en Bol\u00edvares (VES)\n            <\/div>\n          <\/div>\n        <\/div>\n\n        <div id=\"bloque-monto-usd\" class=\"cii-alert-info\">\n          <div style=\"font-size: 16px;\">\n            <strong>MONTO A PAGAR USD:<\/strong> <span id=\"monto-usd-display\" style=\"color: #0284c7; font-weight: bold;\">$0.00 USD<\/span>\n          <\/div>\n        <\/div>\n\n        <div id=\"bloque-monto-bs\" class=\"cii-alert-info\" style=\"display:none;\">\n          <div style=\"font-size: 16px;\">\n            <strong>MONTO A PAGAR BS.:<\/strong> <span id=\"monto-bs-display\" style=\"color: #0284c7; font-weight: bold;\">0.00 Bs.<\/span>\n            <small style=\"display:block; color:#64748b; font-size:12px; margin-top: 4px;\">(Tasa BCV del d\u00eda: <span id=\"tasa-bcv-val\">--<\/span> Bs\/$)<\/small>\n          <\/div>\n        <\/div>\n\n        <input type=\"hidden\" name=\"monto_usd\" id=\"monto_usd_input\">\n        <input type=\"hidden\" name=\"monto_bs\" id=\"monto_bs_input\">\n        <input type=\"hidden\" name=\"articulos_seleccionados\" id=\"articulos_seleccionados_input\">\n        <input type=\"hidden\" name=\"moneda_pago\" id=\"moneda_pago_input\" value=\"USD\">\n        <input type=\"hidden\" name=\"pais_detectado\" id=\"pais_detectado_input\" value=\"Venezuela\">\n\n        <div id=\"seccion-pago-bs\" style=\"display:none;\">\n          <div class=\"cii-bank-card\">\n            <strong>Cuentas Bancarias UNET (Banco de Venezuela)<\/strong><br>\n            <strong>Titular:<\/strong> UNIVERSIDAD NACIONAL EXPERIMENTAL DEL T\u00c1CHIRA - UNET<br>\n            <strong>RIF:<\/strong> G-20004886-7<br>\n            <strong>Cuenta Corriente:<\/strong> 0102-0150-1600-0005-1389<br>\n            <strong>Correo:<\/strong> iicongresoinvestig.unet@gmail.com\n          <\/div>\n\n          <div class=\"cii-form-group\">\n            <label for=\"banco_origen\">Banco Emisor \/ Origen *<\/label>\n            <select id=\"banco_origen\" name=\"banco_origen\" class=\"cii-form-control\"><\/select>\n          <\/div>\n\n          <div class=\"cii-form-group\">\n            <label for=\"numero_referencia\">N\u00famero de referencia de la Transacci\u00f3n bancaria: *<\/label>\n            <input type=\"text\" id=\"numero_referencia\" name=\"numero_referencia\" class=\"cii-form-control\" placeholder=\"Ej: 0012345678\">\n          <\/div>\n\n          <div class=\"cii-form-group\">\n            <label for=\"fecha_pago\">Fecha de la Transferencia \/ Pago *<\/label>\n            <input type=\"date\" id=\"fecha_pago\" name=\"fecha_pago\" class=\"cii-form-control\">\n          <\/div>\n\n          <div class=\"cii-form-group\">\n            <label for=\"monto_pagado\">Monto Pagado (transcribir tal cual aparece en el soporte de pago): *<\/label>\n            <input type=\"text\" id=\"monto_pagado\" name=\"monto_pagado\" class=\"cii-form-control\" placeholder=\"Ej: 3250.00\" onblur=\"formatearMontoDecimal(this)\">\n          <\/div>\n\n          <div class=\"cii-form-group\">\n            <label for=\"comprobante\">Adjuntar Comprobante de Pago (JPG, PNG o PDF) *<\/label>\n            <input type=\"file\" id=\"comprobante\" name=\"comprobante\" class=\"cii-form-control\" accept=\".jpg,.jpeg,.png,.pdf\">\n          <\/div>\n        <\/div>\n\n        <div id=\"seccion-pago-usd\">\n          <div class=\"cii-alert-info\" style=\"border-left-color: #10b981; background-color: #ecfdf5; color: #065f46; margin-bottom:20px;\">\n            <strong style=\"font-size:16px;\">Pasarela Internacional (Bancamiga \/ SIRCA UNET)<\/strong><br><br>\n            Para realizar tu pago en divisas con tarjeta de cr\u00e9dito o d\u00e9bito internacional:<br><br>\n            <strong>Paso 1:<\/strong> Haz clic en el bot\u00f3n verde inferior para ir a la pasarela y procesar tu pago.<br>\n            <strong>Paso 2:<\/strong> Regresa a este formulario y pulsa <em>\"Completar y Finalizar Registro\"<\/em> para culminar.\n          <\/div>\n\n          <a href=\"https:\/\/sirca.unet.edu.ve\/\" target=\"_blank\" class=\"cii-btn-bancamiga\">\n            Ir a la Pasarela de Pago Bancamiga (SIRCA UNET)\n          <\/a>\n        <\/div>\n\n        <!-- GRUPO DE ACCIONES CON BOT\u00d3N DE REGRESO -->\n        <div class=\"cii-actions-group\">\n          <button type=\"button\" class=\"cii-btn-back\" onclick=\"window.history.back();\">\u2190 Volver<\/button>\n          <button type=\"button\" id=\"btn-finalizar\" class=\"cii-btn-submit\" onclick=\"enviarFormulario()\">Completar y Finalizar Registro<\/button>\n        <\/div>\n\n      <\/form>\n    <\/div>\n\n    <script>\n      const CII_API_JSON = \"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/cii2026\/v1\/\";\n      const CII_API_QUERY = \"https:\/\/eventosdi.unet.edu.ve\/cii2026\/?rest_route=\/cii2026\/v1\/\";\n\n      let tasaBCV = 0;\n      let esVenezuela = true;\n      let itiInstance = null;\n\n      const BANCOS_VE = [\n        {\"code\": \"0102\", \"name\": \"Banco de Venezuela\"},\n        {\"code\": \"0104\", \"name\": \"Banco Venezolano de Cr\u00e9dito\"},\n        {\"code\": \"0105\", \"name\": \"Banco Mercantil\"},\n        {\"code\": \"0108\", \"name\": \"BBVA Provincial\"},\n        {\"code\": \"0114\", \"name\": \"Bancaribe\"},\n        {\"code\": \"0115\", \"name\": \"Banco Exterior\"},\n        {\"code\": \"0128\", \"name\": \"Banco Caron\u00ed\"},\n        {\"code\": \"0134\", \"name\": \"Banesco\"},\n        {\"code\": \"0137\", \"name\": \"Banco Sofitasa\"},\n        {\"code\": \"0138\", \"name\": \"Banco Plaza\"},\n        {\"code\": \"0146\", \"name\": \"Bangente\"},\n        {\"code\": \"0151\", \"name\": \"BFC Banco Fondo Com\u00fan\"},\n        {\"code\": \"0156\", \"name\": \"100% Banco\"},\n        {\"code\": \"0157\", \"name\": \"DelSur Banco Universal\"},\n        {\"code\": \"0163\", \"name\": \"Banco del Tesoro\"},\n        {\"code\": \"0166\", \"name\": \"Banco Agr\u00edcola de Venezuela\"},\n        {\"code\": \"0168\", \"name\": \"Bancrecer\"},\n        {\"code\": \"0169\", \"name\": \"R4 Banco Microfinanciero\"},\n        {\"code\": \"0171\", \"name\": \"Banco Activo\"},\n        {\"code\": \"0172\", \"name\": \"Bancamiga\"},\n        {\"code\": \"0173\", \"name\": \"Banco Internacional de Desarrollo\"},\n        {\"code\": \"0174\", \"name\": \"Banplus\"},\n        {\"code\": \"0175\", \"name\": \"Banco Digital de los Trabajadores\"},\n        {\"code\": \"0177\", \"name\": \"BANFANB\"},\n        {\"code\": \"0178\", \"name\": \"N58 Banco Digital\"},\n        {\"code\": \"0191\", \"name\": \"BNC (Banco Nacional de Cr\u00e9dito)\"},\n        {\"code\": \"0601\", \"name\": \"Instituto Municipal de Cr\u00e9dito Popular\"}\n      ];\n\n      const PRECIOS = {\n        ponente: { EXTERNO: 50, UNET: 30, ESTUDIANTE: 10 },\n        asistente: { EXTERNO: 20, UNET: 10, ESTUDIANTE: 10 }\n      };\n\n      async function llamarAPI(endpoint) {\n        const urlDirecta = CII_API_JSON + endpoint;\n        const urlQuery = CII_API_QUERY + (endpoint.includes('?') ? '&' + endpoint.split('?')[1] : '') + '&' + endpoint.split('?')[0];\n\n        try {\n          let response = await fetch(urlDirecta);\n          let contentType = response.headers.get(\"content-type\");\n          if (response.ok && contentType && contentType.includes(\"application\/json\")) {\n            return await response.json();\n          }\n        } catch (e) {}\n\n        try {\n          let response = await fetch(urlQuery);\n          let contentType = response.headers.get(\"content-type\");\n          if (response.ok && contentType && contentType.includes(\"application\/json\")) {\n            return await response.json();\n          }\n        } catch (e) {}\n\n        return null;\n      }\n\n      document.addEventListener('DOMContentLoaded', async () => {\n        cargarBancos();\n        inicializarTelefonoIntl();\n        \n        \/\/ BLOQUEO SEG\u00daN URL PARAMETER (?tipo=ponente \/ ?tipo=asistente)\n        const urlParams = new URLSearchParams(window.location.search);\n        const tipoParam = urlParams.get('tipo');\n        if (tipoParam) {\n          const valLower = tipoParam.toLowerCase();\n          if (valLower === 'ponente' || valLower === 'asistente') {\n            document.getElementById('tipo').value = valLower;\n            \n            \/\/ Ocultar selector y mostrar badge de confirmaci\u00f3n bloqueado\n            document.getElementById('wrapper-selector-tipo').style.display = 'none';\n            const badgeBloqueado = document.getElementById('bloque-tipo-bloqueado');\n            badgeBloqueado.style.display = 'flex';\n            if (valLower === 'ponente') {\n              badgeBloqueado.classList.add('ponente');\n            }\n            document.getElementById('texto-tipo-bloqueado').innerText = valLower;\n          }\n        }\n\n        await detectarPaisIP();\n        cambiarTipoInscripcion();\n        await obtenerTasaBCV();\n      });\n\n      function inicializarTelefonoIntl() {\n        const inputTel = document.querySelector(\"#telefono_input\");\n        if (inputTel && window.intlTelInput) {\n          itiInstance = window.intlTelInput(inputTel, {\n            initialCountry: \"ve\",\n            separateDialCode: true,\n            preferredCountries: [\"ve\", \"co\", \"us\", \"es\", \"cl\", \"ar\", \"mx\", \"pe\", \"ec\", \"pa\"],\n            utilsScript: \"https:\/\/cdn.jsdelivr.net\/npm\/intl-tel-input@18.2.1\/build\/js\/utils.js\"\n          });\n        }\n      }\n\n      function cargarBancos() {\n        const combo = document.getElementById('banco_origen');\n        combo.innerHTML = '<option value=\"\">-- Seleccione el Banco --<\/option>';\n        BANCOS_VE.forEach(b => {\n          combo.innerHTML += `<option value=\"${b.code} - ${b.name}\">${b.code} - ${b.name}<\/option>`;\n        });\n      }\n\n      async function detectarPaisIP() {\n        try {\n          const res = await fetch('https:\/\/ipapi.co\/json\/');\n          const data = await res.json();\n          if (data && data.country_code) {\n            esVenezuela = (data.country_code === 'VE');\n            document.getElementById('pais_detectado_input').value = data.country_name || (esVenezuela ? 'Venezuela' : 'Exterior');\n            \n            if (itiInstance && data.country_code) {\n              itiInstance.setCountry(data.country_code.toLowerCase());\n            }\n          }\n        } catch (e) {\n          esVenezuela = true;\n        }\n\n        if (!esVenezuela) {\n          document.getElementById('seccion-seleccion-moneda').style.display = 'none';\n          seleccionarMoneda('USD');\n        } else {\n          document.getElementById('seccion-seleccion-moneda').style.display = 'block';\n          seleccionarMoneda('USD');\n        }\n      }\n\n      function limpiarFormatoDocumento(input) {\n        input.value = input.value.replace(\/[^0-9]\/g, '');\n      }\n\n      function formatearMontoDecimal(input) {\n        if (!input.value) return;\n        let valor = parseFloat(input.value.replace(',', '.'));\n        if (!isNaN(valor)) {\n          input.value = valor.toFixed(2);\n        }\n      }\n\n      function cambiarTipoInscripcion() {\n        const tipo = document.getElementById('tipo').value;\n        const comboFiliation = document.getElementById('afiliacion');\n        const bloqueBusqueda = document.getElementById('bloque-busqueda-cedula');\n\n        document.getElementById('alerta-sin-trabajo').style.display = 'none';\n        document.getElementById('contenedor-articulos').style.display = 'none';\n\n        if (tipo === 'ponente') {\n          bloqueBusqueda.style.display = 'block';\n          comboFiliation.innerHTML = `\n            <option value=\"EXTERNO\">Ponente \/ Autor Externo ($50 USD por trabajo)<\/option>\n            <option value=\"UNET\">Ponente Personal UNET ($30 USD por trabajo)<\/option>\n            <option value=\"ESTUDIANTE\">Ponente Estudiante UNET ($10 USD por trabajo)<\/option>`;\n        } else {\n          bloqueBusqueda.style.display = 'none';\n          comboFiliation.innerHTML = `\n            <option value=\"EXTERNO\">P\u00fablico General \/ Externo ($20 USD)<\/option>\n            <option value=\"UNET\">Personal UNET ($10 USD)<\/option>\n            <option value=\"ESTUDIANTE\">Estudiante Pregrado UNET ($10 USD)<\/option>`;\n        }\n\n        evaluarAvisosYCostos();\n      }\n\n      function evaluarAvisosYCostos() {\n        const afil = document.getElementById('afiliacion').value || 'EXTERNO';\n        \n        document.getElementById('aviso-estudiante').style.display = (afil === 'ESTUDIANTE') ? 'block' : 'none';\n        document.getElementById('aviso-unet-personal').style.display = (afil === 'UNET') ? 'block' : 'none';\n\n        recalcularCostos();\n      }\n\n      async function obtenerTasaBCV() {\n        const data = await llamarAPI('tasa-bcv');\n        tasaBCV = (data && data.tasa) ? parseFloat(data.tasa) : 65.00;\n        document.getElementById('tasa-bcv-val').innerText = tasaBCV.toFixed(2);\n        recalcularCostos();\n      }\n\n      function recalcularCostos() {\n        const tipo = document.getElementById('tipo').value;\n        const afil = document.getElementById('afiliacion').value || 'EXTERNO';\n        let precioUnidad = PRECIOS[tipo][afil] || 10;\n        \n        let cantidadTrabajosAPagar = 1;\n\n        if (tipo === 'ponente') {\n          const checkboxes = document.querySelectorAll('.chk-articulo:checked');\n          if (checkboxes.length > 0) {\n            cantidadTrabajosAPagar = checkboxes.length;\n          }\n        }\n\n        let totalUSD = precioUnidad * cantidadTrabajosAPagar;\n        let totalBs = (totalUSD * tasaBCV).toFixed(2);\n\n        document.getElementById('monto_usd_input').value = totalUSD;\n        document.getElementById('monto_bs_input').value = totalBs;\n\n        document.getElementById('monto-usd-display').innerText = `$${totalUSD}.00 USD`;\n        document.getElementById('monto-bs-display').innerText = `${totalBs} Bs.`;\n      }\n\n      function seleccionarMoneda(moneda) {\n        document.getElementById('moneda_pago_input').value = moneda;\n\n        const optUSD = document.getElementById('opt-usd');\n        const optBS = document.getElementById('opt-bs');\n        \n        const bloqueUSD = document.getElementById('bloque-monto-usd');\n        const bloqueBS = document.getElementById('bloque-monto-bs');\n        \n        const secUSD = document.getElementById('seccion-pago-usd');\n        const secBS = document.getElementById('seccion-pago-bs');\n\n        if (moneda === 'BS') {\n          optBS.classList.add('active');\n          optUSD.classList.remove('active');\n          \n          bloqueBS.style.display = 'block';\n          bloqueUSD.style.display = 'none';\n          \n          secBS.style.display = 'block';\n          secUSD.style.display = 'none';\n        } else {\n          optUSD.classList.add('active');\n          optBS.classList.remove('active');\n          \n          bloqueUSD.style.display = 'block';\n          bloqueBS.style.display = 'none';\n          \n          secUSD.style.display = 'block';\n          secBS.style.display = 'none';\n        }\n      }\n\n      async function ejecutarBusqueda() {\n        const prefijo = document.getElementById('cedula_buscar_prefijo').value;\n        const numero = document.getElementById('cedula_buscar_num').value.trim();\n        const cedulaCompleta = `${prefijo}-${numero}`;\n\n        const alertaSinTrabajo = document.getElementById('alerta-sin-trabajo');\n        const contenedorArt = document.getElementById('contenedor-articulos');\n        const listaItems = document.getElementById('lista-articulos-items');\n\n        if (!numero) {\n          alert('Por favor ingrese el n\u00famero de documento para realizar la b\u00fasqueda.');\n          document.getElementById('cedula_buscar_num').focus();\n          return;\n        }\n\n        const data = await llamarAPI(`buscar-autor?cedula=${encodeURIComponent(cedulaCompleta)}`);\n\n        if (data && data.encontrado) {\n          alertaSinTrabajo.style.display = 'none';\n\n          document.getElementById('cedula_prefijo').value = prefijo;\n          document.getElementById('cedula_numero').value = numero;\n          document.getElementById('nombres_apellidos').value = data.autor.nombres_apellidos;\n          document.getElementById('correo').value = data.autor.correo;\n\n          const articulos = data.articulos || [];\n          listaItems.innerHTML = '';\n\n          if (articulos.length > 0) {\n            contenedorArt.style.display = 'block';\n\n            articulos.forEach((art) => {\n              const esPagado = art.pago_completado;\n              const clasePagado = esPagado ? 'paid' : '';\n              const checkedState = esPagado ? '' : 'checked';\n              const disabledState = esPagado ? 'disabled' : '';\n              const etiquetaEstado = esPagado ? '<span style=\"color:#ef4444; font-weight:bold;\">[PAGADO POR COAUTOR]<\/span>' : '<span style=\"color:#10b981; font-weight:bold;\">[PENDIENTE PAGO]<\/span>';\n\n              listaItems.innerHTML += `\n                <div class=\"cii-card-art ${clasePagado}\">\n                  <input type=\"checkbox\" class=\"chk-articulo\" value=\"${art.id}\" ${checkedState} ${disabledState} onchange=\"actualizarSeleccionArticulos()\">\n                  <div>\n                    <strong>${art.codigo_trabajo}<\/strong>: ${art.titulo} <br>\n                    <small>Rol: <strong>${art.rol}<\/strong> | Estado: ${etiquetaEstado}<\/small>\n                  <\/div>\n                <\/div>`;\n            });\n\n            actualizarSeleccionArticulos();\n          } else {\n            contenedorArt.style.display = 'none';\n          }\n        } else {\n          contenedorArt.style.display = 'none';\n          if (document.getElementById('tipo').value === 'ponente') {\n            alertaSinTrabajo.style.display = 'block';\n          }\n        }\n      }\n\n      function actualizarSeleccionArticulos() {\n        const seleccionados = [];\n        document.querySelectorAll('.chk-articulo:checked').forEach(chk => {\n          seleccionados.push(chk.value);\n        });\n\n        document.getElementById('articulos_seleccionados_input').value = JSON.stringify(seleccionados);\n        recalcularCostos();\n      }\n\n      function validarFormularioStrict() {\n        const tipo = document.getElementById('tipo').value;\n        const cedulaNum = document.getElementById('cedula_numero').value.trim();\n        const nombres = document.getElementById('nombres_apellidos').value.trim();\n        const correo = document.getElementById('correo').value.trim();\n        const moneda = document.getElementById('moneda_pago_input').value;\n\n        if (tipo === 'ponente') {\n          const trabajosSeleccionados = document.querySelectorAll('.chk-articulo:checked');\n          if (trabajosSeleccionados.length === 0) {\n            alert('Atenci\u00f3n: Si es Ponente, debe buscar su c\u00e9dula y seleccionar al menos un trabajo pendiente por pagar. De lo contrario, cambie su participaci\u00f3n a \"ASISTENTES\".');\n            return false;\n          }\n        }\n\n        if (!cedulaNum || !nombres || !correo) {\n          alert('Por favor complete todos los campos obligatorios de sus Datos Personales (C\u00e9dula, Nombres y Correo).');\n          return false;\n        }\n\n        if (!itiInstance || !itiInstance.isValidNumber()) {\n          alert('Por favor ingrese un n\u00famero de tel\u00e9fono internacional v\u00e1lido con su respectivo WhatsApp.');\n          document.getElementById('telefono_input').focus();\n          return false;\n        }\n\n        document.getElementById('telefono_hidden').value = itiInstance.getNumber();\n\n        const regexCorreo = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/;\n        if (!regexCorreo.test(correo)) {\n          alert('Por favor ingrese una direcci\u00f3n de correo electr\u00f3nico v\u00e1lida.');\n          return false;\n        }\n\n        if (moneda === 'BS') {\n          const banco = document.getElementById('banco_origen').value;\n          const ref = document.getElementById('numero_referencia').value.trim();\n          const fecha = document.getElementById('fecha_pago').value;\n          const monto = document.getElementById('monto_pagado').value.trim();\n          const comp = document.getElementById('comprobante').files;\n\n          if (!banco || !ref || !fecha || !monto || comp.length === 0) {\n            alert('Atenci\u00f3n: Al seleccionar pago en Bol\u00edvares debe completar todos los datos bancarios y adjuntar el comprobante de pago.');\n            return false;\n          }\n        }\n\n        return true;\n      }\n\n      async function enviarFormulario() {\n        if (!validarFormularioStrict()) {\n          return;\n        }\n\n        const form = document.getElementById('cii-registration-form');\n        const formData = new FormData(form);\n        const btnFinalizar = document.getElementById('btn-finalizar');\n\n        btnFinalizar.disabled = true;\n        btnFinalizar.innerText = 'Procesando Registro...';\n\n        try {\n          const urlDirecta = CII_API_JSON + 'asistentes';\n          const urlQuery = CII_API_QUERY + 'asistentes';\n\n          let res = await fetch(urlDirecta, { method: 'POST', body: formData });\n          if (!res.ok) {\n            res = await fetch(urlQuery, { method: 'POST', body: formData });\n          }\n\n          const result = await res.json();\n\n          if (result && result.status === 'ok') {\n            alert('\u00a1Registro completado exitosamente para el II Congreso Internacional de Investigaci\u00f3n 2026!');\n            window.location.reload();\n          } else {\n            alert('Error: ' + ((result && result.message) || 'No se pudo completar el registro.'));\n            btnFinalizar.disabled = false;\n            btnFinalizar.innerText = 'Completar y Finalizar Registro';\n          }\n        } catch (e) {\n          alert('Error de conexi\u00f3n al procesar la solicitud.');\n          btnFinalizar.disabled = false;\n          btnFinalizar.innerText = 'Completar y Finalizar Registro';\n        }\n      }\n    <\/script>\n    \n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","inspiro_hide_title":false,"footnotes":""},"class_list":["post-889","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/pages\/889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/comments?post=889"}],"version-history":[{"count":5,"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/pages\/889\/revisions"}],"predecessor-version":[{"id":896,"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/pages\/889\/revisions\/896"}],"wp:attachment":[{"href":"https:\/\/eventosdi.unet.edu.ve\/cii2026\/wp-json\/wp\/v2\/media?parent=889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}