// 1. Registrar los íconos SVG
// * Los iconos que comienzan con "_" aun estan pendientes de integrarse
const icons = {
  // Branded
  banregio: `<svg height="42" viewBox="0 0 122 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.326172 23.4509V0.480469H4.70844V8.67866C5.44529 7.47986 7.22922 6.43575 9.67243 6.43575C14.4813 6.43575 17.2735 10.1868 17.2735 15.098C17.2735 20.1252 14.2098 23.8762 9.51731 23.8762C7.22922 23.8762 5.52285 22.8708 4.63088 21.44V23.4509H0.326172ZM8.74168 10.4188C6.49238 10.4188 4.63088 12.0817 4.63088 15.098C4.63088 18.1143 6.49238 19.8158 8.74168 19.8158C11.0298 19.8158 12.8137 18.1143 12.8137 15.098C12.8137 12.0817 11.0298 10.4188 8.74168 10.4188Z" fill="white"/><path d="M23.3622 13.8605L27.3954 13.2418C28.3262 13.1258 28.6364 12.6231 28.6364 12.043C28.6364 10.8442 27.7445 9.87745 25.8442 9.87745C23.9051 9.87745 22.8192 11.1149 22.7029 12.5844L18.7472 11.7336C19.0187 9.1427 21.3843 6.28107 25.8054 6.28107C31.0021 6.28107 32.9411 9.25872 32.9411 12.5844V20.7439C32.9411 21.6333 33.0575 22.7935 33.135 23.3735H29.063C28.9467 22.9481 28.9079 22.02 28.9079 21.3626C28.0547 22.6774 26.5035 23.8376 24.0602 23.8376C20.5699 23.8376 18.3982 21.44 18.3982 18.849C18.437 15.9101 20.6087 14.2472 23.3622 13.8605ZM28.6364 16.6835V15.9487L24.9134 16.5288C23.7888 16.6835 22.858 17.3409 22.858 18.617C22.858 19.5838 23.5561 20.5506 24.991 20.5506C26.8913 20.5506 28.6364 19.6225 28.6364 16.6835Z" fill="white"/><path d="M39.34 23.4895H34.8802V6.5131H39.1849V8.87201C40.1932 7.13183 42.171 6.35842 43.9162 6.35842C47.9882 6.35842 49.8497 9.29739 49.8497 12.9711V23.5282H45.3899V13.7445C45.3899 11.8883 44.4979 10.4188 42.365 10.4188C40.4259 10.4188 39.3012 11.9657 39.3012 13.8992V23.4895H39.34Z" fill="white"/><path d="M61.7555 11.3083C61.2514 11.1922 60.8248 11.1536 60.437 11.1536C58.1489 11.1536 56.2098 12.275 56.2098 15.8714V23.5282H51.75V6.55176H56.0547V9.18137C57.063 6.97714 59.3123 6.55176 60.7472 6.55176C61.0963 6.55176 61.4453 6.59043 61.7943 6.6291V11.3083H61.7555Z" fill="white"/><path d="M78.1212 18.501C77.268 21.324 74.6697 23.6829 70.6364 23.6829C66.1378 23.6829 62.1433 20.4345 62.1433 14.9046C62.1433 9.68409 66.0215 6.28107 70.2486 6.28107C75.3289 6.28107 78.3539 9.52941 78.3539 14.7886C78.3539 15.4074 78.2763 16.1034 78.2763 16.1421H66.5256C66.642 18.3077 68.4647 19.8932 70.6752 19.8932C72.7306 19.8932 73.894 18.849 74.437 17.3796L78.1212 18.501ZM73.9716 13.1258C73.894 11.5016 72.8469 9.87745 70.2874 9.87745C67.9993 9.87745 66.7195 11.6176 66.6032 13.1258H73.9716Z" fill="white"/><path d="M83.6281 23.0255C83.9384 24.843 85.3733 26.1191 87.4674 26.1191C90.2597 26.1191 91.8497 24.727 91.8497 21.556V20.3572C91.1904 21.44 89.6392 22.4454 87.2735 22.4454C82.8913 22.4454 79.6336 19.0811 79.6336 14.4793C79.6336 10.1481 82.7749 6.47442 87.2735 6.47442C89.8719 6.47442 91.3843 7.59587 91.9661 8.71732V6.47442H96.232V21.4013C96.232 25.8871 93.7888 29.9862 87.6226 29.9862C83.124 29.9862 80.099 27.2019 79.6336 24.0696L83.6281 23.0255ZM91.9273 14.4793C91.9273 11.9657 90.1821 10.3415 88.0492 10.3415C85.8386 10.3415 84.0935 11.927 84.0935 14.4793C84.0935 17.0315 85.7223 18.6557 88.0492 18.6557C90.3372 18.6557 91.9273 17.0315 91.9273 14.4793Z" fill="white"/><path d="M98.3262 6.51309H102.786V23.5669H98.3262V6.51309Z" fill="white"/><path d="M121.634 14.982C121.634 20.0092 117.911 23.6829 113.024 23.6829C108.099 23.6829 104.415 20.0092 104.415 14.982C104.415 9.91612 108.138 6.28107 113.024 6.28107C117.911 6.28107 121.634 9.91612 121.634 14.982ZM117.174 14.982C117.174 11.8883 115.157 10.3028 112.985 10.3028C110.814 10.3028 108.797 11.8883 108.797 14.982C108.797 18.037 110.814 19.6611 112.985 19.6611C115.196 19.6611 117.174 18.0756 117.174 14.982Z" fill="white"/></svg>`,
  banregio_box: `<svg height="60" viewBox="0 0 228 72" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_6242_23942)"><path d="M218 0H10C4.47715 0 0 4.47715 0 10V62C0 67.5229 4.47715 72 10 72H218C223.523 72 228 67.5229 228 62V10C228 4.47715 223.523 0 218 0Z" fill="#FF4D00"/><mask id="mask0_6242_23942" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="47" y="23" width="134" height="32"><path d="M181 23.3555H47V54.9705H181V23.3555Z" fill="white"/></mask><g mask="url(#mask0_6242_23942)"><path d="M57.228 29.0305C56.1898 28.9647 55.1513 29.1535 54.2027 29.5805C53.2541 30.0075 52.4241 30.6597 51.785 31.4805V23.3555H47V47.4835H51.712V45.2885C52.3013 46.1471 53.1011 46.84 54.0348 47.3011C54.9686 47.7621 56.005 47.9757 57.045 47.9215C62.162 47.9215 65.522 43.8635 65.522 38.4215C65.522 33.0905 62.493 29.0315 57.229 29.0315M56.208 43.5745C53.759 43.5745 51.708 41.7095 51.708 38.4565C51.708 35.1695 53.756 33.3805 56.208 33.3805C58.692 33.3805 60.666 35.1695 60.666 38.4565C60.666 41.7435 58.692 43.5745 56.208 43.5745Z" fill="#F4F5EB"/><path d="M82.6908 35.789C82.6908 32.171 80.5718 28.957 74.8738 28.957C70.0548 28.957 67.4618 32.065 67.1658 34.875L71.4748 35.789C71.5462 34.9472 71.9476 34.1677 72.5915 33.6207C73.2354 33.0736 74.0694 32.8034 74.9118 32.869C76.9598 32.869 77.9418 33.927 77.9418 35.206C77.9418 35.826 77.6158 36.336 76.5918 36.48L72.1718 37.141C69.1718 37.582 66.8008 39.372 66.8008 42.585C66.8008 45.399 69.1378 47.99 72.9748 47.99C74.0135 48.042 75.0479 47.8236 75.9768 47.3562C76.9058 46.8887 77.6976 46.1881 78.2748 45.323C78.2734 46.0441 78.3333 46.7641 78.4538 47.475H82.9148C82.7731 46.5325 82.6986 45.5811 82.6918 44.628L82.6908 35.789ZM77.9418 40.21C77.9418 43.384 76.0418 44.373 73.9958 44.373C73.7024 44.4051 73.4055 44.3752 73.1243 44.2852C72.8432 44.1953 72.5841 44.0473 72.3638 43.8508C72.1435 43.6544 71.9669 43.4138 71.8454 43.1448C71.724 42.8758 71.6604 42.5842 71.6588 42.289C71.6616 41.6948 71.8967 41.1252 72.314 40.7021C72.7313 40.279 73.2976 40.036 73.8918 40.025L77.9418 39.404V40.21Z" fill="#F4F5EB"/><path d="M95.2955 29.0344C94.2718 29.0012 93.2569 29.2321 92.3484 29.705C91.4399 30.1779 90.6685 30.8768 90.1085 31.7344V29.5084H85.3965V47.4854H90.2545V37.1464C90.2545 35.0604 91.4955 33.4174 93.6155 33.4174C95.9565 33.4174 96.9435 34.9884 96.9435 36.9964V47.4854H101.801V36.1584C101.801 32.2094 99.7515 29.0344 95.2955 29.0344Z" fill="#F4F5EB"/><path d="M108.523 32.1764V29.5094H103.807V47.4854H108.67V39.2634C108.67 35.3904 110.826 34.1824 113.31 34.1824C113.8 34.1831 114.289 34.2333 114.769 34.3324V29.4324C114.394 29.3885 114.017 29.3642 113.64 29.3594C112.101 29.3594 109.619 29.7964 108.523 32.1734" fill="#F4F5EB"/><path d="M124.047 28.957C119.44 28.957 115.205 32.685 115.205 38.42C115.205 44.488 119.553 48.02 124.485 48.02C128.905 48.02 131.75 45.429 132.67 42.326L128.612 41.116C128.34 41.9676 127.787 42.702 127.045 43.1998C126.302 43.6976 125.413 43.9296 124.522 43.858C123.384 43.9017 122.273 43.5001 121.426 42.7384C120.578 41.9766 120.061 40.9147 119.984 39.778H132.851C132.851 39.704 132.923 38.972 132.923 38.278C132.923 32.505 129.594 28.96 124.044 28.96M120.097 36.45C120.186 35.4563 120.652 34.5345 121.401 33.8749C122.149 33.2152 123.122 32.868 124.119 32.905C126.891 32.905 128.065 34.661 128.136 36.45H120.097Z" fill="#F4F5EB"/><path d="M147.503 31.6306C146.876 30.4246 145.234 29.1836 142.386 29.1836C137.458 29.1836 134.018 33.2026 134.018 37.9486C134.018 42.9916 137.601 46.6786 142.386 46.6786C143.345 46.7478 144.307 46.5733 145.181 46.1711C146.055 45.769 146.814 45.1524 147.386 44.3786V45.6936C147.386 49.1626 145.673 50.7016 142.6 50.7016C141.603 50.756 140.621 50.4383 139.845 49.8101C139.069 49.1819 138.554 48.288 138.4 47.3016L134.016 48.4666C134.529 51.9036 137.816 54.9726 142.747 54.9726C149.509 54.9726 152.175 50.4826 152.175 45.5446V29.5076H147.501L147.503 31.6306ZM143.226 42.5156C140.705 42.5156 138.917 40.7606 138.917 37.9496C138.883 37.3677 138.969 36.7852 139.169 36.2377C139.369 35.6902 139.678 35.1893 140.078 34.7655C140.478 34.3418 140.961 34.0043 141.496 33.7736C142.031 33.5429 142.608 33.4239 143.191 33.4239C143.773 33.4239 144.35 33.5429 144.885 33.7736C145.42 34.0043 145.903 34.3418 146.303 34.7655C146.703 35.1893 147.013 35.6902 147.212 36.2377C147.412 36.7852 147.498 37.3677 147.465 37.9496C147.465 40.7266 145.71 42.5156 143.226 42.5156Z" fill="#F4F5EB"/><path d="M159.778 29.5078H154.92V47.4838H159.778V29.5078Z" fill="#F4F5EB"/><path d="M171.575 28.9599C170.319 28.9288 169.07 29.1549 167.905 29.6244C166.74 30.0939 165.684 30.7968 164.801 31.6899C163.918 32.583 163.227 33.6473 162.77 34.8174C162.314 35.9875 162.101 37.2387 162.147 38.4939C162.134 39.7399 162.368 40.9762 162.836 42.1311C163.304 43.2861 163.996 44.3367 164.873 45.2224C165.75 46.1081 166.793 46.8112 167.943 47.291C169.093 47.7709 170.327 48.0179 171.573 48.0179C172.819 48.0179 174.053 47.7709 175.203 47.291C176.353 46.8112 177.397 46.1081 178.273 45.2224C179.15 44.3367 179.842 43.2861 180.31 42.1311C180.778 40.9762 181.012 39.7399 181 38.4939C181.045 37.2388 180.833 35.9879 180.376 34.8179C179.92 33.6479 179.229 32.5837 178.346 31.6906C177.463 30.7976 176.407 30.0946 175.242 29.625C174.077 29.1554 172.83 28.929 171.575 28.9599ZM171.574 43.6079C169.199 43.6079 167.009 41.8529 167.009 38.4939C167.009 35.0939 169.2 33.3789 171.574 33.3789C173.948 33.3789 176.143 35.0949 176.143 38.4939C176.143 41.8929 173.953 43.6079 171.574 43.6079Z" fill="#F4F5EB"/></g></g><defs><clipPath id="clip0_6242_23942"><rect width="228" height="72" fill="white"/></clipPath></defs></svg>`,  
  _banregio_icon: `<svg width="20" height="20" viewBox="0 0 8 14" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M2.03289 13.6654H4.83994V8.04438H7.36913L7.64696 5.25117H4.83994V3.8408C4.83994 3.45324 5.15412 3.13905 5.54169 3.13905H7.64696V0.332031H5.54169C3.6038 0.332031 2.03289 1.90296 2.03289 3.8408V5.25117H0.62938L0.351562 8.04438H2.03289V13.6654Z" fill="currentColor"/></svg>`,
  banregio_icon_box: `<svg height="60" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="72" height="72" rx="10" fill="#FF4D00"/><path d="M19.1886 34.0324C22.0076 35.3147 25.2438 34.0578 26.4702 31.361C27.7524 28.542 26.5821 25.2752 23.7682 23.9878C21.0103 22.731 17.713 23.9624 16.4307 26.7814C15.1993 29.4782 16.4307 32.7755 19.1886 34.0324Z" fill="#F4F5EB"/><path d="M48.1262 37.5641C44.9103 44.6166 36.5551 47.7359 29.5025 44.52C27.1771 43.4565 25.2893 41.8282 23.9053 39.8793L15.5195 42.851C17.7991 46.9268 21.3407 50.336 25.905 52.4172C37.3082 57.6176 50.823 52.575 56.0234 41.1667C57.9875 36.8619 58.4811 32.2518 57.7331 27.9062L49.3627 30.8677C49.5051 33.0964 49.1184 35.3913 48.1262 37.5641Z" fill="#F4F5EB"/></svg>`,
  banregio_realmente_personal: `<svg id="banregio_realmente_personal" data-name="Banregio - Realmente Personal" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="511.563" height="44.47" viewBox="0 0 511.563 44.47"><defs>  <clipPath id="clip-path">    <rect id="Rectángulo_130" data-name="Rectángulo 130" width="511.563" height="44.47" fill="none"/>  </clipPath></defs><g id="Grupo_10" data-name="Grupo 10" clip-path="url(#clip-path)">  <path id="Trazado_160" data-name="Trazado 160" d="M130.986,44.806H4.261A4.267,4.267,0,0,1,0,40.533V4.773A4.269,4.269,0,0,1,4.261.5H144.214a4.271,4.271,0,0,1,4,5.759L134.985,42.015a4.259,4.259,0,0,1-4,2.787Z" transform="translate(0 -0.336)" fill="#ff4d00"/>  <path id="Trazado_161" data-name="Trazado 161" d="M449.73.5H592.843A4.267,4.267,0,0,1,597.1,4.773V40.529a4.267,4.267,0,0,1-4.261,4.273H436.5a4.271,4.271,0,0,1-4-5.759L445.731,3.287a4.259,4.259,0,0,1,4-2.787Z" transform="translate(-290.57 -0.336)" fill="#465a58"/>  <path id="Trazado_162" data-name="Trazado 162" d="M506.269,54.992a5.941,5.941,0,0,0-1.206-.122c-2.052,0-3.831,1-3.831,4.2v6.8H497.22V51h3.89v2.209a4.408,4.408,0,0,1,4.221-2.327,9.307,9.307,0,0,1,.934.059v4.053Z" transform="translate(-334.255 -34.156)" fill="#f4f5eb"/>  <path id="Trazado_163" data-name="Trazado 163" d="M540.185,60.931a6.684,6.684,0,0,1-6.755,4.717,7.528,7.528,0,0,1-7.66-7.955,7.459,7.459,0,0,1,7.3-7.833c4.585,0,7.328,2.935,7.328,7.711,0,.575-.059,1.18-.059,1.239H529.723a3.621,3.621,0,0,0,3.74,3.389,3.279,3.279,0,0,0,3.379-2.268l3.346,1Zm-3.74-4.868a2.988,2.988,0,0,0-3.317-2.935,3.211,3.211,0,0,0-3.317,2.935Z" transform="translate(-353.448 -33.471)" fill="#f4f5eb"/>  <path id="Trazado_164" data-name="Trazado 164" d="M577.538,56.628l3.648-.546c.846-.122,1.114-.546,1.114-1.058,0-1.058-.813-1.936-2.5-1.936a2.673,2.673,0,0,0-2.835,2.419l-3.559-.756c.243-2.327,2.383-4.9,6.362-4.9,4.7,0,6.453,2.662,6.453,5.657v7.32a17.051,17.051,0,0,0,.18,2.36H582.72a10,10,0,0,1-.151-1.785,4.951,4.951,0,0,1-4.372,2.209c-3.166,0-5.1-2.146-5.1-4.477,0-2.663,1.96-4.145,4.434-4.507Zm4.766,2.541V58.5l-3.346.513a1.875,1.875,0,0,0-1.839,1.874,1.741,1.741,0,0,0,1.931,1.722c1.688,0,3.258-.815,3.258-3.448Z" transform="translate(-385.265 -33.464)" fill="#f4f5eb"/>  <path id="Trazado_165" data-name="Trazado 165" d="M620.82,51.795V29.9h4.012V51.8H620.82Z" transform="translate(-417.345 -20.072)" fill="#f4f5eb"/>  <path id="Trazado_166" data-name="Trazado 166" d="M641.1,65.254V50.374h3.828v1.814a5.09,5.09,0,0,1,4.343-2.238,4.59,4.59,0,0,1,4.4,2.478,5.149,5.149,0,0,1,4.7-2.478c2.743,0,5.369,1.663,5.369,5.657v9.647h-3.89V56.422c0-1.6-.783-2.814-2.622-2.814a2.727,2.727,0,0,0-2.743,2.932v8.711h-3.982V56.419a2.493,2.493,0,0,0-2.622-2.814,2.686,2.686,0,0,0-2.773,2.932v8.711H641.1Z" transform="translate(-430.978 -33.531)" fill="#f4f5eb"/>  <path id="Trazado_167" data-name="Trazado 167" d="M729.595,60.931a6.685,6.685,0,0,1-6.755,4.717,7.528,7.528,0,0,1-7.66-7.955,7.46,7.46,0,0,1,7.3-7.833c4.585,0,7.329,2.935,7.329,7.711,0,.575-.059,1.18-.059,1.239H719.133a3.621,3.621,0,0,0,3.74,3.389,3.279,3.279,0,0,0,3.379-2.268l3.346,1Zm-3.74-4.868a2.988,2.988,0,0,0-3.317-2.935,3.211,3.211,0,0,0-3.317,2.935Z" transform="translate(-480.778 -33.471)" fill="#f4f5eb"/>  <path id="Trazado_168" data-name="Trazado 168" d="M769.312,65.315H765.3V50.434h3.891v1.844a4.928,4.928,0,0,1,4.284-2.238c3.677,0,5.369,2.63,5.369,5.9v9.375h-4.012V56.631c0-1.663-.813-2.965-2.743-2.965a2.8,2.8,0,0,0-2.773,3.083v8.559Z" transform="translate(-514.471 -33.592)" fill="#f4f5eb"/>  <path id="Trazado_169" data-name="Trazado 169" d="M815.923,42.144h2.986v3.57h-2.986v6.229c0,1.3.6,1.722,1.75,1.722a5.655,5.655,0,0,0,1.235-.122V56.87a5.933,5.933,0,0,1-2.261.362c-2.894,0-4.7-1.722-4.7-4.6V45.707H809.26v-3.57h.754a2.141,2.141,0,0,0,2.291-2.36V37.69h3.618v4.454Z" transform="translate(-544.023 -25.301)" fill="#f4f5eb"/>  <path id="Trazado_170" data-name="Trazado 170" d="M854.954,60.931a6.684,6.684,0,0,1-6.755,4.717,7.528,7.528,0,0,1-7.66-7.955,7.46,7.46,0,0,1,7.3-7.833c4.585,0,7.329,2.935,7.329,7.711,0,.575-.059,1.18-.059,1.239H844.493a3.621,3.621,0,0,0,3.74,3.389,3.279,3.279,0,0,0,3.379-2.268l3.346,1Zm-3.74-4.868a2.988,2.988,0,0,0-3.317-2.935,3.211,3.211,0,0,0-3.317,2.935Z" transform="translate(-565.051 -33.471)" fill="#f4f5eb"/>  <path id="Trazado_171" data-name="Trazado 171" d="M50.64,54.667V34.1h3.9v7.333a5.179,5.179,0,0,1,4.434-2.025c4.287,0,6.758,3.353,6.758,7.764s-2.74,7.856-6.906,7.856a4.934,4.934,0,0,1-4.346-2.176v1.811H50.64ZM58.142,43c-1.993,0-3.661,1.479-3.661,4.2s1.668,4.23,3.661,4.23,3.632-1.512,3.632-4.23S60.168,43,58.142,43" transform="translate(-34.043 -22.891)" fill="#f4f5eb"/>  <path id="Trazado_172" data-name="Trazado 172" d="M104.229,56.675l3.6-.546c.833-.122,1.1-.546,1.1-1.058,0-1.058-.8-1.936-2.471-1.936a2.653,2.653,0,0,0-2.8,2.419l-3.514-.756c.239-2.327,2.35-4.9,6.28-4.9,4.644,0,6.368,2.659,6.368,5.654v7.317a16.486,16.486,0,0,0,.18,2.357h-3.632a10.338,10.338,0,0,1-.147-1.785,4.872,4.872,0,0,1-4.316,2.206c-3.127,0-5.031-2.146-5.031-4.474,0-2.659,1.934-4.142,4.376-4.507Zm4.7,2.541v-.664l-3.3.513a1.864,1.864,0,0,0-1.816,1.874,1.729,1.729,0,0,0,1.9,1.722c1.668,0,3.215-.815,3.215-3.448Z" transform="translate(-67.124 -33.498)" fill="#f4f5eb"/>  <path id="Trazado_173" data-name="Trazado 173" d="M148.449,65.34H144.49V50.118h3.841v2.1a4.83,4.83,0,0,1,4.228-2.255c3.631,0,5.3,2.649,5.3,5.94v9.44H153.9V56.6c0-1.676-.8-2.985-2.707-2.985-1.727,0-2.74,1.371-2.74,3.106V65.34Z" transform="translate(-97.133 -33.538)" fill="#f4f5eb"/>  <path id="Trazado_174" data-name="Trazado 174" d="M199.2,54.827a5.768,5.768,0,0,0-1.19-.122c-2.026,0-3.779,1.006-3.779,4.234v6.853H190.27V50.57h3.841v2.344a4.329,4.329,0,0,1,4.166-2.344,8.229,8.229,0,0,1,.924.062v4.2Z" transform="translate(-127.909 -33.947)" fill="#f4f5eb"/>  <path id="Trazado_175" data-name="Trazado 175" d="M232.828,60.833a6.6,6.6,0,0,1-6.667,4.658,7.429,7.429,0,0,1-7.561-7.849,7.363,7.363,0,0,1,7.2-7.731c4.523,0,7.233,2.9,7.233,7.613,0,.569-.059,1.164-.059,1.223H222.5a3.571,3.571,0,0,0,3.69,3.343,3.235,3.235,0,0,0,3.333-2.238l3.3.986Zm-3.691-4.806a2.949,2.949,0,0,0-3.274-2.9,3.17,3.17,0,0,0-3.274,2.9Z" transform="translate(-146.953 -33.504)" fill="#f4f5eb"/>  <path id="Trazado_176" data-name="Trazado 176" d="M269.666,65.248a3.282,3.282,0,0,0,3.422,2.778c2.5,0,3.9-1.252,3.9-4.089V62.862a4.645,4.645,0,0,1-4.077,1.88,6.789,6.789,0,0,1-6.817-7.136,6.884,6.884,0,0,1,6.817-7.166c2.321,0,3.661,1.016,4.166,2V50.447h3.809V63.812c0,4.03-2.173,7.7-7.679,7.7-4.018,0-6.7-2.508-7.116-5.315l3.573-.957Zm7.381-7.642a3.45,3.45,0,0,0-3.451-3.7,3.5,3.5,0,0,0-3.514,3.7,3.439,3.439,0,0,0,3.514,3.731,3.393,3.393,0,0,0,3.451-3.731" transform="translate(-178.878 -33.86)" fill="#f4f5eb"/>  <rect id="Rectángulo_128" data-name="Rectángulo 128" width="3.959" height="15.272" transform="translate(103.858 16.58)" fill="#f4f5eb"/>  <path id="Trazado_177" data-name="Trazado 177" d="M348.708,57.7a7.68,7.68,0,1,1-7.679-7.79,7.529,7.529,0,0,1,7.679,7.79m-3.959,0c0-2.778-1.786-4.178-3.72-4.178s-3.72,1.4-3.72,4.178,1.786,4.178,3.72,4.178,3.72-1.4,3.72-4.178" transform="translate(-224.094 -33.504)" fill="#f4f5eb"/>  <path id="Trazado_178" data-name="Trazado 178" d="M1081.265,44.3H955.851a4.267,4.267,0,0,1-4.261-4.273V4.273A4.267,4.267,0,0,1,955.851,0h138.643a4.271,4.271,0,0,1,4,5.759l-13.225,35.756a4.26,4.26,0,0,1-4,2.787Z" transform="translate(-639.704)" fill="#abbcb1"/>  <path id="Trazado_179" data-name="Trazado 179" d="M1002.223,70.828V50.2h3.891v1.814a5.175,5.175,0,0,1,4.552-2.146c4.343,0,6.847,3.326,6.847,7.744s-2.806,7.833-7,7.833a5.206,5.206,0,0,1-4.284-1.814v7.2h-4.011Zm7.66-17.359c-2.052,0-3.71,1.542-3.71,4.175s1.658,4.2,3.71,4.2,3.681-1.542,3.681-4.2-1.629-4.175-3.681-4.175" transform="translate(-673.74 -33.478)" fill="#465a58"/>  <path id="Trazado_180" data-name="Trazado 180" d="M1066,60.561a6.685,6.685,0,0,1-6.755,4.717,7.526,7.526,0,0,1-7.66-7.955,7.46,7.46,0,0,1,7.3-7.833c4.586,0,7.329,2.935,7.329,7.711,0,.575-.059,1.18-.059,1.239h-10.616a3.618,3.618,0,0,0,3.74,3.386,3.279,3.279,0,0,0,3.379-2.268l3.346,1Zm-3.74-4.868a2.988,2.988,0,0,0-3.317-2.935,3.213,3.213,0,0,0-3.317,2.935Z" transform="translate(-706.929 -33.222)" fill="#465a58"/>  <path id="Trazado_181" data-name="Trazado 181" d="M1110.766,54.622a5.942,5.942,0,0,0-1.206-.122c-2.052,0-3.828,1-3.828,4.2v6.8h-4.011V50.628h3.891v2.209a4.409,4.409,0,0,1,4.222-2.327,9.309,9.309,0,0,1,.934.059Z" transform="translate(-740.629 -33.907)" fill="#465a58"/>  <path id="Trazado_182" data-name="Trazado 182" d="M1133.688,59.926a2.469,2.469,0,0,0,2.714,2.268c1.327,0,1.96-.7,1.96-1.482,0-.664-.452-1.21-1.6-1.453l-1.96-.454c-2.864-.634-4.162-2.36-4.162-4.447,0-2.663,2.353-4.868,5.549-4.868,4.221,0,5.641,2.692,5.821,4.3l-3.346.756a2.262,2.262,0,0,0-2.442-2,1.707,1.707,0,0,0-1.9,1.482c0,.726.544,1.18,1.357,1.331l2.111.454c2.924.6,4.4,2.39,4.4,4.566,0,2.419-1.871,4.9-5.758,4.9-4.464,0-6-2.9-6.182-4.6Z" transform="translate(-759.808 -33.222)" fill="#465a58"/>  <path id="Trazado_183" data-name="Trazado 183" d="M1184.521,57.385a7.782,7.782,0,1,1-7.781-7.9,7.627,7.627,0,0,1,7.781,7.9m-4.012,0c0-2.814-1.809-4.234-3.769-4.234s-3.769,1.423-3.769,4.234,1.809,4.234,3.769,4.234,3.769-1.423,3.769-4.234" transform="translate(-785.83 -33.222)" fill="#465a58"/>  <path id="Trazado_184" data-name="Trazado 184" d="M1225.792,64.955h-4.012V50.074h3.891v1.844a4.928,4.928,0,0,1,4.284-2.238c3.677,0,5.368,2.63,5.368,5.9v9.375h-4.012V56.271c0-1.663-.813-2.965-2.743-2.965a2.8,2.8,0,0,0-2.773,3.083v8.559Z" transform="translate(-821.339 -33.35)" fill="#465a58"/>  <path id="Trazado_185" data-name="Trazado 185" d="M1272.858,56.268l3.648-.546c.846-.122,1.114-.546,1.114-1.058,0-1.058-.813-1.936-2.5-1.936a2.673,2.673,0,0,0-2.835,2.419l-3.56-.756c.243-2.327,2.383-4.9,6.362-4.9,4.7,0,6.454,2.662,6.454,5.657v7.32a17.094,17.094,0,0,0,.18,2.36h-3.677a10,10,0,0,1-.151-1.785,4.952,4.952,0,0,1-4.372,2.209c-3.166,0-5.1-2.146-5.1-4.477,0-2.662,1.96-4.145,4.434-4.507Zm4.766,2.541v-.664l-3.346.513a1.875,1.875,0,0,0-1.839,1.877,1.741,1.741,0,0,0,1.93,1.722c1.688,0,3.258-.815,3.258-3.448Z" transform="translate(-852.692 -33.222)" fill="#465a58"/>  <rect id="Rectángulo_129" data-name="Rectángulo 129" width="4.012" height="21.898" transform="translate(431.368 9.707)" fill="#465a58"/>  <path id="Trazado_186" data-name="Trazado 186" d="M1396.507,0h37.835a4.267,4.267,0,0,1,4.261,4.273V40.029a4.267,4.267,0,0,1-4.261,4.273h-51.06a4.271,4.271,0,0,1-4-5.759l13.225-35.756a4.262,4.262,0,0,1,4-2.787" transform="translate(-927.041)" fill="#ff4d00"/>  <path id="Trazado_187" data-name="Trazado 187" d="M1456.271,63.838a.5.5,0,0,1-.361-.151.512.512,0,0,1,0-.723l7.119-7.139h-20.072a.509.509,0,0,1,0-1.019h20.072l-7.119-7.139a.511.511,0,0,1,.721-.723l7.987,8.01.006.007,0,0a.483.483,0,0,1,.1.151.508.508,0,0,1,0,.391.505.505,0,0,1-.1.161l-7.987,8.011a.512.512,0,0,1-.361.151Z" transform="translate(-969.684 -31.412)" fill="#f4f5eb"/></g></svg>`,
  // Social Media
  facebook: `<svg width="20" height="20" viewBox="0 0 8 14" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M2.03289 13.6654H4.83994V8.04438H7.36913L7.64696 5.25117H4.83994V3.8408C4.83994 3.45324 5.15412 3.13905 5.54169 3.13905H7.64696V0.332031H5.54169C3.6038 0.332031 2.03289 1.90296 2.03289 3.8408V5.25117H0.62938L0.351562 8.04438H2.03289V13.6654Z" fill="currentColor"/></svg>`,
  twitter: `<svg width="20" height="20" viewBox="0 0 14 12" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M13.6673 1.93186C13.1672 2.14918 12.638 2.29236 12.0965 2.35686C12.6656 2.02363 13.0935 1.49424 13.3001 0.867973C12.7621 1.18258 12.1744 1.40333 11.5623 1.52075C11.3046 1.25062 10.9946 1.03572 10.6512 0.889125C10.3078 0.742525 9.93819 0.667283 9.56482 0.667973C8.05315 0.667973 6.82982 1.87353 6.82982 3.35964C6.82875 3.56635 6.85243 3.77245 6.90037 3.97353C5.8164 3.92271 4.75496 3.64619 3.78398 3.16166C2.813 2.67712 1.95384 1.99524 1.26148 1.15964C1.01859 1.56912 0.890132 2.03632 0.88954 2.51242C0.88954 3.44575 1.37648 4.27075 2.11176 4.75408C1.67613 4.74375 1.24943 4.62845 0.867873 4.41797V4.45131C0.867873 5.75686 1.81232 6.84297 3.06232 7.0902C2.82726 7.15286 2.58503 7.18461 2.34176 7.18464C2.16915 7.18494 1.99692 7.16819 1.8276 7.13464C2.1751 8.20408 3.18648 8.98186 4.38454 9.00408C3.41103 9.75434 2.21582 10.1598 0.986762 10.1569C0.7686 10.1565 0.550641 10.1436 0.333984 10.118C1.58431 10.9164 3.03772 11.3387 4.52121 11.3346C9.55898 11.3346 12.3112 7.23186 12.3112 3.67353C12.3112 3.55686 12.3082 3.4402 12.3026 3.32631C12.8368 2.94632 13.2989 2.47412 13.6673 1.93186Z" fill="currentColor"/></svg>`,
  twitter_x: `<svg width="20" height="20"  viewBox="0 0 512 512" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><!--!Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z" fill="currentColor"/></svg>`,
  instagram: `<svg width="20" height="20" viewBox="0 0 14 14" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.334 0.332031H3.66732C1.82637 0.332031 0.333984 1.82442 0.333984 3.66536V10.332C0.333984 12.173 1.82637 13.6654 3.66732 13.6654H10.334C12.1749 13.6654 13.6673 12.173 13.6673 10.332V3.66536C13.6673 1.82442 12.1749 0.332031 10.334 0.332031ZM10.75 2.75C11.0261 2.75 11.25 2.97386 11.25 3.25V3.25133C11.25 3.52748 11.0261 3.75133 10.75 3.75133C10.4739 3.75133 10.25 3.52748 10.25 3.25133V3.25C10.25 2.97386 10.4739 2.75 10.75 2.75ZM5 7C5 5.89543 5.89543 5 7 5C8.10457 5 9 5.89543 9 7C9 8.10457 8.10457 9 7 9C5.89543 9 5 8.10457 5 7ZM7 4C5.34315 4 4 5.34315 4 7C4 8.65685 5.34315 10 7 10C8.65685 10 10 8.65685 10 7C10 5.34315 8.65685 4 7 4Z" fill="currentColor"/></svg>`,
  linkedin: `<svg width="20" height="20" viewBox="0 0 10 11" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M2.09864 1.82719C2.0985 2.10548 1.98781 2.37233 1.79093 2.56901C1.59404 2.7657 1.32709 2.87612 1.04879 2.87598C0.770497 2.87584 0.503654 2.76515 0.306967 2.56827C0.11028 2.37139 -0.000139017 2.10443 1.31354e-07 1.82614C0.00013928 1.54784 0.110826 1.281 0.307709 1.08431C0.504593 0.887624 0.771546 0.777205 1.04984 0.777344C1.32814 0.777483 1.59498 0.888169 1.79167 1.08505C1.98836 1.28194 2.09878 1.54889 2.09864 1.82719ZM2.13012 3.653H0.0314796V10.2217H2.13012V3.653ZM5.44596 3.653H3.35782V10.2217H5.42497V6.77472C5.42497 4.85447 7.9276 4.67608 7.9276 6.77472V10.2217H10V6.06118C10 2.82404 6.29591 2.94471 5.42497 4.53443L5.44596 3.653Z" fill="currentColor"/></svg>`,
  // Utilities
  close: `<svg width="20" height="20" viewBox="0 0 29 29" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M28.7332 4.325L24.5332 0.125L14.6332 10.025L4.7332 0.125L0.533203 4.325L10.4332 14.225L0.533203 24.125L4.7332 28.325L14.6332 18.425L24.5332 28.325L28.7332 24.125L18.8332 14.225L28.7332 4.325Z" fill="currentColor"/></svg>`,
  check: `<svg width="20" height="20" viewBox="0 0 48 36" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M16.3029 35.1927L0.702914 19.5927C-0.234305 18.6555 -0.234305 17.1359 0.702914 16.1986L4.09695 12.8045C5.03416 11.8672 6.55385 11.8672 7.49107 12.8045L18 23.3133L40.5089 0.804476C41.4461 -0.132742 42.9658 -0.132742 43.903 0.804476L47.297 4.1986C48.2343 5.13582 48.2343 6.65541 47.297 7.59273L19.697 35.1928C18.7597 36.13 17.2401 36.13 16.3029 35.1927Z" fill="currentColor"/></svg>`,
  arrow: `<svg width="20" height="20" viewBox="0 0 16 13" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M15.5532 6.40479C15.5298 6.34763 15.4988 6.29379 15.4612 6.24475L15.4442 6.21472L15.4022 6.1748L10.1022 0.874756C10.0405 0.812969 9.9672 0.763933 9.88654 0.730469C9.80587 0.697005 9.71941 0.679734 9.63208 0.679688C9.4557 0.679594 9.2865 0.749616 9.16171 0.874268C9.03693 0.998919 8.96677 1.16798 8.96667 1.34436C8.96658 1.52074 9.03657 1.68991 9.16122 1.8147L13.3352 5.98474H0.781219C0.604851 5.98474 0.435686 6.05485 0.310974 6.17957C0.186262 6.30428 0.116211 6.47341 0.116211 6.64978C0.116211 6.82615 0.186262 6.99528 0.310974 7.12C0.435686 7.24471 0.604851 7.3147 0.781219 7.3147H13.3332L9.15921 11.4948C9.09667 11.5558 9.04721 11.629 9.01385 11.7098C8.9805 11.7906 8.96395 11.8773 8.96521 11.9647C8.96561 12.1408 9.0353 12.3097 9.15921 12.4348C9.28557 12.5566 9.45421 12.6246 9.6297 12.6246C9.80519 12.6246 9.97386 12.5566 10.1002 12.4348L15.3742 7.15479L15.4152 7.11475C15.4744 7.05439 15.5213 6.9831 15.5532 6.90479C15.587 6.82231 15.604 6.73391 15.6032 6.64478C15.602 6.55908 15.5851 6.47435 15.5532 6.39478V6.40479Z" fill="currentColor"/></svg>`
  // Agrega más íconos aquí  
};

