{"id":318,"date":"2025-12-15T16:03:59","date_gmt":"2025-12-15T22:03:59","guid":{"rendered":"https:\/\/campuscosvic.com\/sede2\/?page_id=318"},"modified":"2025-12-15T16:04:00","modified_gmt":"2025-12-15T22:04:00","slug":"equipo-de-ventas","status":"publish","type":"page","link":"https:\/\/campuscosvic.com\/sede2\/equipo-de-ventas\/","title":{"rendered":"EQUIPO DE VENTAS"},"content":{"rendered":"    <style>\r\n        .colmena-vendor-wrap { font-family: sans-serif; box-sizing: border-box; }\r\n        .colmena-vendor-wrap * { box-sizing: border-box; }\r\n        .cv-input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; margin-top: 5px; }\r\n        .cv-label { font-weight: bold; font-size: 13px; color: #333; display: block; }\r\n        .cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }\r\n        .cv-section-title { border-bottom: 2px solid #eee; padding-bottom: 5px; margin-bottom: 15px; margin-top: 25px; color: #2271b1; font-size: 16px; font-weight: 700; text-transform: uppercase; }\r\n        .cv-media-box { border: 2px dashed #ccc; padding: 15px; background: #f9f9f9; border-radius: 6px; text-align: center; margin-bottom: 20px; }\r\n        .cv-btn-camera { background: #444; color: #fff; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 13px; margin-top:5px; display:inline-block;}\r\n        .cv-btn-camera:hover { background: #222; }\r\n        .cv-video-preview { width: 100%; max-width: 320px; background: #000; display: none; margin: 10px auto; border-radius: 4px; }\r\n        .cv-canvas-snap { display: none; margin: 10px auto; max-width: 100%; border: 1px solid #2271b1; border-radius: 4px; }\r\n        .cv-hidden-input { display: none; }\r\n        #sig-canvas { border: 2px solid #2271b1; border-radius: 4px; cursor: crosshair; background: #fff; width: 100%; height: 150px; touch-action: none; }\r\n        .cv-btn-submit { width: 100%; padding: 15px 20px; font-size: 16px; font-weight: bold; cursor: pointer; background: #2271b1; color: white; border: none; border-radius: 6px; transition: 0.3s; display: flex; justify-content: center; align-items: center; margin-top: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }\r\n        .cv-btn-submit:hover { background: #135e96; transform: translateY(-2px); }\r\n        .cv-footer { margin-top: 30px; padding-top: 15px; border-top: 1px solid #eee; text-align: center; font-size: 10px; color: #888; white-space: pre-wrap; }\r\n        @media (max-width: 600px) { .cv-grid { grid-template-columns: 1fr; } }\r\n    <\/style>\r\n    <div class=\"colmena-vendor-wrap\" style=\"max-width:650px; margin:20px auto; padding:30px; border:1px solid #ddd; border-radius:10px; background:#ffffff; box-shadow: 0 5px 15px rgba(0,0,0,0.08);\">\r\n        <h2 style=\"text-align:center; color:#2271b1; margin-bottom:20px; margin-top:0;\">Inscripci\u00f3n de Agente de Ventas<\/h2>\r\n                <form method=\"post\" enctype=\"multipart\/form-data\" id=\"vendorForm\">\r\n            <input type=\"hidden\" id=\"vendor_nonce\" name=\"vendor_nonce\" value=\"2b16affe24\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/sede2\/wp-json\/wp\/v2\/pages\/318\" \/>            <input type=\"hidden\" name=\"colmena_new_vendor\" value=\"1\">\r\n            <div class=\"cv-section-title\">\ud83d\udc64 Datos Personales<\/div>\r\n            <div style=\"margin-bottom:15px;\"><label class=\"cv-label\">Nombre Completo *<\/label><input type=\"text\" name=\"v_nombre\" class=\"cv-input\" required><\/div>\r\n            <div class=\"cv-grid\">\r\n                <div><label class=\"cv-label\">Correo Electr\u00f3nico *<\/label><input type=\"email\" name=\"v_email\" class=\"cv-input\" required><\/div>\r\n                <div><label class=\"cv-label\">Tel\u00e9fono Contacto *<\/label><input type=\"text\" name=\"v_telefono\" class=\"cv-input\" required><\/div>\r\n            <\/div>\r\n            <div class=\"cv-grid\">\r\n                <div><label class=\"cv-label\">Edad<\/label><input type=\"number\" name=\"v_edad\" class=\"cv-input\"><\/div>\r\n                <div><label class=\"cv-label\">Provincia \/ Sede *<\/label>\r\n                    <select name=\"v_zona\" class=\"cv-input\" required>\r\n                        <option value=\"\">-- Seleccione --<\/option><option value=\"San Jos\u00e9\">San Jos\u00e9<\/option><option value=\"Alajuela\">Alajuela<\/option><option value=\"Cartago\">Cartago<\/option><option value=\"Heredia\">Heredia<\/option><option value=\"Guanacaste\">Guanacaste<\/option><option value=\"Puntarenas\">Puntarenas<\/option><option value=\"Lim\u00f3n\">Lim\u00f3n<\/option>\r\n                    <\/select>\r\n                <\/div>\r\n            <\/div>\r\n            <div style=\"margin-bottom:15px;\"><label class=\"cv-label\">Direcci\u00f3n F\u00edsica Exacta<\/label><textarea name=\"v_direccion\" class=\"cv-input\" style=\"height:70px;\"><\/textarea><\/div>\r\n            <div class=\"cv-section-title\">\ud83d\udcf7 Identificaci\u00f3n y Perfil<\/div>\r\n            <div class=\"cv-media-box\"><label class=\"cv-label\" style=\"margin-bottom:10px;\">Foto de Perfil<\/label><div id=\"profile-container\"><input type=\"file\" name=\"v_foto\" accept=\"image\/*\" id=\"v_foto_file\"><br><span style=\"font-size:11px; color:#888;\">- O toma una foto ahora -<\/span><br><button type=\"button\" class=\"cv-btn-camera\" onclick=\"startCamera('profile')\">\ud83d\udcf7 Activar C\u00e1mara<\/button><video id=\"video-profile\" class=\"cv-video-preview\" autoplay playsinline><\/video><canvas id=\"canvas-profile\" class=\"cv-canvas-snap\"><\/canvas><input type=\"hidden\" name=\"v_foto_base64\" id=\"v_foto_base64\"><button type=\"button\" id=\"snap-profile\" class=\"button\" style=\"display:none; margin-top:5px;\">Capturar Foto<\/button><\/div><\/div>\r\n            <div class=\"cv-media-box\"><label class=\"cv-label\" style=\"margin-bottom:10px;\">C\u00e9dula de Identidad (Frente) *<\/label><div id=\"id-container\"><input type=\"file\" name=\"v_cedula\" accept=\"image\/*\" id=\"v_cedula_file\"><br><span style=\"font-size:11px; color:#888;\">- O toma una foto ahora -<\/span><br><button type=\"button\" class=\"cv-btn-camera\" onclick=\"startCamera('id')\">\ud83d\udcf7 Activar C\u00e1mara<\/button><video id=\"video-id\" class=\"cv-video-preview\" autoplay playsinline><\/video><canvas id=\"canvas-id\" class=\"cv-canvas-snap\"><\/canvas><input type=\"hidden\" name=\"v_cedula_base64\" id=\"v_cedula_base64\"><button type=\"button\" id=\"snap-id\" class=\"button\" style=\"display:none; margin-top:5px;\">Capturar C\u00e9dula<\/button><\/div><\/div>\r\n            <div class=\"cv-section-title\">\ud83d\udcb3 Informaci\u00f3n Financiera<\/div>\r\n            <div style=\"margin-bottom:15px;\"><label class=\"cv-label\">Cuenta IBAN *<\/label><input type=\"text\" name=\"v_cuenta_iban\" class=\"cv-input\" placeholder=\"CR...\" required style=\"background:#f9fcf9;\"><\/div>\r\n            <div style=\"margin-bottom:15px;\"><label class=\"cv-label\">SINPE M\u00f3vil *<\/label><input type=\"text\" name=\"v_sinpe\" class=\"cv-input\" placeholder=\"8888-8888\" required style=\"background:#f9fcf9;\"><\/div>\r\n            <div class=\"cv-section-title\">\ud83d\udd10 Firma y Acceso<\/div>\r\n            <div style=\"margin-bottom:15px;\"><label class=\"cv-label\">Contrase\u00f1a de Acceso *<\/label><input type=\"password\" name=\"v_pass\" class=\"cv-input\" required><\/div>\r\n            <div class=\"cv-media-box\" style=\"text-align:left;\"><label class=\"cv-label\" style=\"margin-bottom:5px;\">Firma Digital (Dibuja aqu\u00ed) *<\/label><canvas id=\"sig-canvas\"><\/canvas><input type=\"hidden\" name=\"v_firma_base64\" id=\"v_firma_base64\"><button type=\"button\" class=\"button button-small\" onclick=\"clearSignature()\" style=\"margin-top:5px;\">Borrar Firma<\/button><\/div>\r\n            <button type=\"button\" onclick=\"submitVendorForm()\" class=\"cv-btn-submit\">\ud83d\ude80&nbsp;&nbsp;Completar Registro<\/button>\r\n            <div class=\"cv-footer\">DISE\u00d1O          By LUIS PORRAS V              (506) 6325-3509\tWWW.SOSPURAVIDA.COM SOS CAMPUS\u00ae<\/div>\r\n        <\/form>\r\n    <\/div>\r\n    <script>\r\n        function startCamera(type) {\r\n            const video = document.getElementById('video-' + type); const btnSnap = document.getElementById('snap-' + type); const canvas = document.getElementById('canvas-' + type); const inputBase64 = document.getElementById(type === 'profile' ? 'v_foto_base64' : 'v_cedula_base64');\r\n            navigator.mediaDevices.getUserMedia({ video: { facingMode: \"environment\" } }).then(function(stream) {\r\n                video.srcObject = stream; video.style.display = 'block'; btnSnap.style.display = 'inline-block'; canvas.style.display = 'none';\r\n                btnSnap.onclick = function() { canvas.width = video.videoWidth; canvas.height = video.videoHeight; canvas.getContext('2d').drawImage(video, 0, 0); inputBase64.value = canvas.toDataURL('image\/jpeg'); video.style.display = 'none'; canvas.style.display = 'block'; stream.getTracks().forEach(track => track.stop()); btnSnap.style.display = 'none'; };\r\n            }).catch(function(err) { alert(\"No se pudo acceder a la c\u00e1mara: \" + err); });\r\n        }\r\n        const canvas = document.getElementById('sig-canvas'); const ctx = canvas.getContext('2d'); let drawing = false;\r\n        function resizeCanvas() { const ratio = Math.max(window.devicePixelRatio || 1, 1); canvas.width = canvas.offsetWidth * ratio; canvas.height = canvas.offsetHeight * ratio; ctx.scale(ratio, ratio); }\r\n        window.onresize = resizeCanvas; resizeCanvas();\r\n        function getPos(e) { const rect = canvas.getBoundingClientRect(); const x = (e.clientX || e.touches[0].clientX) - rect.left; const y = (e.clientY || e.touches[0].clientY) - rect.top; return { x, y }; }\r\n        function startDraw(e) { drawing = true; const pos = getPos(e); ctx.beginPath(); ctx.moveTo(pos.x, pos.y); e.preventDefault(); }\r\n        function moveDraw(e) { if(!drawing) return; const pos = getPos(e); ctx.lineTo(pos.x, pos.y); ctx.stroke(); e.preventDefault(); }\r\n        function endDraw(e) { drawing = false; e.preventDefault(); }\r\n        canvas.addEventListener('mousedown', startDraw); canvas.addEventListener('mousemove', moveDraw); canvas.addEventListener('mouseup', endDraw);\r\n        canvas.addEventListener('touchstart', startDraw); canvas.addEventListener('touchmove', moveDraw); canvas.addEventListener('touchend', endDraw);\r\n        function clearSignature() { ctx.clearRect(0, 0, canvas.width, canvas.height); document.getElementById('v_firma_base64').value = ''; }\r\n        function submitVendorForm() { const sigData = canvas.toDataURL('image\/png'); if(sigData.length > 500) { document.getElementById('v_firma_base64').value = sigData; } document.getElementById('vendorForm').submit(); }\r\n    <\/script>\r\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":{"footnotes":""},"class_list":["post-318","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/pages\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":1,"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/pages\/318\/revisions"}],"predecessor-version":[{"id":320,"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/pages\/318\/revisions\/320"}],"wp:attachment":[{"href":"https:\/\/campuscosvic.com\/sede2\/wp-json\/wp\/v2\/media?parent=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}