{"id":4710,"date":"2026-10-19T12:49:20","date_gmt":"2026-10-19T12:49:20","guid":{"rendered":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/?page_id=4710"},"modified":"2026-10-19T17:49:53","modified_gmt":"2026-10-19T17:49:53","slug":"solicitud-de-cotizacion","status":"publish","type":"page","link":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/?page_id=4710","title":{"rendered":"Solicitud de Cotizaci\u00f3n"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"4710\" class=\"elementor elementor-4710\" wpc-filter-elementor-widget=\"1\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c51518c e-con-full e-flex e-con e-parent\" data-id=\"c51518c\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-9a02236 e-flex e-con-boxed e-con e-child\" data-id=\"9a02236\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cef38e2 elementor-widget elementor-widget-heading\" data-id=\"cef38e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Rotoking | cotizaciones<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-489c51e elementor-widget elementor-widget-spacer\" data-id=\"489c51e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-54bbe69 elementor-widget__width-initial elementor-widget elementor-widget-heading\" data-id=\"54bbe69\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Solicit\u00e1 tu cotizaci\u00f3n<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7ca33fc elementor-widget elementor-widget-spacer\" data-id=\"7ca33fc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-16f96a2 elementor-widget__width-initial elementor-widget elementor-widget-text-editor\" data-id=\"16f96a2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>Revis\u00e1 tus productos y complet\u00e1 los datos para recibir una propuesta personalizada.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ad1dffd e-flex e-con-boxed e-con e-child\" data-id=\"ad1dffd\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-8992c8f e-con-full e-flex e-con e-child\" data-id=\"8992c8f\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-a5304e8 e-con-full e-flex e-con e-child\" data-id=\"a5304e8\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8d9a54 elementor-view-stacked elementor-shape-rounded elementor-widget elementor-widget-icon\" data-id=\"e8d9a54\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fab-dropbox\" viewBox=\"0 0 528 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M264.4 116.3l-132 84.3 132 84.3-132 84.3L0 284.1l132.3-84.3L0 116.3 132.3 32l132.1 84.3zM131.6 395.7l132-84.3 132 84.3-132 84.3-132-84.3zm132.8-111.6l132-84.3-132-83.6L395.7 32 528 116.3l-132.3 84.3L528 284.8l-132.3 84.3-131.3-85z\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ffdd67 elementor-widget elementor-widget-heading\" data-id=\"3ffdd67\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Tus productos<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-c377b98 e-con-full e-flex e-con e-child\" data-id=\"c377b98\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3849450 elementor-widget elementor-widget-html\" data-id=\"3849450\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t\n<div id=\"rk-lista-cotizacion\">\n  <p class=\"rk-cargando\">Cargando productos...<\/p>\n<\/div>\n\n<style>\n\/* LISTADO DE PRODUCTOS *\/\n\n#rk-lista-cotizacion {\n  display: flex;\n  flex-direction: column;\n  gap: 14px;\n  width: 100%;\n}\n\n.rk-producto-cotizado {\n  display: flex;\n  align-items: center;\n  gap: 16px;\n  padding: 16px;\n  background: #ffffff;\n  border: 1px solid #e1e7ee;\n  border-radius: 15px;\n}\n\n.rk-producto-cotizado img {\n  width: 85px;\n  height: 85px;\n  object-fit: contain;\n  flex-shrink: 0;\n}\n\n.rk-producto-info {\n  flex: 1;\n  min-width: 0;\n}\n\n.rk-producto-info strong {\n  display: block;\n  color: #102d49;\n  font-size: 15px;\n  line-height: 1.2;\n}\n\n.rk-producto-info span {\n  display: block;\n  color: #64748b;\n  font-size: 12px;\n  margin-top: 5px;\n}\n\n.rk-eliminar-producto {\n  border: none;\n  background: transparent;\n  color: #94a3b8;\n  font-size: 24px;\n  cursor: pointer;\n  padding: 8px;\n  flex-shrink: 0;\n  line-height: 1;\n}\n\n.rk-eliminar-producto:hover {\n  color: #d33;\n}\n\n\/* ESTADO VAC\u00cdO *\/\n\n.rk-cotizacion-vacia {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 16px;\n  padding: 45px 20px;\n  text-align: center;\n}\n\n.rk-icono-vacio {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 70px;\n  height: 70px;\n  border-radius: 16px;\n  background: #edf4fa;\n  color: #498cc8;\n}\n\n.rk-icono-vacio svg {\n  width: 38px;\n  height: 38px;\n}\n\n.rk-titulo-vacio {\n  margin: 0;\n  color: #102d49;\n  font-size: 19px;\n  font-weight: 600;\n  line-height: 1.0;\n}\n\n.rk-texto-vacio {\n  margin: 0;\n  max-width: 330px;\n  color: #64748b;\n  font-size: 14px;\n  line-height: 1.2;\n}\n\n.rk-boton-explorar {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 10px;\n  margin-top: 8px;\n  padding: 13px 22px;\n  background: #498cc8;\n  color: #ffffff !important;\n  border-radius: 8px;\n  text-decoration: none !important;\n  font-size: 12px;\n  font-weight: 600;\n  letter-spacing: 0.4px;\n  transition: background 0.2s ease;\n}\n\n.rk-boton-explorar:hover {\n  background: #102d49;\n  color: #ffffff !important;\n}\n\n.rk-boton-explorar svg {\n  width: 16px;\n  height: 16px;\n}\n\n\/* RESPONSIVE *\/\n\n@media (max-width: 767px) {\n  .rk-producto-cotizado {\n    gap: 10px;\n    padding: 12px;\n  }\n\n  .rk-producto-cotizado img {\n    width: 65px;\n    height: 65px;\n  }\n\n  .rk-cotizacion-vacia {\n    padding: 35px 12px;\n  }\n\n  .rk-titulo-vacio {\n    font-size: 17px;\n  }\n}\n<\/style>\n\n<script>\n(function () {\n  const CLAVE = 'rotoking_cotizacion';\n  const lista = document.getElementById('rk-lista-cotizacion');\n\n  if (!lista) return;\n\n  function obtenerProductos() {\n    try {\n      const datos = JSON.parse(\n        localStorage.getItem(CLAVE) || '[]'\n      );\n      return Array.isArray(datos) ? datos : [];\n    } catch (e) {\n      return [];\n    }\n  }\n\n  function crearElemento(etiqueta, clase, texto) {\n    const elemento = document.createElement(etiqueta);\n\n    if (clase) elemento.className = clase;\n    if (texto) elemento.textContent = texto;\n\n    return elemento;\n  }\n\n  function mostrarEstadoVacio() {\n    const contenedor = crearElemento(\n      'div',\n      'rk-cotizacion-vacia'\n    );\n\n    const icono = crearElemento(\n      'div',\n      'rk-icono-vacio'\n    );\n\n    icono.innerHTML = `\n      <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n           viewBox=\"0 0 24 24\"\n           fill=\"none\"\n           stroke=\"currentColor\"\n           stroke-width=\"1.5\"\n           stroke-linecap=\"round\"\n           stroke-linejoin=\"round\"\n           aria-hidden=\"true\">\n        <path d=\"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z\"\/>\n        <path d=\"m3.3 7 8.7 5 8.7-5\"\/>\n        <path d=\"M12 22V12\"\/>\n      <\/svg>\n    `;\n\n    const titulo = crearElemento(\n      'h3',\n      'rk-titulo-vacio',\n      'Todav\u00eda no seleccionaste productos'\n    );\n\n    const texto = crearElemento(\n      'p',\n      'rk-texto-vacio',\n      'Explor\u00e1 nuestro cat\u00e1logo y agreg\u00e1 los productos que necesit\u00e1s cotizar.'\n    );\n\n    const boton = crearElemento(\n      'a',\n      'rk-boton-explorar',\n      'EXPLORAR PRODUCTOS'\n    );\n\n    boton.href = '\/#catalogo-productos';\n\n    boton.innerHTML += `\n      <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n           viewBox=\"0 0 24 24\"\n           fill=\"none\"\n           stroke=\"currentColor\"\n           stroke-width=\"2\"\n           stroke-linecap=\"round\"\n           stroke-linejoin=\"round\"\n           aria-hidden=\"true\">\n        <path d=\"M5 12h14\"\/>\n        <path d=\"m12 5 7 7-7 7\"\/>\n      <\/svg>\n    `;\n\n    contenedor.appendChild(icono);\n    contenedor.appendChild(titulo);\n    contenedor.appendChild(texto);\n    contenedor.appendChild(boton);\n\n    lista.appendChild(contenedor);\n  }\n\n  function renderizar() {\n    const productos = obtenerProductos();\n\n    lista.replaceChildren();\n\n    if (!productos.length) {\n      mostrarEstadoVacio();\n      return;\n    }\n\n    productos.forEach(function (producto) {\n      const tarjeta = crearElemento(\n        'div',\n        'rk-producto-cotizado'\n      );\n\n      if (producto.imagen) {\n        const imagen = document.createElement('img');\n        imagen.src = producto.imagen;\n        imagen.alt = producto.nombre || 'Producto Rotoking';\n        imagen.loading = 'lazy';\n        tarjeta.appendChild(imagen);\n      }\n\n      const info = crearElemento(\n        'div',\n        'rk-producto-info'\n      );\n\n      info.appendChild(\n        crearElemento(\n          'strong',\n          '',\n          producto.nombre || 'Producto'\n        )\n      );\n\n    \n      tarjeta.appendChild(info);\n\n      const eliminar = crearElemento(\n        'button',\n        'rk-eliminar-producto',\n        '\u00d7'\n      );\n\n      eliminar.type = 'button';\n      eliminar.title = 'Eliminar producto';\n      eliminar.setAttribute(\n        'aria-label',\n        'Eliminar producto'\n      );\n\n      eliminar.addEventListener('click', function () {\n        const actualizados = obtenerProductos().filter(\n          function (item) {\n            return item.url !== producto.url;\n          }\n        );\n\n        localStorage.setItem(\n          CLAVE,\n          JSON.stringify(actualizados)\n        );\n\n        window.dispatchEvent(\n          new CustomEvent(\n            'rotokingCotizacionActualizada',\n            {\n              detail: {\n                cantidad: actualizados.length,\n                productos: actualizados\n              }\n            }\n          )\n        );\n\n        renderizar();\n      });\n\n      tarjeta.appendChild(eliminar);\n      lista.appendChild(tarjeta);\n    });\n  }\n\n  renderizar();\n\n  window.addEventListener(\n    'rotokingCotizacionActualizada',\n    renderizar\n  );\n\n  window.addEventListener('storage', function (evento) {\n    if (evento.key === CLAVE) renderizar();\n  });\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a34d3d6 e-con-full e-flex e-con e-child\" data-id=\"a34d3d6\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-100c5a6 e-con-full e-flex e-con e-child\" data-id=\"100c5a6\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d46c164 elementor-view-stacked elementor-shape-rounded elementor-widget elementor-widget-icon\" data-id=\"d46c164\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<div class=\"elementor-icon\">\n\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-far-id-card\" viewBox=\"0 0 576 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 400H303.2c.9-4.5.8 3.6.8-22.4 0-31.8-30.1-57.6-67.2-57.6-10.8 0-18.7 8-44.8 8-26.9 0-33.4-8-44.8-8-37.1 0-67.2 25.8-67.2 57.6 0 26-.2 17.9.8 22.4H48V144h480v288zm-168-80h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm0-64h112c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm-168 96c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a844c73 elementor-widget elementor-widget-heading\" data-id=\"a844c73\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Tus Datos de Contacto<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0121d13 e-con-full e-flex e-con e-child\" data-id=\"0121d13\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1050a4d rk-formulario-cotizacion elementor-button-align-stretch elementor-widget elementor-widget-form\" data-id=\"1050a4d\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;step_next_label&quot;:&quot;Next&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;button_width&quot;:&quot;100&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}\" data-widget_type=\"form.default\">\n\t\t\t\t\t\t\t<form class=\"elementor-form\" method=\"post\" id=\"cotizacion_rotoking\" name=\"New Form\" aria-label=\"New Form\">\n\t\t\t<input type=\"hidden\" name=\"post_id\" value=\"4710\"\/>\n\t\t\t<input type=\"hidden\" name=\"form_id\" value=\"1050a4d\"\/>\n\t\t\t<input type=\"hidden\" name=\"referer_title\" value=\"Solicitud de Cotizaci\u00f3n\" \/>\n\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"queried_id\" value=\"4710\"\/>\n\t\t\t\n\t\t\t<div class=\"elementor-form-fields-wrapper elementor-labels-above\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-nombre elementor-col-100 elementor-field-required elementor-mark-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-nombre\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tNombre y Apellido \t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"text\" name=\"form_fields[nombre]\" id=\"form-field-nombre\" class=\"elementor-field elementor-size-xs  elementor-field-textual\" placeholder=\"Nombre y apellido\" required=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-empresa elementor-col-100 elementor-field-required elementor-mark-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-empresa\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tEmpresa\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"text\" name=\"form_fields[empresa]\" id=\"form-field-empresa\" class=\"elementor-field elementor-size-xs  elementor-field-textual\" placeholder=\"Nombre de la empresa\" required=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-email elementor-field-group elementor-column elementor-field-group-email elementor-col-100 elementor-field-required elementor-mark-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-email\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tMail\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"email\" name=\"form_fields[email]\" id=\"form-field-email\" class=\"elementor-field elementor-size-xs  elementor-field-textual\" placeholder=\"correo@empresa.com\" required=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-tel elementor-field-group elementor-column elementor-field-group-telefono elementor-col-100 elementor-field-required elementor-mark-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-telefono\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tTel \/ Whatsapp\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t<input size=\"1\" type=\"tel\" name=\"form_fields[telefono]\" id=\"form-field-telefono\" class=\"elementor-field elementor-size-xs  elementor-field-textual\" placeholder=\"Ej.: 11 1234-5678\" required=\"required\" pattern=\"[0-9()#&amp;+*-=.]+\" title=\"Only numbers and phone characters (#, -, *, etc) are accepted.\">\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-hidden elementor-field-group elementor-column elementor-field-group-productos_cotizados elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"hidden\" name=\"form_fields[productos_cotizados]\" id=\"form-field-productos_cotizados\" class=\"elementor-field elementor-size-xs  elementor-field-textual\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-group elementor-column elementor-field-type-submit elementor-col-100 e-form__buttons\">\n\t\t\t\t\t<button class=\"elementor-button elementor-size-sm\" type=\"submit\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Enviar<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/button>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/form>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d0443a0 elementor-widget elementor-widget-html\" data-id=\"d0443a0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t\n<script>\n(function () {\n  const CLAVE = 'rotoking_cotizacion';\n  const SELECTOR = '.rk-formulario-cotizacion form';\n\n  function obtenerProductos() {\n    try {\n      const datos = JSON.parse(\n        localStorage.getItem(CLAVE) || '[]'\n      );\n      return Array.isArray(datos) ? datos : [];\n    } catch (error) {\n      return [];\n    }\n  }\n\n  function actualizarCampo() {\n    const campo = document.querySelector(\n      SELECTOR + ' [name=\"form_fields[productos_cotizados]\"]'\n    );\n\n    if (!campo) return;\n\n    const productos = obtenerProductos();\n\n    campo.value = productos.map(function (producto, indice) {\n\n      const nombre = String(\n        producto.nombre || 'Producto sin nombre'\n      ).trim();\n\n      const codigo = String(\n        producto.codigo || ''\n      ).trim();\n\n      let descripcion = (indice + 1) + '. ' + nombre;\n\n      \/\/ Agregar el c\u00f3digo solo si no figura en el nombre\n      if (\n        codigo &&\n        !nombre.toLowerCase().includes(codigo.toLowerCase())\n      ) {\n        descripcion += ' | C\u00f3digo: ' + codigo;\n      }\n\n      return descripcion;\n\n    }).join('\\n');\n\n    campo.dispatchEvent(\n      new Event('change', { bubbles: true })\n    );\n  }\n\n  function iniciar() {\n    const formulario = document.querySelector(SELECTOR);\n\n    if (!formulario) return;\n\n    \/\/ Cargar los productos al abrir la p\u00e1gina\n    actualizarCampo();\n\n    \/\/ Actualizar cuando se agregan o eliminan productos\n    window.addEventListener(\n      'rotokingCotizacionActualizada',\n      actualizarCampo\n    );\n\n    \/\/ Sincronizar cambios realizados en otras pesta\u00f1as\n    window.addEventListener('storage', function (evento) {\n      if (evento.key === CLAVE) {\n        actualizarCampo();\n      }\n    });\n\n    \/\/ Verificar la selecci\u00f3n antes de enviar\n    formulario.addEventListener('submit', function (evento) {\n\n      actualizarCampo();\n\n      if (obtenerProductos().length === 0) {\n\n        evento.preventDefault();\n        evento.stopImmediatePropagation();\n\n        alert(\n          'Seleccion\u00e1 al menos un producto antes de enviar tu solicitud.'\n        );\n\n      }\n\n    }, true);\n  }\n\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', iniciar);\n  } else {\n    iniciar();\n  }\n\n})();\n<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Rotoking | cotizaciones Solicit\u00e1 tu cotizaci\u00f3n Revis\u00e1 tus productos y complet\u00e1 los datos para recibir una propuesta personalizada. Tus productos Cargando productos&#8230; Tus Datos de Contacto<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-4710","page","type-page","status-publish","hentry","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=\/wp\/v2\/pages\/4710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4710"}],"version-history":[{"count":5,"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=\/wp\/v2\/pages\/4710\/revisions"}],"predecessor-version":[{"id":4925,"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=\/wp\/v2\/pages\/4710\/revisions\/4925"}],"wp:attachment":[{"href":"https:\/\/rotoking-12ba461.ingress-comporellon.ewp.live\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}