// 2. Función para insertar el SVG correspondiente
function insertIcons() {
  // Buscar todos los elementos que tengan una clase que empiece con "icon icon--"
  document.querySelectorAll('[class*="icon--"]').forEach(element => {
    // Extraer todas las clases del elemento
    const classList = element.className.split(' ');
    
    // Buscar la clase que contiene "icon--" y extraer la parte que sigue al guion
    const iconClass = classList.find(cls => cls.startsWith('icon--'));
    
    if (iconClass) {
      // Obtener el nombre del icono sin el "icon--"
      const iconName = iconClass.split('icon--')[1];
      
      // Si el ícono existe en el registro, insertarlo
      if (icons[iconName]) {
        element.innerHTML = icons[iconName];
        // console.log('Icono insertado:', iconName);
      } else {
        // console.log('Icono no encontrado:', iconName);
      }
    }
  });
}

// 3. Ejecutar la función al cargar la página
document.addEventListener('DOMContentLoaded', insertIcons);


// 4. Ejecutar la función al modificar los inputs del form
function insertIconsForm() {
  // Buscar todos los elementos que tengan una clase que empiece con "icon icon--"
  document.querySelectorAll('form [class*="icon--"]').forEach(element => {
    // Extraer todas las clases del elemento
    const classList = element.className.split(' ');
    
    // Buscar la clase que contiene "icon--" y extraer la parte que sigue al guion
    const iconClass = classList.find(cls => cls.startsWith('icon--'));
      
    if (iconClass) {
      // Obtener el nombre del icono sin el "icon--"
      const iconName = iconClass.split('icon--')[1];
      
      // Si el ícono existe en el registro, insertarlo
      if (icons[iconName]) {
        element.innerHTML = icons[iconName];
        // console.log('Icono insertado:', iconName);
      } else {
        // console.log('Icono no encontrado:', iconName);
      }
    }
  });
}
document.querySelectorAll('form[id^="formulario__"] input.form-control').forEach(input => {
  input.addEventListener('keyup', insertIconsForm);
  input.addEventListener('blur', insertIconsForm);
  input.addEventListener('input', insertIconsForm);
  input.addEventListener('change', insertIconsForm);
  input.addEventListener('focus', insertIconsForm);
  input.addEventListener('paste', insertIconsForm);
});
document.querySelectorAll('form[id^="formulario__"] select').forEach(select => {
  select.addEventListener('change', insertIconsForm);
  select.addEventListener('input', insertIconsForm);
});