{"id":9070,"date":"2022-07-07T10:26:13","date_gmt":"2022-07-07T08:26:13","guid":{"rendered":"https:\/\/www.investincastellon.com\/companies\/"},"modified":"2025-12-22T16:30:38","modified_gmt":"2025-12-22T14:30:38","slug":"companies","status":"publish","type":"page","link":"https:\/\/www.investincastellon.com\/en\/companies\/","title":{"rendered":"Companies"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; use_background_color_gradient=&#8221;on&#8221; background_color_gradient_direction=&#8221;148deg&#8221; background_color_gradient_stops=&#8221;#89dc65 0%|#00abc8 100%&#8221; background_image=&#8221;https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/07\/actionvance-fIC7qz4HNqI-unsplash-1.jpg&#8221; background_position=&#8221;top_center&#8221; background_vertical_offset=&#8221;100%&#8221; background_blend=&#8221;multiply&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.4&#8243; _dynamic_attributes=&#8221;content&#8221; _module_preset=&#8221;default&#8221; header_font=&#8221;|700||on|||||&#8221; header_text_color=&#8221;#FFFFFF&#8221; header_font_size=&#8221;40px&#8221; header_letter_spacing=&#8221;1px&#8221; global_colors_info=&#8221;{}&#8221;]@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF90aXRsZSIsInNldHRpbmdzIjp7ImJlZm9yZSI6IjxoMT4iLCJhZnRlciI6IjwvaDE+IiwiZW5hYmxlX2h0bWwiOiJvZmYifX0=@[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; module_id=&#8221;sectores-clave&#8221; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||3px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;3_5,2_5&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;3_5&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; header_2_font=&#8221;|700|||||||&#8221; header_2_text_align=&#8221;left&#8221; header_2_font_size=&#8221;38px&#8221; header_2_letter_spacing=&#8221;1px&#8221; header_2_line_height=&#8221;1.2em&#8221; text_orientation=&#8221;center&#8221; custom_margin=&#8221;||19px|||&#8221; header_2_text_align_tablet=&#8221;left&#8221; header_2_text_align_phone=&#8221;left&#8221; header_2_text_align_last_edited=&#8221;on|desktop&#8221; header_2_font_size_tablet=&#8221;38px&#8221; header_2_font_size_phone=&#8221;32px&#8221; header_2_font_size_last_edited=&#8221;on|phone&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h2>Find companies in the province<\/h2>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.19.5&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<p>A high percentage of companies in the province of Castell\u00f3n develop an important import and export activity in their field of activity. Through this geolocation search engine, you can know them in more detail classified by region and sector. <\/p>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=&#8221;2_5&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][dsm_lottie lottie_url=&#8221;https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/07\/marker-circulo.json&#8221; disabled_on=&#8221;on|on|off&#8221; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; max_width=&#8221;62%&#8221; max_width_tablet=&#8221;55%&#8221; max_width_phone=&#8221;100%&#8221; max_width_last_edited=&#8221;on|phone&#8221; custom_margin=&#8221;-39px||||false|false&#8221; custom_margin_tablet=&#8221;-20px|||-93px|false|false&#8221; custom_margin_phone=&#8221;||||false|false&#8221; custom_margin_last_edited=&#8221;on|desktop&#8221; module_alignment_tablet=&#8221;center&#8221; module_alignment_phone=&#8221;left&#8221; module_alignment_last_edited=&#8221;on|tablet&#8221; global_colors_info=&#8221;{}&#8221;][\/dsm_lottie][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;0px||0px||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row make_equal=&#8221;on&#8221; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; max_width=&#8221;100%&#8221; custom_margin=&#8221;0px||0px||false|false&#8221; custom_padding=&#8221;0px||0px||false|false&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.27.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<div id=\"mapaempresas\">\n  <div id=\"info\">\n    <div id=\"filtros-sectores\"><\/div>\n    <div class=\"divider horizontal\"><\/div>\n    <div id=\"lista-empresas\"><\/div>\n    <div id=\"paginacion\"><\/div>\n  <\/div>\n\n  <div class=\"divider vertical\"><\/div>\n\n  <div id=\"mapa\"><\/div>\n\n  <div id=\"mapa-loading\">\n    <div class=\"spinner\"><\/div>\n    <span>Loading companies...<\/span>\n  <\/div>\n<\/div>\n\n<!-- Google Maps (Advanced Markers) -->\n<script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyCn34R5hYrnNEKyDYcbB8K5BzeUoM69yfk&libraries=marker\"><\/script>\n\n<!-- MarkerClusterer v2 -->\n<script src=\"https:\/\/unpkg.com\/@googlemaps\/markerclusterer\/dist\/index.min.js\"><\/script>\n\n<script>\ngoogle.maps.importLibrary(\"marker\").then(() => {\n  document.addEventListener(\"DOMContentLoaded\", async () => {\n\n    \/* =========================\n       MAPA\n    ========================== *\/\n    const mapa = new google.maps.Map(document.getElementById(\"mapa\"), {\n      center: { lat: 39.986, lng: -0.039 },\n      zoom: 8,\n      maxZoom: 17,\n      gestureHandling: \"greedy\",\n      mapId: \"Clave de API 3\" \/\/ \u26a0\ufe0f Map ID real, NO la API key\n    });\n\n    const sectorColors = {\n      \"Agricultura y Ganaderia\": \"#89DC65\",\n      \"Construcci\u00f3n\": \"#FFE46A\",\n      \"Distribuci\u00f3n comercial\": \"#00AED3\",\n      \"Industria\": \"#004868\",\n      \"Servicios\": \"#FF666F\",\n\t  \"Agriculture and Livestock\": \"#89DC65\",\n      \"Construction\": \"#FFE46A\",\n      \"Commercial distribution\": \"#00AED3\",\n      \"Industry\": \"#004868\",\n      \"Services\": \"#FF666F\"\n    };\n    const colorSector = (s) => sectorColors[s] || \"#999\";\n\n    \/* =========================\n       DOM \/ ESTADO\n    ========================== *\/\n    const filtrosContainer = document.getElementById(\"filtros-sectores\");\n    const listaContainer   = document.getElementById(\"lista-empresas\");\n    const paginacion       = document.getElementById(\"paginacion\");\n\n    const empresasPorPagina = 12;\n    let paginaActual = 1;\n\n    \/\/ filtros:\n    \/\/ - sector___subsector -> boolean\n    \/\/ - tipo_xxx -> boolean\n    \/\/ - tam_xxx -> boolean\n    \/\/ - comarca_xxx -> boolean\n    \/\/ - fac_xxx -> boolean   \u2705 NUEVO\n    \/\/ - _texto -> string\n    const filtros = {\n\t  _texto: \"\",\n\t  facturacion_min: null,\n\t  facturacion_max: null\n\t};\n\n    const markers = [];\n    let clusterer = null;\n\tlet infoWindowActiva = null;\n\n\n    \/* =========================\n       COMARCAS: mapping exacto tuyo\n    ========================== *\/\n    const mapaComarcas = {\n      \"El Alto Palancia\": \"alto_palancia.geojson\",\n      \"El Alto Mijares\": \"el_alto_mijares.geojson\",\n      \"El Baix Maestrat\": \"el_baix_maestrat.geojson\",\n      \"Els Ports\": \"els_ports.geojson\",\n      \"L\u2019Alcalat\u00e9n\": \"l_alcalaten.geojson\",\n      \"L\u2019Alt Maestrat\": \"l_alt_maestrat.geojson\",\n      \"La Plana Alta\": \"la_plana_alta.geojson\",\n      \"La Plana Baixa\": \"la_plana_baixa.geojson\"\n    };\n\n    \/\/ capas: nombre comarca -> google.maps.Data\n    const capasComarcas = {};\n\n    \/* =========================\n       HELPERS\n    ========================== *\/\n    function crearIcono(sector) {\n      const div = document.createElement(\"div\");\n      div.style.width = \"18px\";\n      div.style.height = \"18px\";\n      div.style.borderRadius = \"50%\";\n      div.style.background = colorSector(sector);\n      div.style.border = \"2px solid #fff\";\n      return div;\n    }\n\n    function claveSubsector(sector, subsector) {\n      return `${sector}___${subsector || \"\u2014\"}`;\n    }\n\n    function hayFiltrosActivosSubsectores() {\n      return Object.keys(filtros).some(k => k.includes(\"___\") && filtros[k] === true);\n    }\n\n    function hayFiltrosActivosTipo() {\n      return Object.keys(filtros).some(k => k.startsWith(\"tipo_\") && filtros[k] === true);\n    }\n\n    function hayFiltrosActivosTamano() {\n      return Object.keys(filtros).some(k => k.startsWith(\"tam_\") && filtros[k] === true);\n    }\n\n    function hayFiltrosActivosComarca() {\n      return Object.keys(filtros).some(k => k.startsWith(\"comarca_\") && filtros[k] === true);\n    }\n\n    function hayFiltrosActivosFacturacion() { \/\/ \u2705 NUEVO\n      return Object.keys(filtros).some(k => k.startsWith(\"fac_\") && filtros[k] === true);\n    }\n\n    function hayTextoActivo() {\n      return typeof filtros._texto === \"string\" && filtros._texto.trim().length > 0;\n    }\n\n    function obtenerClaveTamano(n) {\n      if (n === null) return \"tam_sin_dato\";\n      if (n >= 1 && n <= 9) return \"tam_micro\";\n      if (n >= 10 && n <= 49) return \"tam_pequena\";\n      if (n >= 50 && n <= 249) return \"tam_mediana\";\n      if (n >= 250) return \"tam_grande\";\n      return \"tam_sin_dato\";\n    }\n\t\n\t\/\/ Diccionario de tipos (traducci\u00f3n v\u00eda PHP -> WPML String Translation)\n\tconst TIPO_LABELS = {\n\t  importador: i18nMapa.importador,\n\t  exportador: i18nMapa.exportador,\n\t  importador_exportador: i18nMapa.importadorExportador,\n\t  no_realiza_actividad_exterior: i18nMapa.noRealizaActividadExterior,\n\t  sin_especificar: i18nMapa.sinEspecificar\n\t};\n\n\tfunction traducirTipo(slug) {\n\t  const key = (slug && String(slug).trim()) ? slug : \"sin_especificar\";\n\t  return TIPO_LABELS[key] || TIPO_LABELS.sin_especificar;\n\t}\n\n\n    \/\/ \u2705 NUEVO: normalizar para usar keys seguras en filtros (accents, espacios, etc.)\n    function slugify(str) {\n      return String(str || \"\")\n        .trim()\n        .toLowerCase()\n        .normalize(\"NFD\").replace(\/[\\u0300-\\u036f]\/g, \"\") \/\/ quita tildes\n        .replace(\/[\u2019'\"]\/g, \"\")                           \/\/ quita comillas\/ap\u00f3strofos\n        .replace(\/[^a-z0-9]+\/g, \"_\")                      \/\/ todo a _\n        .replace(\/^_+|_+$\/g, \"\");\n    }\n\t\n\tfunction formatearEmpleados(n) {\n\t  if (n === null) return i18nMapa.sinDato;\n\t  if (n <= 9) return i18nMapa.micro;\n\t  if (n <= 49) return i18nMapa.pequena;\n\t  if (n <= 249) return i18nMapa.mediana;\n\t  return i18nMapa.grande;\n\t}\n\n\tfunction formatearFacturacion(n) {\n\t  if (!n) return \"Sin dato\";\n\t  if (n >= 1e6) return `${(n \/ 1e6).toFixed(1)} M\u20ac`;\n\t  if (n >= 1e3) return `${(n \/ 1e3).toFixed(0)} K\u20ac`;\n\t  return `${n} \u20ac`;\n\t}\n\n\n    \/* =========================\n       LOADING\n    ========================== *\/\n    const loadingEl = document.getElementById(\"mapa-loading\");\n    if (loadingEl) loadingEl.style.display = \"flex\";\n\n    \/* =========================\n       FETCH DATOS\n    ========================== *\/\n    \/*const empresas = await fetch(\"\/wp-json\/miapi\/v1\/empresas\/\").then(r => r.json());*\/\n\tconst lang = document.documentElement.lang.startsWith(\"en\") ? \"en\" : \"es\";\n\tconst url_lang = document.documentElement.lang.startsWith(\"en\") ? \"\/en\/wp-json\/miapi\/v1\/empresas\/\" : \"\/wp-json\/miapi\/v1\/empresas\/\";\n\tconst empresas = await fetch(\n\t  `${url_lang}`\n\t).then(r => r.json());\n\n    \/* =========================\n       CARGA DE CAPAS GEOJSON (como lo ten\u00edas)\n       - se cargan una vez, pero NO se muestran hasta marcar\n    ========================== *\/\n    Object.entries(mapaComarcas).forEach(([nombre, archivo]) => {\n      const capa = new google.maps.Data({ map: null });\n      capasComarcas[nombre] = capa;\n\n      capa.setStyle({\n        fillColor: \"#004868\",\n        fillOpacity: 0.08,\n        strokeColor: \"#004868\",\n        strokeOpacity: 0.9,\n        strokeWeight: 1.5\n      });\n\n      capa.loadGeoJson(`\/wp-content\/themes\/Divi-Child\/geodata\/${archivo}`);\n    });\n\n    \/* =========================\n       CREAR MARCADORES\n    ========================== *\/\n    const bounds = new google.maps.LatLngBounds();\n\n    empresas.forEach(emp => {\n      const sector = emp.sector || \"Otros\";\n      const subsector = emp.subsector || \"\u2014\";\n\n      const lat = +emp.lat;\n      const lng = +emp.lng;\n      if (!isFinite(lat) || !isFinite(lng)) return;\n\n      \/\/ \u2705 NUMERO DE EMPLEADOS\n      let empleados = parseInt(emp.numero_de_empleados, 10);\n      if (isNaN(empleados) || empleados <= 0) empleados = null;\n\n      \/\/ \u2705 FACTURACI\u00d3N (guardar tal cual venga)\n      let facturacion = parseFloat(emp.facturacion);\n\t  if (isNaN(facturacion) || facturacion <= 0) facturacion = null;\n\n      const marker = new google.maps.marker.AdvancedMarkerElement({\n        map: mapa,\n        position: { lat, lng },\n        content: crearIcono(sector)\n      });\n\n      marker._data = {\n        nombre: emp.nombre || \"\",\n        sector,\n        subsector,\n        tipo_slug: emp.tipo_slug || \"sin_especificar\",\n        tipo_label: emp.tipo_label || \"Sin especificar\",\n        web: emp.web || \"\",\n        empleados,\n        facturacion, \/\/ \u2705 NUEVO\n        comarcas: Array.isArray(emp.comarcas) ? emp.comarcas : []\n      };\n\n      const d = marker._data;\n\n\t\tconst info = `\n\t\t  <div class=\"infowindow-empresa\">\n\t\t\t<strong class=\"iw-titulo\">${d.nombre}<\/strong>\n\n\t\t\t<div class=\"iw-bloque\">\n\t\t\t  <em>${d.sector}${d.subsector && d.subsector !== \"\u2014\" ? \" \u00b7 \" + d.subsector : \"\"}<\/em>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"iw-bloque\">\n\t\t\t  <strong>` + i18nMapa.tipoEmpresa + `:<\/strong> ${traducirTipo(d.tipo_slug)}\n\t\t\t<\/div>\n\n\t\t\t<div class=\"iw-bloque\">\n\t\t\t  <strong>` + i18nMapa.tamanoEmpresa + `:<\/strong> ${formatearEmpleados(d.empleados)}\n\t\t\t<\/div>\n\n\t\t\t<div class=\"iw-bloque\">\n\t\t\t  <strong>` + i18nMapa.facturacion + ` (\u20ac):<\/strong> ${formatearFacturacion(d.facturacion)}\n\t\t\t<\/div>\n\n\t\t\t${\n\t\t\t  d.comarcas && d.comarcas.length\n\t\t\t\t? `<div class=\"iw-bloque\">\n\t\t\t\t\t <strong>` + i18nMapa.comarcas + `${d.comarcas.length > 1 ? \"s\" : \"\"}:<\/strong>\n\t\t\t\t\t ${d.comarcas.join(\", \")}\n\t\t\t\t   <\/div>`\n\t\t\t\t: \"\"\n\t\t\t}\n\n\t\t\t${\n\t\t\t  d.web\n\t\t\t\t? `<div class=\"iw-bloque\">\n\t\t\t\t\t <a href=\"${d.web}\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t\t   ` + i18nMapa.visitarWeb + `\n\t\t\t\t\t <\/a>\n\t\t\t\t   <\/div>`\n\t\t\t\t: \"\"\n\t\t\t}\n\t\t  <\/div>\n\t\t`;\n\n      marker._infoWindow = new google.maps.InfoWindow({ content: info });\n\n\t\tmarker.addListener(\"click\", () => {\n\n\t\t  \/\/ \ud83d\udd12 cerrar la anterior si existe\n\t\t  if (infoWindowActiva) {\n\t\t\tinfoWindowActiva.close();\n\t\t  }\n\n\t\t  \/\/ abrir la actual\n\t\t  marker._infoWindow.open({\n\t\t\tmap: mapa,\n\t\t\tanchor: marker\n\t\t  });\n\n\t\t  \/\/ guardar referencia\n\t\t  infoWindowActiva = marker._infoWindow;\n\t\t});\n\n\n\n      markers.push(marker);\n      bounds.extend({ lat, lng });\n    });\n\n    if (!bounds.isEmpty()) mapa.fitBounds(bounds);\n\n    \/* =========================\n       CLUSTER (COLOR POR SECTOR DOMINANTE)\n    ========================== *\/\n    clusterer = new markerClusterer.MarkerClusterer({\n      map: mapa,\n      markers: [],\n      algorithm: new markerClusterer.SuperClusterAlgorithm({ maxZoom: 11 }),\n      renderer: {\n        render: ({ count, markers: clusterMarkers, position }) => {\n          const sectorCounts = {};\n          clusterMarkers.forEach(m => {\n            const s = m._data?.sector || \"Otros\";\n            sectorCounts[s] = (sectorCounts[s] || 0) + 1;\n          });\n\n          let mainSector = \"Otros\";\n          let max = 0;\n          Object.entries(sectorCounts).forEach(([s, n]) => {\n            if (n > max) { max = n; mainSector = s; }\n          });\n\n          const color = colorSector(mainSector);\n\n          const svg = window.btoa(`\n            <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\">\n              <circle cx=\"24\" cy=\"24\" r=\"20\" fill=\"${color}\" stroke=\"#fff\" stroke-width=\"3\"\/>\n              <text x=\"24\" y=\"28\" text-anchor=\"middle\" font-size=\"16\" font-family=\"Arial\" fill=\"#fff\">${count}<\/text>\n            <\/svg>\n          `);\n\n          const div = document.createElement(\"div\");\n          div.style.width = \"48px\";\n          div.style.height = \"48px\";\n          div.style.backgroundImage = \"url(data:image\/svg+xml;base64,\" + svg + \")\";\n          div.style.backgroundSize = \"48px 48px\";\n          div.style.cursor = \"pointer\";\n\n          return new google.maps.marker.AdvancedMarkerElement({\n            position,\n            content: div\n          });\n        }\n      }\n    });\n\n    \/* =========================\n       UI: BUSCADOR\n    ========================== *\/\n    function crearBloqueBuscador() {\n      const cont = document.createElement(\"div\");\n      cont.id = \"filtro-busqueda\";\n      cont.style.padding = \"0 0 1em 0\";\n      cont.style.borderBottom = \"1px solid #ddd\";\n      cont.style.marginBottom = \"1em\";\n\n      const label = document.createElement(\"label\");\n      label.textContent = i18nMapa.buscarEmpresa;\n      label.style.display = \"block\";\n      label.style.fontWeight = \"600\";\n      label.style.marginBottom = \"0.4em\";\n\n      const input = document.createElement(\"input\");\n      input.type = \"text\";\n      input.placeholder = i18nMapa.escribeNombre;\n      input.style.width = \"100%\";\n      input.style.padding = \"8px 10px\";\n      input.style.border = \"1px solid #ccc\";\n      input.style.borderRadius = \"6px\";\n\n      input.addEventListener(\"input\", () => {\n        filtros._texto = input.value.trim().toLowerCase();\n        actualizar();\n      });\n\n      cont.append(label, input);\n      return cont;\n    }\n\n    \/* =========================\n       UI: TIPO DE EMPRESA\n    ========================== *\/\n    function crearBloqueTipoEmpresa() {\n      const detalles = document.createElement(\"details\");\n      detalles.open = false;\n\n      const summary = document.createElement(\"summary\");\n      summary.textContent = i18nMapa.tipoEmpresa;\n      detalles.appendChild(summary);\n\n      const cont = document.createElement(\"div\");\n      cont.style.padding = \"0.5em 0 0.5em 0.5em\";\n\n      const canonicas = [\n        [\"importador\", i18nMapa.importador],\n        [\"exportador\", i18nMapa.exportador],\n        [\"importador_exportador\", i18nMapa.importadorExportador],\n        [\"no_realiza_actividad_exterior\", i18nMapa.noRealizaActividadExterior],\n        [\"sin_especificar\", i18nMapa.sinEspecificar]\n      ];\n\n      canonicas.forEach(([slug, label]) => {\n        const key = `tipo_${slug}`;\n        if (typeof filtros[key] === \"undefined\") filtros[key] = false;\n\n        const lab = document.createElement(\"label\");\n        lab.style.display = \"block\";\n        lab.style.marginBottom = \"0.2em\";\n        lab.style.cursor = \"pointer\";\n\n        const cb = document.createElement(\"input\");\n        cb.type = \"checkbox\";\n        cb.checked = false;\n        cb.dataset.tipo = slug;\n\n        cb.addEventListener(\"change\", () => {\n          filtros[key] = cb.checked;\n          actualizar();\n        });\n\n        lab.append(cb, \" \" + label);\n        cont.appendChild(lab);\n      });\n\n      detalles.appendChild(cont);\n      return detalles;\n    }\n\n    \/* =========================\n       UI: TAMA\u00d1O DE EMPRESA\n    ========================== *\/\n    function crearBloqueTamanoEmpresa() {\n      const detalles = document.createElement(\"details\");\n      detalles.open = false;\n\n      const summary = document.createElement(\"summary\");\n      summary.textContent = i18nMapa.tamanoEmpresa;\n      detalles.appendChild(summary);\n\n      const cont = document.createElement(\"div\");\n      cont.style.padding = \"0.5em 0 0.5em 0.5em\";\n\n      const rangos = [\n        [\"tam_micro\", i18nMapa.micro],\n        [\"tam_pequena\", i18nMapa.pequena],\n        [\"tam_mediana\", i18nMapa.mediana],\n        [\"tam_grande\", i18nMapa.grande],\n        [\"tam_sin_dato\", i18nMapa.sinDato]\n      ];\n\n      rangos.forEach(([key, label]) => {\n        if (typeof filtros[key] === \"undefined\") filtros[key] = false;\n\n        const lab = document.createElement(\"label\");\n        lab.style.display = \"block\";\n        lab.style.marginBottom = \"0.2em\";\n        lab.style.cursor = \"pointer\";\n\n        const cb = document.createElement(\"input\");\n        cb.type = \"checkbox\";\n        cb.checked = false;\n        cb.dataset.tamano = key;\n\n        cb.addEventListener(\"change\", () => {\n          filtros[key] = cb.checked;\n          actualizar();\n        });\n\n        lab.append(cb, \" \" + label);\n        cont.appendChild(lab);\n      });\n\n      detalles.appendChild(cont);\n      return detalles;\n    }\n\n    \/* =========================\n       UI: FACTURACI\u00d3N (NUEVO)\n       - se construye con los valores reales presentes en empresas[].facturacion\n    ========================== *\/\n    function crearBloqueFacturacion() {\n\t  const detalles = document.createElement(\"details\");\n\t  detalles.open = false;\n\n\t  const summary = document.createElement(\"summary\");\n\t  summary.textContent = i18nMapa.facturacion + \" (\u20ac)\";\n\t  detalles.appendChild(summary);\n\n\t  const cont = document.createElement(\"div\");\n\t  cont.style.padding = \"0.5em 0.5em 0.8em\";\n\n\t  \/\/ obtener valores reales\n\t  const valores = empresas\n\t\t.map(e => parseFloat(e.facturacion))\n\t\t.filter(v => isFinite(v) && v > 0);\n\n\t  if (!valores.length) {\n\t\tcont.textContent = i18nMapa.noDatosFacturacion;\n\t\tdetalles.appendChild(cont);\n\t\treturn detalles;\n\t  }\n\n\t  const min = Math.min(...valores);\n\t  const max = Math.max(...valores);\n\n\t  filtros.facturacion_min = min;\n\t  filtros.facturacion_max = max;\n\n\t  const label = document.createElement(\"div\");\n\t  label.style.fontSize = \"13px\";\n\t  label.style.marginBottom = \"0.4em\";\n\n\t  const updateLabel = () => {\n\t\tlabel.textContent =\n\t\t  i18nMapa.entre + ` ${(filtros.facturacion_min \/ 1e6).toFixed(1)}M \u20ac ` + i18nMapa.yAnd + \n\t\t  ` ${(filtros.facturacion_max \/ 1e6).toFixed(1)}M \u20ac`;\n\n\t  };\n\n\t  const minWrap = document.createElement(\"div\");\n\t\tminWrap.className = \"facturacion-range min\";\n\n\t\tconst minLabel = document.createElement(\"span\");\n\t\tminLabel.textContent = \"M\u00edn.\";\n\n\t\tconst inputMin = document.createElement(\"input\");\n\t\tinputMin.type = \"range\";\n\t\tinputMin.className = \"range-input\";\n\n\t\tminWrap.append(minLabel, inputMin);\n\n\t  inputMin.min = min;\n\t  inputMin.max = max;\n\t  inputMin.value = min;\n\t  inputMin.step = (max - min) \/ 100;\n\n\t  const maxWrap = document.createElement(\"div\");\n\t\tmaxWrap.className = \"facturacion-range max\";\n\n\t\tconst maxLabel = document.createElement(\"span\");\n\t\tmaxLabel.textContent = \"M\u00e1x.\";\n\n\t\tconst inputMax = document.createElement(\"input\");\n\t\tinputMax.type = \"range\";\n\t\tinputMax.className = \"range-input\";\n\n\t\tmaxWrap.append(maxLabel, inputMax);\n\n\t  inputMax.min = min;\n\t  inputMax.max = max;\n\t  inputMax.value = max;\n\t  inputMax.step = (max - min) \/ 100;\n\n\t  inputMin.addEventListener(\"input\", () => {\n\t\tfiltros.facturacion_min = Math.min(+inputMin.value, filtros.facturacion_max);\n\t\tupdateLabel();\n\t\tactualizar();\n\t  });\n\n\t  inputMax.addEventListener(\"input\", () => {\n\t\tfiltros.facturacion_max = Math.max(+inputMax.value, filtros.facturacion_min);\n\t\tupdateLabel();\n\t\tactualizar();\n\t  });\n\t  \n\t  \/\/ guardar referencias globales para reset\n\t\tfiltros._facturacion_inputs = {\n\t\t  min: inputMin,\n\t\t  max: inputMax,\n\t\t  minValor: min,\n\t\t  maxValor: max\n\t\t};\n\n\t  updateLabel();\n\n\t  cont.append(label, minWrap, maxWrap);\n\t  detalles.appendChild(cont);\n\t  return detalles;\n\t}\n\n\n    \/* =========================\n       UI: COMARCAS\n    ========================== *\/\n    function crearBloqueComarcas() {\n      const detalles = document.createElement(\"details\");\n      detalles.open = false;\n\n      const summary = document.createElement(\"summary\");\n      summary.textContent = i18nMapa.comarcas;\n      detalles.appendChild(summary);\n\n      const cont = document.createElement(\"div\");\n      cont.style.padding = \"0.5em 0 0.5em 0.5em\";\n\n      const set = new Set();\n      empresas.forEach(e => {\n        const arr = Array.isArray(e.comarcas) ? e.comarcas : [];\n        arr.forEach(c => set.add(c));\n      });\n\n      const disponibles = Array.from(set)\n        .filter(nombre => !!mapaComarcas[nombre])\n        .sort((a,b)=>a.localeCompare(b,\"es\"));\n\n      disponibles.forEach(nombre => {\n        const key = `comarca_${nombre}`;\n        if (typeof filtros[key] === \"undefined\") filtros[key] = false;\n\n        const lab = document.createElement(\"label\");\n        lab.style.display = \"block\";\n        lab.style.marginBottom = \"0.2em\";\n        lab.style.cursor = \"pointer\";\n\n        const cb = document.createElement(\"input\");\n        cb.type = \"checkbox\";\n        cb.checked = false;\n        cb.dataset.comarca = nombre;\n\n        cb.addEventListener(\"change\", () => {\n          filtros[key] = cb.checked;\n\n          const capa = capasComarcas[nombre];\n          if (capa) capa.setMap(cb.checked ? mapa : null);\n\n          actualizar();\n        });\n\n        lab.append(cb, \" \" + nombre);\n        cont.appendChild(lab);\n      });\n\n      if (!disponibles.length) {\n        const p = document.createElement(\"div\");\n        p.style.opacity = \"0.7\";\n        p.style.fontSize = \"13px\";\n        p.textContent = i18nMapa.noComarcasDisponibles;\n        cont.appendChild(p);\n      }\n\n      detalles.appendChild(cont);\n      return detalles;\n    }\n\n    \/* =========================\n       UI: SECTORES \/ SUBSECTORES\n    ========================== *\/\n    function renderizarFiltrosSectoresJerarquico() {\n      filtrosContainer.innerHTML = \"\";\n\n      \/\/ 1) Buscador\n      filtrosContainer.appendChild(crearBloqueBuscador());\n\n      \/\/ 2) Bot\u00f3n reset\n      const btn = document.createElement(\"button\");\n      btn.id = \"btn-reset-filtros\";\n      btn.type = \"button\";\n      btn.textContent = i18nMapa.limpiarFiltros;\n      btn.addEventListener(\"click\", () => {\n\n        \/\/ desmarcar subsectores\n        filtrosContainer.querySelectorAll('input[type=\"checkbox\"][data-filtro]').forEach(cb => cb.checked = false);\n        filtrosContainer.querySelectorAll('input[type=\"checkbox\"][data-sector]').forEach(cb => {\n          cb.checked = false;\n          cb.indeterminate = false;\n        });\n\n        \/\/ desmarcar tipos\n        filtrosContainer.querySelectorAll('input[type=\"checkbox\"][data-tipo]').forEach(cb => cb.checked = false);\n\n        \/\/ desmarcar tama\u00f1os\n        filtrosContainer.querySelectorAll('input[type=\"checkbox\"][data-tamano]').forEach(cb => cb.checked = false);\n\n        \/\/ desmarcar facturaci\u00f3n \u2705 NUEVO\n        \/\/ reset facturaci\u00f3n (slider)\n\t\tif (filtros._facturacion_inputs) {\n\t\t  const f = filtros._facturacion_inputs;\n\n\t\t  f.min.value = f.minValor;\n\t\t  f.max.value = f.maxValor;\n\n\t\t  filtros.facturacion_min = f.minValor;\n\t\t  filtros.facturacion_max = f.maxValor;\n\t\t}\n\n\n\n        \/\/ desmarcar comarcas + ocultar capas\n        filtrosContainer.querySelectorAll('input[type=\"checkbox\"][data-comarca]').forEach(cb => cb.checked = false);\n        Object.values(capasComarcas).forEach(capa => capa.setMap(null));\n\n        \/\/ colapsar subsectores\n        filtrosContainer.querySelectorAll(\".subsectores\").forEach(el => el.style.display = \"none\");\n\n        \/\/ reset texto + input\n        filtros._texto = \"\";\n        const inputBusqueda = filtrosContainer.querySelector(\"#filtro-busqueda input\");\n        if (inputBusqueda) inputBusqueda.value = \"\";\n\n        \/\/ reset keys (no tocar _texto)\n        Object.keys(filtros).forEach(k => {\n          if (k.includes(\"___\")) filtros[k] = false;\n          if (k.startsWith(\"tipo_\")) filtros[k] = false;\n          if (k.startsWith(\"tam_\")) filtros[k] = false;\n          if (k.startsWith(\"comarca_\")) filtros[k] = false;\n          if (k.startsWith(\"fac_\")) filtros[k] = false; \/\/ \u2705 NUEVO\n        });\n\n        actualizar();\n      });\n      filtrosContainer.appendChild(btn);\n\n      \/\/ 3) Tipo empresa\n      filtrosContainer.appendChild(crearBloqueTipoEmpresa());\n\n      \/\/ 4) Tama\u00f1o empresa\n      filtrosContainer.appendChild(crearBloqueTamanoEmpresa());\n\n      \/\/ 5) Facturaci\u00f3n \u2705 NUEVO\n\t  filtrosContainer.appendChild(crearBloqueFacturacion());\n\n\n      \/\/ 6) Comarcas\n      filtrosContainer.appendChild(crearBloqueComarcas());\n\n      \/\/ 7) Sectores\/subsectores\n\t\tconst detallesSectores = document.createElement(\"details\");\n\t\tdetallesSectores.open = false;\n\n\t\tconst summarySectores = document.createElement(\"summary\");\n\t\tsummarySectores.textContent = i18nMapa.sectores;\n\n\t\tdetallesSectores.appendChild(summarySectores);\n\n\t\tconst contSectores = document.createElement(\"div\");\n\t\tcontSectores.style.padding = \"0.5em 0 0.5em 0.5em\";\n\n\t\tdetallesSectores.appendChild(contSectores);\n\n\n      const estructura = {};\n      empresas.forEach(e => {\n        const s = e.sector || \"Otros\";\n        const ss = e.subsector || \"\u2014\";\n        if (!estructura[s]) estructura[s] = new Set();\n        estructura[s].add(ss);\n      });\n\n      const sectoresOrdenados = Object.keys(estructura).sort((a,b) => a.localeCompare(b, \"es\"));\n      const frag = document.createDocumentFragment();\n\n      sectoresOrdenados.forEach(sector => {\n        const subs = Array.from(estructura[sector]).sort((a,b) => a.localeCompare(b, \"es\"));\n        const color = colorSector(sector);\n\n        const labSector = document.createElement(\"label\");\n        labSector.style.borderLeft = `4px solid ${color}`;\n        labSector.style.paddingLeft = \"0.5em\";\n        labSector.style.display = \"block\";\n        labSector.style.margin = \"0.35em 0\";\n\n        const cbSector = document.createElement(\"input\");\n        cbSector.type = \"checkbox\";\n        cbSector.checked = false;\n        cbSector.dataset.sector = sector;\n\n        labSector.append(cbSector, \" \" + sector);\n        frag.appendChild(labSector);\n\n        const contSubs = document.createElement(\"div\");\n        contSubs.className = \"subsectores\";\n        contSubs.style.display = \"none\";\n        frag.appendChild(contSubs);\n\n        cbSector.addEventListener(\"change\", () => {\n          const checked = cbSector.checked;\n\n          subs.forEach(ss => {\n            const key = claveSubsector(sector, ss);\n            filtros[key] = checked;\n\n            const cbHijo = contSubs.querySelector(`input[data-filtro=\"${CSS.escape(key)}\"]`);\n            if (cbHijo) cbHijo.checked = checked;\n          });\n\n          contSubs.style.display = checked ? \"block\" : \"none\";\n          cbSector.indeterminate = false;\n\n          actualizar();\n        });\n\n        subs.forEach(ss => {\n          const key = claveSubsector(sector, ss);\n          if (typeof filtros[key] === \"undefined\") filtros[key] = false;\n\n          const lab = document.createElement(\"label\");\n          lab.className = \"subsector\";\n\n          const cb = document.createElement(\"input\");\n          cb.type = \"checkbox\";\n          cb.checked = false;\n          cb.dataset.filtro = key;\n\n          cb.addEventListener(\"change\", () => {\n            filtros[key] = cb.checked;\n\n            const anyOn = subs.some(s => filtros[claveSubsector(sector, s)] === true);\n            const allOn = subs.every(s => filtros[claveSubsector(sector, s)] === true);\n\n            cbSector.checked = allOn;\n            cbSector.indeterminate = anyOn && !allOn;\n\n            contSubs.style.display = anyOn ? \"block\" : \"none\";\n            actualizar();\n          });\n\n          lab.append(cb, \" \" + ss);\n          contSubs.appendChild(lab);\n        });\n      });\n\n      contSectores.appendChild(frag);\n\t  filtrosContainer.appendChild(detallesSectores);\n\n    }\n\n    \/* =========================\n       LISTA + PAGINACI\u00d3N\n    ========================== *\/\n    function renderizarLista(marks) {\n      listaContainer.innerHTML = \"\";\n      paginacion.innerHTML = \"\";\n\n      const total = marks.length;\n      const paginas = Math.ceil(total \/ empresasPorPagina) || 1;\n      paginaActual = Math.min(Math.max(1, paginaActual), paginas);\n\n      const slice = marks.slice(\n        (paginaActual - 1) * empresasPorPagina,\n        paginaActual * empresasPorPagina\n      );\n\n      slice.forEach(m => {\n        const d = m._data;\n        const div = document.createElement(\"div\");\n        div.className = \"empresa\";\n        div.innerHTML = `\n\t\t  <div class=\"empresa-card\">\n\t\t\t<span class=\"empresa-sector-dot\" style=\"background:${colorSector(d.sector)}\"><\/span>\n\n\t\t\t<div class=\"empresa-content\">\n\t\t\t  <strong class=\"empresa-nombre\">${d.nombre}<\/strong>\n\n\t\t\t  <div class=\"empresa-linea\">\n\t\t\t\t<em>${d.sector}${d.subsector && d.subsector !== \"\u2014\" ? \" \u00b7 \" + d.subsector : \"\"}<\/em>\n\t\t\t  <\/div>\n\n\t\t\t  <div class=\"empresa-linea\">\n\t\t\t\t<strong>Type:<\/strong> ${traducirTipo(d.tipo_slug)}\n\t\t\t  <\/div>\n\n\t\t\t  <div class=\"empresa-linea\">\n\t\t\t\t<strong>Size:<\/strong> ${formatearEmpleados(d.empleados)}\n\t\t\t  <\/div>\n\n\t\t\t  <div class=\"empresa-linea\">\n\t\t\t\t<strong>Invoicing:<\/strong> ${formatearFacturacion(d.facturacion)}\n\t\t\t  <\/div>\n\n\t\t\t  ${\n\t\t\t\td.comarcas && d.comarcas.length\n\t\t\t\t  ? `<div class=\"empresa-linea\">\n\t\t\t\t\t   <strong>` + i18nMapa.comarcas + `${d.comarcas.length > 1 ? \"s\" : \"\"}:<\/strong>\n\t\t\t\t\t   ${d.comarcas.join(\", \")}\n\t\t\t\t\t <\/div>`\n\t\t\t\t  : \"\"\n\t\t\t  }\n\n\t\t\t  ${\n\t\t\t\td.web\n\t\t\t\t  ? `<div class=\"empresa-linea empresa-web\">\n\t\t\t\t\t   <a href=\"${d.web}\" target=\"_blank\" rel=\"noopener noreferrer\">Visit website<\/a>\n\t\t\t\t\t <\/div>`\n\t\t\t\t  : \"\"\n\t\t\t  }\n\t\t\t<\/div>\n\t\t  <\/div>\n\t\t`;\n\n\n        div.addEventListener(\"click\", () => {\n\t\t  mapa.panTo(m.position);\n\t\t  mapa.setZoom(14);\n\n\t\t  \/\/ \ud83d\udd25 dispara exactamente el mismo click que en el mapa\n\t\t  google.maps.event.trigger(m, \"click\");\n\t\t});\n\n\n        listaContainer.appendChild(div);\n      });\n\n      if (paginas > 1) {\n        const prev = document.createElement(\"button\");\n        prev.textContent = i18nMapa.anterior;\n        prev.disabled = paginaActual === 1;\n        prev.onclick = () => { paginaActual--; renderizarLista(marks); };\n\n        const next = document.createElement(\"button\");\n        next.textContent = i18nMapa.siguiente;\n        next.disabled = paginaActual === paginas;\n        next.onclick = () => { paginaActual++; renderizarLista(marks); };\n\n        paginacion.append(prev, ` ${paginaActual}\/${paginas} `, next);\n      }\n    }\n\n    \/* =========================\n       ACTUALIZAR VISIBILIDAD\n    ========================== *\/\n    function actualizar() {\n      const activosSub    = hayFiltrosActivosSubsectores();\n      const activosTipo   = hayFiltrosActivosTipo();\n      const activosTam    = hayFiltrosActivosTamano();\n      const activosCom    = hayFiltrosActivosComarca();\n      const activosFac    = hayFiltrosActivosFacturacion(); \/\/ \u2705 NUEVO\n      const textoActivo   = hayTextoActivo();\n      const texto         = textoActivo ? filtros._texto.toLowerCase() : \"\";\n\t  \n\t  const hayFiltroFacturacion =\n\t\t  filtros.facturacion_min !== null &&\n\t\t  filtros.facturacion_max !== null;\n\n\n      const visibles = [];\n\n      markers.forEach(m => {\n        const d = m._data;\n\n        const keySub  = claveSubsector(d.sector, d.subsector);\n        const keyTipo = `tipo_${d.tipo_slug || \"sin_especificar\"}`;\n        const tamKey  = obtenerClaveTamano(d.empleados);\n\n        const okSub   = !activosSub  ? true : (filtros[keySub] === true);\n        const okTipo  = !activosTipo ? true : (filtros[keyTipo] === true);\n        const okTam   = !activosTam  ? true : (filtros[tamKey] === true);\n        const okTexto = !textoActivo ? true : (d.nombre || \"\").toLowerCase().includes(texto);\n\n        const okComarca = !activosCom\n          ? true\n          : (d.comarcas || []).some(nombre => filtros[`comarca_${nombre}`] === true);\n\n        \/\/ \u2705 NUEVO: facturaci\u00f3n\n        const okFacturacion = !hayFiltroFacturacion ? true : ( d.facturacion !== null && d.facturacion >= filtros.facturacion_min && d.facturacion <= filtros.facturacion_max  );\n\n\n        const visible =\n\t\t  okSub &&\n\t\t  okTipo &&\n\t\t  okTam &&\n\t\t  okTexto &&\n\t\t  okComarca &&\n\t\t  okFacturacion;\n\n\n        m.map = visible ? mapa : null;\n        if (visible) visibles.push(m);\n      });\n\n      clusterer.clearMarkers();\n      clusterer.addMarkers(visibles);\n\n      paginaActual = 1;\n      renderizarLista(visibles);\n    }\n\n    \/* =========================\n       INIT\n    ========================== *\/\n    renderizarFiltrosSectoresJerarquico();\n    actualizar();\n\n    if (loadingEl) {\n      setTimeout(() => { loadingEl.style.display = \"none\"; }, 150);\n    }\n\n  });\n});\n<\/script>\n\n<style>\n\/* =========================\n   LOADING MAPA\n   ========================= *\/\n#mapaempresas { position: relative; } \/* overlay seguro *\/\n\n#mapa-loading {\n  position: absolute;\n  inset: 0;\n  z-index: 20;\n\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n\n  background: rgba(255,255,255,0.75);\n  backdrop-filter: blur(2px);\n\n  font-weight: 600;\n  color: #004868;\n  pointer-events: none;\n}\n\n#mapa-loading .spinner {\n  width: 42px;\n  height: 42px;\n  border: 4px solid rgba(0,72,104,0.2);\n  border-top-color: #004868;\n  border-radius: 50%;\n  animation: spin 0.8s linear infinite;\n  margin-bottom: 12px;\n}\n@keyframes spin { to { transform: rotate(360deg); } }\n\n\/* =========================\n   LAYOUT (tus estilos)\n   ========================= *\/\n#mapaempresas {\n  display: flex;\n  height: calc(100vh - 90px);\n  width: 100%;\n  overflow: hidden;\n  margin: 0;\n}\n\n#info {\n  width: 40%;\n  min-width: 250px;\n  max-width: 70vw;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n}\n\n#mapa {\n  flex: 1;\n  min-width: 200px;\n  height: 100%;\n}\n\n\/* Separadores *\/\n.divider {\n  background: #ccc;\n  opacity: 0.8;\n  z-index: 5;\n}\n.divider.vertical { width: 6px; cursor: col-resize; }\n.divider.horizontal { height: 6px; cursor: row-resize; }\n.divider:hover { background: #999; }\n\n\/* Filtros *\/\n#filtros-sectores {\n  position: relative;\n  padding: 1em;\n  overflow-y: auto;\n  border-bottom: 1px solid #ccc;\n  max-height: 50%;\n}\n\n\/* Bot\u00f3n reset fijo *\/\n#btn-reset-filtros {\n  position: sticky;\n  top: 0;\n  z-index: 10;\n\n  background: rgba(0, 71, 104, 0.9);\n  color: #fff;\n  border: none;\n  padding: 10px 14px;\n  border-radius: 6px;\n  cursor: pointer;\n  font-size: 14px;\n  width: 100%;\n  font-weight: 700;\n  transition: background 0.2s;\n  backdrop-filter: blur(4px);\n  margin: 10px 0 10px 0;\n}\n#btn-reset-filtros:hover {\n  background: rgba(0, 57, 85, 0.95);\n}\n\n\/* Lista *\/\n#lista-empresas {\n  flex: 1;\n  overflow-y: auto;\n  display: flex;\n  flex-wrap: wrap;\n  gap: 1%;\n  padding: 1em;\n  justify-content: space-evenly;\n  align-content: flex-start;\n  max-height: 50%;\n}\n\n#lista-empresas .empresa {\n  background-color: #efefef;\n  padding: 10px;\n  width: 32%;\n  box-sizing: border-box;\n  border-radius: 6px;\n  cursor: pointer;\n  transition: background 0.2s;\n  margin-bottom: 10px;\n}\n#lista-empresas .empresa:hover { background-color: #ddd; }\n\n\/* Paginaci\u00f3n *\/\n#paginacion {\n  text-align: center;\n  padding: 0.5em;\n  border-top: 1px solid #ccc;\n  background: #f9f9f9;\n}\n#paginacion button {\n  padding: 6px 12px;\n  margin: 0 5px;\n  background: #004868;\n  color: white;\n  border: none;\n  border-radius: 4px;\n  cursor: pointer;\n}\n#paginacion button:disabled {\n  background: #ccc;\n  cursor: not-allowed;\n}\n\n.subsectores {\n  margin-left: 1.5em;\n  padding-left: 0.5em;\n  border-left: 1px solid rgba(0,0,0,.15);\n}\n.subsectores .subsector {\n  display: block;\n  margin-bottom: 0.2em;\n}\n\n\/* =========================\n   FACTURACI\u00d3N \u2013 SLIDER\n   ========================= *\/\n\n.facturacion-range {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  margin-bottom: 8px;\n}\n\n.facturacion-range span {\n  font-size: 12px;\n  font-weight: 600;\n  color: #004868;\n  width: 38px;\n  text-align: right;\n}\n\n.range-input {\n  -webkit-appearance: none;\n  appearance: none;\n  width: 100%;\n  height: 6px;\n  border-radius: 3px;\n  background: linear-gradient(\n    to right,\n    #cfd8dc,\n    #004868\n  );\n  outline: none;\n  cursor: pointer;\n}\n\n\/* Thumb *\/\n.range-input::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  appearance: none;\n  width: 16px;\n  height: 16px;\n  border-radius: 50%;\n  background: #004868;\n  border: 2px solid #fff;\n  box-shadow: 0 0 0 1px rgba(0,0,0,.15);\n  cursor: pointer;\n}\n\n.range-input::-moz-range-thumb {\n  width: 16px;\n  height: 16px;\n  border-radius: 50%;\n  background: #004868;\n  border: 2px solid #fff;\n  cursor: pointer;\n}\n\n\/* Diferenciar m\u00ednimo \/ m\u00e1ximo *\/\n.facturacion-range.min .range-input {\n  background: linear-gradient(to right, #004868, #cfd8dc);\n}\n\n.facturacion-range.max .range-input {\n  background: linear-gradient(to right, #cfd8dc, #004868);\n}\n\n\n.infowindow-empresa {\n  font-size: 13px;\n  line-height: 1.35;\n  color: #222;\n  max-width: 260px;\n}\n\n.infowindow-empresa .iw-titulo {\n  display: block;\n  font-size: 15px;\n  margin-bottom: 4px;\n  color: #004868;\n}\n\n.infowindow-empresa .iw-bloque {\n  margin-top: 4px;\n}\n\n.infowindow-empresa a {\n  color: #004868;\n  font-weight: 600;\n  text-decoration: none;\n}\n\n.infowindow-empresa a:hover {\n  text-decoration: underline;\n}\n\n\n\n.empresa-card {\n  font-size: 13px;\n  line-height: 1.35;\n  color: #222;\n}\n\n.empresa-nombre {\n  display: block;\n  font-size: 14px;\n  margin-bottom: 4px;\n  color: #004868;\n}\n\n.empresa-linea {\n  margin-top: 3px;\n}\n\n.empresa-web a {\n  font-weight: 600;\n  color: #004868;\n  text-decoration: none;\n}\n\n.empresa-web a:hover {\n  text-decoration: underline;\n}\n\n.empresa-card {\n  display: flex;\n  gap: 10px;\n  font-size: 13px;\n  line-height: 1.35;\n  color: #222;\n}\n\n.empresa-sector-dot {\n  width: 10px;\n  height: 10px;\n  border-radius: 50%;\n  margin-top: 6px;\n  flex-shrink: 0;\n}\n\n.empresa-content {\n  flex: 1;\n}\n\n.empresa-nombre {\n  display: block;\n  font-size: 14px;\n  margin-bottom: 4px;\n  color: #004868;\n}\n\n\n\n\/* Responsive *\/\n@media (max-width: 1024px) {\n  #mapaempresas { flex-direction: column; height: auto; }\n  #info { width: 100% !important; max-width: 100% !important; min-width: 100% !important; height: auto; }\n  #mapa { width: 100% !important; height: 45vh !important; min-height: 300px; }\n  .divider.horizontal, .divider.vertical { display: none; }\n  #filtros-sectores, #lista-empresas { max-height: none !important; height: auto !important; }\n}\n\n@media (max-width: 480px) {\n  #lista-empresas .empresa { width: 100% !important; font-size: 14px; }\n}\n<\/style>\n\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; disabled_on=&#8221;on|on|on&#8221; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221; disabled=&#8221;on&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; max_width=&#8221;2560px&#8221; min_height=&#8221;164.3px&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\t\t\t\t\n\n\t\t\t\t\t<div class=\"seccion-mapa\">\n\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t\/*body {\n\t\t\t\t\t\t\t\tfont-family: Arial;\n\t\t\t\t\t\t\t\tfont-size: 20px;\n\t\t\t\t\t\t\t\tline-height: 40px;\n\t\t\t\t\t\t\t}*\/\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t#main-content .container {\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\tmax-width: 100%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.seccion_contenida {\n\t\t\t\t\t\t\t\twidth: 80%!important;\n\t\t\t\t\t\t\t\tmax-width: 1080px!important;\n\t\t\t\t\t\t\t\tmargin: 0 auto;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#map-canvas { \n\t\t\t\t\t\t\t\theight: 600px; \n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\tmargin: 0 auto;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t#mapa {\n\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t\tmargin: 0 auto;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.seccion-mapa svg {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\twidth: 85%;\n\t\t\t\t\t\t\t\theight: 85%;\n\t\t\t\t\t\t\t\tz-index: 999;\n\t\t\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t\t\t\tleft: 125px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.seccion-mapa path {\n\t\t\t\t\t\t\t\tfill: rgba(0,0,0,0.4);\n\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/*.gm-style-iw.gm-style-iw-c {\n\t\t\t\t\t\t\t\tpadding: 20px;\n\t\t\t\t\t\t\t\tpadding-right: 20px!important;\n\t\t\t\t\t\t\t\tpadding-bottom: 20px!important;\n\t\t\t\t\t\t\t}*\/\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.gm-style .gm-style-iw-d {\n\t\t\t\t\t\t\t\toverflow: initial!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.gm-style-iw.gm-style-iw-c {\n\t\t\t\t\t\t\t\tpadding: 40px;\n\t\t\t\t\t\t\t\tpadding-right: 40px!important;\n\t\t\t\t\t\t\t\tpadding-bottom: 20px!important;\n\t\t\t\t\t\t\t\tpadding-top: 20px!important;\n\t\t\t\t\t\t\t\tmax-width: 450px!important;\n\t\t\t\t\t\t\t\tpadding-bottom: 40px!important;\n\t\t\t\t\t\t\t\tbox-shadow: 0 2px 7px 0px rgb(0 0 0 \/ 10%)!important;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.gm-style-iw.gm-style-iw-c h2 {\n\t\t\t\t\t\t\t\tfont-size: 20px;\n\t\t\t\t\t\t\t\tline-height: 1.2em;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tp.resumen {\n\t\t\t\t\t\t\t\tmargin-bottom: 15px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ta.button {\n\t\t\t\t\t\t\t\tcolor: #C31632;\n\t\t\t\t\t\t\t\tborder: 1px solid #C31632;\n\t\t\t\t\t\t\t\t\/*padding: 6px 20px;*\/\n\t\t\t\t\t\t\t\tborder-radius: 20px;\n\t\t\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t\t\t\t\/* background-color: #A3000C; *\/\n\t\t\t\t\t\t\t\t\/* color: #fff; *\/\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/*a.button:hover {\n\t\t\t\t\t\t\t\tbackground-color: #C31632;\n\t\t\t\t\t\t\t\tcolor: #fff;\n\t\t\t\t\t\t\t}*\/\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/* FILTRO *\/\n\t\t\t\t\t\t\tdiv#categorias {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\ttop: 10px;\n\t\t\t\t\t\t\t\tright: 60px;\n\t\t\t\t\t\t\t\tbackground-color: #fff;\n\t\t\t\t\t\t\t\tmax-height: 500px;\n\t\t\t\t\t\t\t\toverflow: auto;\n\t\t\t\t\t\t\t\tz-index: 99;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.btn-desplegable {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tright: -10px;\n\t\t\t\t\t\t\t\ttop: 0px;\n\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlabel.seccion {\n\t\t\t\t\t\t\t    margin: 4px 0px;\n\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t#tituloMostrarOcultar {\n\t\t\t\t\t\t\t\t\/*text-align: center;*\/\n\t\t\t\t\t\t\t\tpadding: 5px 16px; \/*5px 0px;*\/\n\t\t\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\t\t\tmin-width: 200px;\n\t\t\t\t\t\t\t\tborder-bottom: 1px solid #e6e6e6;\n\t\t\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t#contenidoMostrarOcultar {\n\t\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t\t\tpadding: 5px 20px 15px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdiv#tituloMostrarOcultar:before {\n\t\t\t\t\t\t\t\tfont-family: ETmodules;\n\t\t\t\t\t\t\t\tfont-size: 25px;\n\t\t\t\t\t\t\t\tvertical-align: bottom;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdiv#tituloMostrarOcultar.visible:before {\n\t\t\t\t\t\t\t\tcontent: '2';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdiv#tituloMostrarOcultar.oculto:before {\n\t\t\t\t\t\t\t\tcontent: '3';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.padre {\n\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/* BUSCADOR *\/\n\t\t\t\t\t\t\tdiv#buscador {\n\t\t\t\t\t\t\t\tmargin: 40px 0px;\n\t\t\t\t\t\t\t\ttext-align: center;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tinput[type=text] {\n\t\t\t\t\t\t\t\tpadding: 0.7em;\n\t\t\t\t\t\t\t\theight: 40px !important;\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\t\t\tline-height: normal !important;\n\t\t\t\t\t\t\t\tborder: 1px solid #ddd;\n\t\t\t\t\t\t\t\tcolor: #666;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/* EMPRESAS *\/\n\t\t\t\t\t\t\t#empresas {\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\tflex-direction: row;\n\t\t\t\t\t\t\t\tflex-wrap: wrap;\n\t\t\t\t\t\t\t\talign-content: flex-start;\n\t\t\t\t\t\t\t\talign-items: stretch;\n\t\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\t\tmargin-top: 40px;\n\t\t\t\t\t\t\t\tmin-width: 70%;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa {\n\t\t\t\t\t\t\t\twidth: 31%;\n\t\t\t\t\t\t\t\tpadding: 10px 30px 70px 30px; \/*10px 30px 30px 30px;*\/\n\t\t\t\t\t\t\t\tclear: both;\n\t\t\t\t\t\t\t\tmargin: 20px 20px 0px 0px;\n\t\t\t\t\t\t\t\tdisplay: none;\n\t\t\t\t\t\t\t\tflex-direction: column;\n\t\t\t\t\t\t\t\tflex-wrap: nowrap;\n\t\t\t\t\t\t\t\talign-content: flex-start;\n\t\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t\t\t\t\tbackground-color: #f9f9f9;\n\t\t\t\t\t\t\t\tborder-radius: 20px;\n\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa.itemtohide {\n\t\t\t\t\t\t\t\tdisplay: none;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa.visiblenow {\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\ttransition: display 1s;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.foto {\n\t\t\t\t\t\t\t\theight: 100px;\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\tflex-direction: row;\n\t\t\t\t\t\t\t\tflex-wrap: nowrap;\n\t\t\t\t\t\t\t\talign-content: center;\n\t\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\t\talign-items: center;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.foto>img {\n\t\t\t\t\t\t\t\tobject-fit: fill;\n\t\t\t\t\t\t\t\twidth: auto;\n\t\t\t\t\t\t\t\tmax-height: 85px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa .contenido {\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\tvertical-align: top;\n\t\t\t\t\t\t\t\tmargin-top: 10px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa .titulo {\n\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\t\tflex-direction: row;\n\t\t\t\t\t\t\t\tflex-wrap: nowrap;\n\t\t\t\t\t\t\t\talign-content: flex-start;\n\t\t\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa h2 {\n\t\t\t\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t\t\t\tline-height: 1.2em;\n\t\t\t\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa .meta {\n\t\t\t\t\t\t\t\tfont-style: italic;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/*.empresa .contenido .meta .empleados,\n\t\t\t\t\t\t\t.empresa .contenido .meta .facturacion,\n\t\t\t\t\t\t\t.empresa .contenido .meta .importador_exportador,\n\t\t\t\t\t\t\t.empresa .contenido .descripcion,\n\t\t\t\t\t\t\t.empresa .contenido .masInformacion a\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfont-family: \"Open Sans\", Helvetica, Arial, Lucida, sans-serif;\n\t\t\t\t\t\t\t}*\/\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa.socio .contenido:before {\n\t\t\t\t\t\t\t\tcontent: \"SOCIO\";\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tright: 0px;\n\t\t\t\t\t\t\t\tfloat: right;\n\t\t\t\t\t\t\t\tpadding: 0px 20px;\n\t\t\t\t\t\t\t\tborder-radius: 4px 0px 0px 4px;\n\t\t\t\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\t\t\t\tbackground-color: #000;\n\t\t\t\t\t\t\t\tfont-size: 11px;\n\t\t\t\t\t\t\t\tcolor: #fff;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa .contenido .meta .sector\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\/*font-family: \"Open Sans\", Helvetica, Arial, Lucida, sans-serif;*\/\n\t\t\t\t\t\t\t\tline-height: 1.25em;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa .descripcion p {\n\t\t\t\t\t\t\t\tline-height: 18px;\n\t\t\t\t\t\t\t\tmargin: 10px 0px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t.empresa .masInformacion {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t\tbottom: 20px;\n\t\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@media all and (max-width: 1088px){\n\t\t\t\t\t\t\t\t.empresa {\n\t\t\t\t\t\t\t\t\twidth: 47%;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@media all and (max-width: 1024px) {\n\t\t\t\t\t\t\t\tdiv#categorias {\n\t\t\t\t\t\t\t\t\tposition: relative;\n\t\t\t\t\t\t\t\t\ttop: 10px;\n\t\t\t\t\t\t\t\t\tright: 0;\n\t\t\t\t\t\t\t\t\tbackground-color: #fff;\n\t\t\t\t\t\t\t\t\tmax-height: inherit;\n\t\t\t\t\t\t\t\t\toverflow: auto;\n\t\t\t\t\t\t\t\t\tz-index: 99;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@media all and (max-width: 850px){\n\t\t\t\t\t\t\t\t.empresa {\n\t\t\t\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t<\/style>\n\t\t\t\t\t\t<!--<div id=\"sesion\"><pre>SESSI\u00d3N: Array\n(\n)\n<\/pre><\/div>-->\n\t\t\t\t\t\t<div id=\"mapa\">\n\t\t\t\t\t\t\t<div id=\"categorias\">\n\t\t\t\t\t\t\t\t<div id=\"tituloMostrarOcultar\" class=\"visible\">Hide<\/div>\n\t\t\t\t\t\t\t\t<div id=\"contenidoMostrarOcultar\"><\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div id=\"map-canvas\"><\/div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div id=\"buscador\">\n\t\t\t\t\t\t\t\t<label>Search by company name: <input type=\"text\" id=\"nombreEmpresa\" value=\"\" onkeypress=\"filterMarksNameEnter(event)\" placeholder=\"Name of the company\" \/>&nbsp;&nbsp;<img decoding=\"async\" src=\"https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/02\/search.png\" width=\"16\" onclick=\"filterMarkersName();\" style=\"vertical-align: middle; cursor: pointer;\"\/><\/label>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div id=\"empresas\" class=\"seccion_contenida\">\n\t\t\t\t\t\t\t\t<!--<img decoding=\"async\" src=\"https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/images\/loader.gif\"  width=\"150\" style=\"margin: 0 auto\" \/>-->\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<script>\n\t\t\t\t\t\t\tlet map;\n\t\t\t\t\t\t\tvar gmarkers1 = [];\n\t\t\t\t\t\t\tvar data_els_ports = data_el_baix_maestrat = data_l_alt_maestrat = data_l_alcalaten = data_la_plana_alta = data_el_alto_mijares = data_la_plana_baixa = data_alto_palancia = \"\";\n\t\t\t\t\t\t\tvar infowindow;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tvar gcomarcas = [];\t\n\t\t\t\t\t\t\tconst icons = {\n\t\t\t\t\t\t\t\tagri_food_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nagriculture: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-agricultura-5.svg', '#FF000', 1, '', 0],\nagriculture_agriculture: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-agricultura-5.svg', '#FF000', 1, '', 0],\nagriculture_2: ['', '#FF000', 1, '', 0],\nagriculture_and_livestock: ['', '#FF000', 1, '', 0],\nartistic_activities_and_leisure: ['', '#FF000', 1, '', 0],\nbeverage_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nconstruction_materials_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nbuilding_construction: ['', '#FF000', 1, '', 0],\nbuilding_finishing: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-construccion.svg', '#FF000', 1, '', 0],\ncardboard_and_graphic_arts: ['', '#FF000', 1, '', 0],\ncardboard_and_graphic_arts_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nceramic_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nceramic_industry_en: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nchemical_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nchemical_retail_trade: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\ncivil_construction: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-construccion.svg', '#FF000', 1, '', 0],\ncommercial_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nconstruction: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-construccion.svg', '#FF000', 1, '', 0],\nconstruction_facilities: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-construccion.svg', '#FF000', 1, '', 0],\nconstruction_materials_industry: ['', '#FF000', 1, '', 0],\ncosmetics_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nedition: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nelectric_power: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nelectrical_and_precision_equipment_industry: ['', '#FF000', 1, '', 0],\nengineering_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nextractive_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nfarming: ['', '#FF000', 1, '', 0],\nfarming: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-agricultura-5.svg', '#FF000', 1, '', 0],\nfinancial_and_insurance_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nfishing: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-agricultura-5.svg', '#FF000', 1, '', 0],\nfishing: ['', '#FF000', 1, '', 0],\nretail_food_trade: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nfootwear_retail_trade: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nfrits_and_enamels_industry: ['', '#FF000', 1, '', 0],\nindustry_frits_glazes: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nfurniture_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nglass_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nglass_industry: ['', '#FF000', 1, '', 0],\nindustry_habitat_bathrooms: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nhabitat_retail: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nhardware_equipments_and_precision_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nhealth_and_social_services_activities: ['', '#FF000', 1, '', 0],\nholding_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nhostelry_and_catering: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nict_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nindustry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nindustry_equipment_and_machinery: ['', '#FF000', 1, '', 0],\ninland_transportation: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nleather_and_footwear_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nlighting_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nrepair_of_equipment_and_machinery: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nrepair_of_equipment_and_machinery_en: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nmachinery_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nmanufacture_of_motor_vehicles: ['', '#FF000', 1, '', 0],\nindustry_metal_products: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nmanufacture_of_motor_vehicles: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nindustry_others: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nother_retails: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nother_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nother_wholesale_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nother_wholesale_distribution_en: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\npaper_industry: ['', '#FF000', 1, '', 0],\nindustry_paper_cardboard_and_graphic_arts: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nplastics_and_rubber_industry: ['', '#FF000', 1, '', 0],\nplastics_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\npoultry_farming: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-agricultura-5.svg', '#FF000', 1, '', 0],\npoultry_farming: ['', '#FF000', 1, '', 0],\npower_supply: ['', '#FF000', 1, '', 0],\nprofessional_and_business_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nscientific_or_technical_professional_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nprofessional_services: ['', '#FF000', 1, '', 0],\nservices_real_estate_activities: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nrental_services: ['', '#FF000', 1, '', 0],\nrental_services: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nrepair_of_equipment_and_machinery: ['', '#FF000', 1, '', 0],\nrepair_services: ['', '#FF000', 1, '', 0],\nresidential_construction: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-construccion.svg', '#FF000', 1, '', 0],\nretail_clothing_and_footwear: ['', '#FF000', 1, '', 0],\nscientists_and_technicians: ['', '#FF000', 1, '', 0],\nmarine_transport: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nservices: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\nsilviculture: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-agricultura-5.svg', '#FF000', 1, '', 0],\ntransportation_support_activities: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\ntextile_and_clothing_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\ntextile_industry: ['', '#FF000', 1, '', 0],\ntrade_fewer_products_habitat: ['', '#FF000', 1, '', 0],\ntrade_intermediaries: ['', '#FF000', 1, '', 0],\nroad_transport: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-servicios.svg', '#FF000', 1, '', 0],\ntransport_support_activities: ['', '#FF000', 1, '', 0],\nvehicle_component_manufacturing: ['', '#FF000', 1, '', 0],\nmanufacture_of_vehicle_components: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nvehicles_retail: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nvehicles_sales: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwater_treatment_and_waste_management: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nwatercrafts_manufacturing: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\nwholesale_beverage_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_trade_in_construction_materials: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_chemical_products: ['', '#FF000', 1, '', 0],\nwholesale_chemical_products: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_cosmetic_trade: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_trade_electrical_material: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_food_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_fuel_trade: ['', '#FF000', 1, '', 0],\nwholesale_furniture_and_lighting: ['', '#FF000', 1, '', 0],\nwholesale_habitat_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_hardware_and_plumbing_supplies: ['', '#FF000', 1, '', 0],\nwholesale_hardware_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_ict_equipment: ['', '#FF000', 1, '', 0],\nwholesale_jewellery: ['', '#FF000', 1, '', 0],\nwholesale_machinery_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_perfumery_and_cosmetics: ['', '#FF000', 1, '', 0],\nwholesale_pharmaceutical_products: ['', '#FF000', 1, '', 0],\nwholesale_textil_and_footwear_distribution: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_trade_wood: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwholesale_trade_in_construction_materials: ['', '#FF000', 1, '', 0],\nwholesale_trade_in_household_goods: ['', '#FF000', 1, '', 0],\nwholesale_trade_in_metals_and_minerals: ['', '#FF000', 1, '', 0],\nwholesale_trade_vehicles: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-distribucion-comercial.svg', '#FF000', 1, '', 0],\nwood_industry: ['https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/12\/icono-industria.svg', '#FF000', 1, '', 0],\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfunction initMap() {\n\t\t\t\t\t\t\t\tvar style = {\n\t\t\t\t\t\t\t\t\tnopoi: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tfeatureType: \"poi.business\",\n\t\t\t\t\t\t\t\t\t\t\tstylers: [{ visibility: \"off\" }]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"water\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#e9e9e9\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 17\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"landscape\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#f5f5f5\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 20\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"road.highway\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry.fill\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#ffffff\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 17\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"road.highway\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry.stroke\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#d10a0a\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 29\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"weight\": 0.6\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"road.arterial\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#ffffff\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 18\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"road.local\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#ffffff\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 16\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"poi\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#f5f5f5\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 21\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"poi.medical\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry.fill\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#e57787\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 21\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"poi.park\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#dedede\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 21\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"labels.text.stroke\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"visibility\": \"on\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#ffffff\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 16\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"labels.text.fill\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"saturation\": 36\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#333333\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 40\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"labels.icon\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"visibility\": \"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"poi.medical\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"labels.icon\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"visibility\": \"on\"\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"transit\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#f2f2f2\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 19\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"administrative\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry.fill\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#fefefe\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 20\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\"featureType\": \"administrative\",\n\t\t\t\t\t\t\t\t\t\t\t\"elementType\": \"geometry.stroke\",\n\t\t\t\t\t\t\t\t\t\t\t\"stylers\": [\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"color\": \"#fefefe\"\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"lightness\": 17\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"weight\": 1.2\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmap = new google.maps.Map(document.getElementById('map-canvas'), {\n\t\t\t\t\t\t\t\t\tzoom: 9,\n\t\t\t\t\t\t\t\t\tcenter: new google.maps.LatLng(40.22, -0.12),\n\t\t\t\t\t\t\t\t\tmapTypeId: google.maps.MapTypeId.ROADMAP,\n\t\t\t\t\t\t\t\t\tmapTypeControl: false,\n\t\t\t\t\t\t\t\t\tstreetViewControl: false,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmap.setOptions({ styles: style['nopoi'] });\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\/\/ Create a <script> tag and set the USGS URL as the source.\n\t\t\t\t\t\t\t\tconst script = document.createElement(\"script\");\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tvar locations = [\n\t\t\t\t\t\t\t\t[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>El Alto Palancia<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/el-alto-palancia\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '39.80706913162843', '-0.5844083839660328', ['agriculture', 'commercial_distribution', 'construction', 'industry', 'services'], 'El Alto Palancia', '9214', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/alto_palancia.geojson'],\n[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>La Plana Baixa<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/la-plana-baixa\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '39.796614688443825', '-0.19903307530560296', ['agriculture', 'commercial_distribution', 'construction', 'industry', 'services'], 'La Plana Baixa', '9216', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/la_plana_baixa.geojson'],\n[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>El Alto Mijares<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/el-alto-mijares\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '40.03060479375034', '-0.46036333359787246', ['industry'], 'El Alto Mijares', '9217', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/el_alto_mijares.geojson'],\n[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>L\\'Alcalat\u00e9n<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/lalcalaten\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '40.1032210585369', '-0.221805797556554', ['commercial_distribution', 'construction', 'industry', 'services'], 'L\\'Alcalat\u00e9n', '9218', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/l_alcalaten.geojson'],\n[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>La Plana Alta<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/la-plana-alta\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '40.05462883083954', '0.0032080624831445645', ['agriculture', 'commercial_distribution', 'construction', 'industry', 'services'], 'La Plana Alta', '9219', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/la_plana_alta.geojson'],\n[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>L\\'Alt Maestrat<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/lalt-maestrat\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '40.32862872254246', '-0.1049554862876755', ['agriculture', 'commercial_distribution', 'industry', 'services'], 'L\\'Alt Maestrat', '9220', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/l_alt_maestrat.geojson'],\n[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>El Baix Maestrat<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/el-baix-maestrat\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '40.444888517921264', '0.2745622708248322', ['agriculture', 'commercial_distribution', 'construction', 'industry', 'services'], 'El Baix Maestrat', '9221', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/el_baix_maestrat.geojson'],\n[\"<div class=\\\"content_comarca\\\">\" +\n\"<div class=\\\"titulo\\\">\" +\n\"<h2>Els Ports<\/h2>\" +\n\"<\/div>\" +\n\"<div class=\\\"masInformacion\\\">\" +\n\"<p><a class=\\\"button et_pb_button et_pb_more_button\\\" href=\\\"https:\/\/www.investincastellon.com\/en\/comarca\/els-ports\/\\\">\" +\n\"Show companies<\/a><\/p>\" +\n\"<\/div>\" +\n\"<\/div>\", '40.618953', '-0.1058838', ['commercial_distribution', 'industry'], 'Els Ports', '9222', 'https:\/\/www.investincastellon.com\/wp-content\/themes\/Divi-Child\/geodata\/els_ports.geojson'],\n\t\t\t\t\t\t\t\t];\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tinfowindow = new google.maps.InfoWindow();\n\n\t\t\t\t\t\t\t\tvar bounds = new google.maps.LatLngBounds();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (i = 0; i < locations.length; i++) {\n\t\t\t\t\t\t\t\t\tvar taxonomies = locations[i][3];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\/* INICIO COMARCA *\/\n\t\t\t\t\t\t\t\t\tvar latlng = new google.maps.LatLng(locations[i][1],locations[i][2]);\n\t\t\t\t\t\t\t\t\tdata = new google.maps.Data({ \n\t\t\t\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\t\t\t\tposition: latlng,\n\t\t\t\t\t\t\t\t\t\ttitle: locations[i][4],\n\t\t\t\t\t\t\t\t\t\tsectores: locations[i][3],\n\t\t\t\t\t\t\t\t\t\tcontent: locations[i][0]\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tdata.loadGeoJson(locations[i][6]);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\tfillColor: '#999999',\n\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\/*var infowindow = new google.maps.InfoWindow({\n\t\t\t\t\t\t\t\t\t\tcontent: locations[i][0]\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\tvar marker = new google.maps.Marker({\n\t\t\t\t\t\t\t\t\t\topacity: 0,\n\t\t\t\t\t\t\t\t\t\tposition: latlng,\n\t\t\t\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\t\t\t\ttitle: locations[i][4]\n\t\t\t\t\t\t\t\t\t});*\/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgcomarcas.push(data);\n\n\t\t\t\t\t\t\t\t\tbounds.extend(data.position);\n\t\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t\/*google.maps.event.addListener(data, 'click', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\tinfowindow.setContent(locations[i][0]);\n\t\t\t\t\t\t\t\t\t\t\tinfowindow.open(map, data);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})(data, i));*\/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseover', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\", \/*\"#C31632\",*\/\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseout', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\",\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\/\/data.setMap(map);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\/*data.addListener('mouseover', function(e) {\n\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#C31632\",\n\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\tdata.addListener('mouseout', function(e) {\n\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#000000\",\n\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t});*\/\n\t\t\t\t\t\t\t\t\t\/* FIN COMARCA *\/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor (t = 0; t < taxonomies.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar lat = locations[i][1];\n\t\t\t\t\t\t\t\t\t\tvar lon = parseFloat(locations[i][2]) + (t*0.025);\n\t\t\t\t\t\t\t\t\t\tconsole.log(icons[taxonomies[t]][0] + \" (\" + lat + \", \" + lon + \")\");\n\t\t\t\t\t\t\t\t\t\tmarker = new google.maps.Marker({\n\t\t\t\t\t\t\t\t\t\t\tposition: new google.maps.LatLng(lat, lon),\n\t\t\t\t\t\t\t\t\t\t\ticon: {\n\t\t\t\t\t\t\t\t\t\t\t\turl: icons[taxonomies[t]][0],\n\t\t\t\t\t\t\t\t\t\t\t\tfillColor: icons[taxonomies[t]][1],\n\t\t\t\t\t\t\t\t\t\t\t\tfillOpacity: icons[taxonomies[t]][2],\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: icons[taxonomies[t]][3],\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: icons[taxonomies[t]][4],\n\t\t\t\t\t\t\t\t\t\t\t\tsize: new google.maps.Size(28, 28),\n\t\t\t\t\t\t\t\t\t\t\t\tscaledSize: new google.maps.Size(28, 28),\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\t\t\t\t\tvisible: false,\n\t\t\t\t\t\t\t\t\t\t\tcategory: taxonomies[t],\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tgmarkers1.push(marker);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(marker, 'click', (function (marker, i) {\n\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\tinfowindow.setContent(locations[i][0]);\n\t\t\t\t\t\t\t\t\t\t\t\tinfowindow.open(map, marker);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(marker, i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\/* EJEMPLO DE CAMBIO DE COLOR Y ELIMINACI\u00d3N DE EVENTO CLICK DE UNA COMARCA - PARA EL FILTRO*\/\n\t\t\t\t\t\t\t\t\/*for (i = 0; i < locations.length; i++) {\n\t\t\t\t\t\t\t\t\tdata = gcomarcas[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(data.title == \"L'Alt Maestrat\"){\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.clearListeners(data, 'click');\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\",\n\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseover', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseout', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}*\/\n\t\t\t\t\t\t\t\t\/* FIN EJEMPLO - PARA EL FILTRO*\/\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tjQuery(document).ready(function(){\n\t\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\t\ttype : \"post\",\n\t\t\t\t\t\t\t\t\turl : 'https:\/\/www.investincastellon.com\/wp-admin\/admin-ajax.php', \/\/ Pon aqu\u00ed tu URL\n\t\t\t\t\t\t\t\t\tdata : {\n\t\t\t\t\t\t\t\t\t\taction: \"obtener_filtro_provincia_mapa\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\terror: function(response){\n\t\t\t\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tsuccess: function(resultado) {\n\t\t\t\t\t\t\t\t\t\t$('#contenidoMostrarOcultar').html(resultado);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery('#tituloMostrarOcultar').click(function(){\n\t\t\t\t\t\t\t\t\tif(jQuery(this).hasClass('visible')) {\n\t\t\t\t\t\t\t\t\t\tjQuery('#contenidoMostrarOcultar').hide(1000);\n\t\t\t\t\t\t\t\t\t\tjQuery(this).removeClass('visible');\n\t\t\t\t\t\t\t\t\t\tjQuery(this).addClass('oculto');\n\t\t\t\t\t\t\t\t\t\tjQuery(this).html(\"Show\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tjQuery('#contenidoMostrarOcultar').show(1000);\n\t\t\t\t\t\t\t\t\t\tjQuery(this).removeClass('oculto');\n\t\t\t\t\t\t\t\t\t\tjQuery(this).addClass('visible');\n\t\t\t\t\t\t\t\t\t\tjQuery(this).html(\"Hide\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\/* Desplegable filtro padres\/hijos *\/\n\t\t\t\t\t\t\t\tjQuery('.padre .btn-desplegable').click(function(){\n\t\t\t\t\t\t\t\t\t\/\/\/\/console.log(\"PARENT AFTER CLICK\");\n\t\t\t\t\t\t\t\t\t\/\/\/\/console.log(\"CONTENT: \"`+ jQuery(this).content());\n\t\t\t\t\t\t\t\t\tvar padre = jQuery(this).parent();\n\t\t\t\t\t\t\t\t\tpadre.children('.hijos').toggle();\n\t\t\t\t\t\t\t\t\tif( padre.hasClass('cerrado') ){\n\t\t\t\t\t\t\t\t\t\tpadre.removeClass('cerrado');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tpadre.addClass('cerrado');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\/* Si se selecciona un checkbox padre se activan o desactivan todos sus hijos *\/\n\t\t\t\t\t\t\t\tjQuery('.padre .chkCategorias').change(function(e){\n\t\t\t\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\t\t\t\te.stopPropagation();\n\t\t\t\t\t\t\t\t\tvar checkbx = jQuery(this);\n\t\t\t\t\t\t\t\t\tvar hijos = checkbx.parent().parent().find('.hijos');\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\thijos.find('.chkCategorias').each(function(){\n\t\t\t\t\t\t\t\t\t\tif ( (checkbx.prop('checked') == true) && (jQuery(this).prop('checked') == true) ){\n\t\t\t\t\t\t\t\t\t\t\t\/\/\/\/console.log(\"OPC. 1: parent = \" + checkbx.prop('checked') + \"; hijo: \" + jQuery(this).prop('checked'));\n\t\t\t\t\t\t\t\t\t\t\tjQuery(this).prop('checked', true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse if ( (checkbx.prop('checked') == false) && (jQuery(this).prop('checked') == false) ){\n\t\t\t\t\t\t\t\t\t\t\t\/\/\/\/console.log(\"OPC. 2: parent = \" + checkbx.prop('checked') + \"; hijo: \" + jQuery(this).prop('checked'));\n\t\t\t\t\t\t\t\t\t\t\tjQuery(this).prop('checked', false);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\/\/\/\/console.log(\"OPC. 3: parent = \" + checkbx.prop('checked') + \"; hijo: \" + jQuery(this).prop('checked'));\n\t\t\t\t\t\t\t\t\t\t\tjQuery(this).click();\n\t\t\t\t\t\t\t\t\t\t\tif ( checkbx.prop('checked') == true)\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(this).prop('checked', true);\n\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery(this).prop('checked', false);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\/* FILTRO *\/\n\t\t\t\t\t\t\tfilterMarkersCheckbox = function (cb) {\n\t\t\t\t\t\t\t\tvar category = cb.value;\n\t\t\t\t\t\t\t\tvar sectorid = cb.id;\n\t\t\t\t\t\t\t\tvar estadoCb = cb.checked;\n\t\t\t\t\t\t\t\tvar activado = false;\n\t\t\t\t\t\t\t\tvar todasActivadas = true;\n\t\t\t\t\t\t\t\tconsole.log(\"Sector seleccionado: \" + category);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\/* Guardado de variables de sesi\u00f3n opciones de men\u00fa *\/\n\t\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\t\ttype : \"post\",\n\t\t\t\t\t\t\t\t\turl : 'https:\/\/www.investincastellon.com\/wp-admin\/admin-ajax.php', \/\/ Pon aqu\u00ed tu URL\n\t\t\t\t\t\t\t\t\tdata : {\n\t\t\t\t\t\t\t\t\t\taction: \"actualiza_variable_sesion\",\n\t\t\t\t\t\t\t\t\t\tnombreVar: sectorid,\n\t\t\t\t\t\t\t\t\t\tvalorVar: estadoCb,\n\t\t\t\t\t\t\t\t\t\tvariable: \"sectoresActivos\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\terror: function(response){\n\t\t\t\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tsuccess: function(resultado) {\n\t\t\t\t\t\t\t\t\t\t\/\/$('#sesion').html(resultado);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tjQuery(\".chkCategorias\").each(function(){\n\t\t\t\t\t\t\t\t\tif (!this.checked) {\n\t\t\t\t\t\t\t\t\t\ttodasActivadas = false;\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (i = 0; i < gmarkers1.length; i++) {\n\t\t\t\t\t\t\t\t\tconsole.log(\"CAT: \" + category + \" -> \" + gmarkers1[i].category);\n\t\t\t\t\t\t\t\t\tvar idCat = \"#cbox_\" + gmarkers1[i].category;\n\t\t\t\t\t\t\t\t\tif(jQuery(idCat).is( \":checked\" ))\n\t\t\t\t\t\t\t\t\t\tgmarkers1[i].setVisible(true);\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tgmarkers1[i].setVisible(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (i = 0; i < gcomarcas.length; i++) {\n\t\t\t\t\t\t\t\t\tactivado = false;\n\t\t\t\t\t\t\t\t\tdata = gcomarcas[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(todasActivadas){\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.clearListeners(data, 'mouseover');\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.clearListeners(data, 'mouseout');\n\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#000000\",\n\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'click', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\tinfowindow.setContent(data.content);\n\t\t\t\t\t\t\t\t\t\t\t\tinfowindow.open(map, data);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseover', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#00ABC8\", \/*\"#C31632\",*\/\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseout', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#000000\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\tjQuery(\".chkCategorias\").each(function(){\n\t\t\t\t\t\t\t\t\t\t\tif (this.checked) {\n\t\t\t\t\t\t\t\t\t\t\t\tcategory = jQuery(this).val();\n\t\t\t\t\t\t\t\t\t\t\t\tif( data.sectores.includes(category) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\tactivado = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"SECTORES COMARCA \" + data.title + \": \" + data.sectores + \"\\n ACTIVADO: \" + activado);\n\t\t\t\t\t\t\t\t\t\t\/\/if(data.title == \"L'Alt Maestrat\"){\n\t\t\t\t\t\t\t\t\t\tif(!activado){\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.clearListeners(data, 'click');\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\",\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseover', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseout', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#999999\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.clearListeners(data, 'mouseover');\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.clearListeners(data, 'mouseout');\n\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#000000\",\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'click', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tinfowindow.setContent(data.content);\n\t\t\t\t\t\t\t\t\t\t\t\t\tinfowindow.open(map, data);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseover', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#00ABC8\", \/*\"#C31632\",*\/\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tgoogle.maps.event.addListener(data, 'mouseout', (function (data, i) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdata.setStyle({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfillColor: \"#000000\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeWeight: 0.5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstrokeColor: '#FFFFFF'\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})(data, i));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfilterMarksNameEnter = function (e) {\n\t\t\t\t\t\t\t\tif (e.keyCode == 13) {\n\t\t\t\t\t\t\t\t\tfilterMarkersName();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfilterMarkersName = function () {\n\t\t\t\t\t\t\t\tnombreBuscado = document.getElementById('nombreEmpresa').value;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\t\ttype : \"post\",\n\t\t\t\t\t\t\t\t\turl : 'https:\/\/www.investincastellon.com\/wp-admin\/admin-ajax.php', \/\/ Pon aqu\u00ed tu URL\n\t\t\t\t\t\t\t\t\tdata : {\n\t\t\t\t\t\t\t\t\t\t\/*action: \"buscar_empresa_provincia_mapa\",*\/\n\t\t\t\t\t\t\t\t\t\taction: \"obtener_empresas_buscador_mapa_provincia\",\n\t\t\t\t\t\t\t\t\t\tnombre: nombreBuscado,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\/*dataType: 'json',*\/\n\t\t\t\t\t\t\t\t\terror: function(response){\n\t\t\t\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tsuccess: function(resultado) {\n\t\t\t\t\t\t\t\t\t\tif(resultado == \"NO ENCONTRADO\"){\n\t\t\t\t\t\t\t\t\t\t\talert(\"No se ha encontrado ninguna empresa\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\/*console.table(resultado.data);\n\t\t\t\t\t\t\t\t\t\t\tconsole.info(resultado.data);\n\t\t\t\t\t\t\t\t\t\t\tvar numElems = Object.keys(resultado.data).length;\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"NUM: \" + numElems + \"\\n\\t\" + JSON.stringify(resultado.data));*\/\n\t\t\t\t\t\t\t\t\t\t\t$('#empresas').html(resultado);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tjQuery([document.documentElement, document.body]).animate({\n\t\t\t\t\t\t\t\t\t\t\t\tscrollTop: jQuery('#buscador').offset().top - 60\n\t\t\t\t\t\t\t\t\t\t\t}, 2000);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfunction myClick(id){\n\t\t\t\t\t\t\t\t\/*$.ajax({\n\t\t\t\t\t\t\t\t\ttype : \"post\",\n\t\t\t\t\t\t\t\t\turl : 'https:\/\/www.investincastellon.com\/wp-admin\/admin-ajax.php', \/\/ Pon aqu\u00ed tu URL\n\t\t\t\t\t\t\t\t\tdata : {\n\t\t\t\t\t\t\t\t\t\taction: \"obtener_datos_empresa\",\n\t\t\t\t\t\t\t\t\t\tidEmpresa: id\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\t\t\t\terror: function(response){\n\t\t\t\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tsuccess: function(resultado) {\n\t\t\t\t\t\t\t\t\t\tconsole.table(resultado);\n\t\t\t\t\t\t\t\t\t\twindow.location.href = resultado.data + \"?empresa=\" + id;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});*\/\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\t\ttype : \"post\",\n\t\t\t\t\t\t\t\t\turl : 'https:\/\/www.investincastellon.com\/wp-admin\/admin-ajax.php', \/\/ Pon aqu\u00ed tu URL\n\t\t\t\t\t\t\t\t\tdata : {\n\t\t\t\t\t\t\t\t\t\taction: \"actualiza_variable_sesion\",\n\t\t\t\t\t\t\t\t\t\tnombreVar: \"localiza\",\n\t\t\t\t\t\t\t\t\t\tvalorVar: id\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\terror: function(response){\n\t\t\t\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tsuccess: function(resultado) {\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"BUSCO EMPRESA \" + id);\n\t\t\t\t\t\t\t\t\t\tconsole.table(resultado);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$.ajax({\n\t\t\t\t\t\t\t\t\t\t\ttype : \"post\",\n\t\t\t\t\t\t\t\t\t\t\turl : 'https:\/\/www.investincastellon.com\/wp-admin\/admin-ajax.php', \/\/ Pon aqu\u00ed tu URL\n\t\t\t\t\t\t\t\t\t\t\tdata : {\n\t\t\t\t\t\t\t\t\t\t\t\taction: \"obtener_datos_empresa\",\n\t\t\t\t\t\t\t\t\t\t\t\tidEmpresa: id,\n\t\t\t\t\t\t\t\t\t\t\t\tvariable: \"localizacion\"\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\tdataType: 'json',\n\t\t\t\t\t\t\t\t\t\t\terror: function(response){\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.log(response);\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\tsuccess: function(resultado) {\n\t\t\t\t\t\t\t\t\t\t\t\tconsole.table(resultado);\n\t\t\t\t\t\t\t\t\t\t\t\t\/\/window.location.href = resultado.data;\n\t\t\t\t\t\t\t\t\t\t\t\twindow.open(\n\t\t\t\t\t\t\t\t\t\t\t\t  resultado.data,\n\t\t\t\t\t\t\t\t\t\t\t\t  '_blank' \/\/ <- This is what makes it open in a new window.\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfunction goEmpresa(){\n\t\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\t\tjQuery([document.documentElement, document.body]).stop().animate({\n\t\t\t\t\t\t\t\t\tscrollTop: jQuery('#buscador').offset().top - 60\n\t\t\t\t\t\t\t\t}, 2000);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\/\/ Loop through the results array and place a marker for each\n\t\t\t\t\t\t\t\/\/ set of coordinates.\n\t\t\t\t\t\t\tconst eqfeed_callback = function (results) {\n\t\t\t\t\t\t\t  for (let i = 0; i < results.features.length; i++) {\n\t\t\t\t\t\t\t\tconst coords = results.features[i].geometry.coordinates;\n\t\t\t\t\t\t\t\tconst latLng = new google.maps.LatLng(coords[1], coords[0]);\n\n\t\t\t\t\t\t\t\tnew google.maps.Marker({\n\t\t\t\t\t\t\t\t  position: latLng,\n\t\t\t\t\t\t\t\t  map: map,\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t  }\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t<\/script>\n\t\t\t\t\t\t\n\t\t\t\t\t\t<script src=\"https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyC8YJbl7kqzgDBCpmFcMdQxCzvuRkrBfkE&callback=initMap\"><\/script>\n\t\t\t\t\t<\/div>\n\n\t\t\t[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; use_background_color_gradient=&#8221;on&#8221; background_color_gradient_direction=&#8221;148deg&#8221; background_color_gradient_stops=&#8221;#89dc65 0%|#00abc8 100%&#8221; background_image=&#8221;https:\/\/www.investincastellon.com\/wp-content\/uploads\/2022\/07\/actionvance-fIC7qz4HNqI-unsplash-1.jpg&#8221; background_position=&#8221;top_center&#8221; background_vertical_offset=&#8221;100%&#8221; background_blend=&#8221;multiply&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.4&#8243; _dynamic_attributes=&#8221;content&#8221; _module_preset=&#8221;default&#8221; header_font=&#8221;|700||on|||||&#8221; header_text_color=&#8221;#FFFFFF&#8221; header_font_size=&#8221;40px&#8221; header_letter_spacing=&#8221;1px&#8221; global_colors_info=&#8221;{}&#8221;]@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF90aXRsZSIsInNldHRpbmdzIjp7ImJlZm9yZSI6IjxoMT4iLCJhZnRlciI6IjwvaDE+IiwiZW5hYmxlX2h0bWwiOiJvZmYifX0=@[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; module_id=&#8221;sectores-clave&#8221; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;||3px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row column_structure=&#8221;3_5,2_5&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;3_5&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; header_2_font=&#8221;|700|||||||&#8221; header_2_text_align=&#8221;left&#8221; header_2_font_size=&#8221;38px&#8221; header_2_letter_spacing=&#8221;1px&#8221; header_2_line_height=&#8221;1.2em&#8221; text_orientation=&#8221;center&#8221; custom_margin=&#8221;||19px|||&#8221; header_2_text_align_tablet=&#8221;left&#8221; header_2_text_align_phone=&#8221;left&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-9070","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/pages\/9070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/comments?post=9070"}],"version-history":[{"count":6,"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/pages\/9070\/revisions"}],"predecessor-version":[{"id":15161,"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/pages\/9070\/revisions\/15161"}],"wp:attachment":[{"href":"https:\/\/www.investincastellon.com\/en\/wp-json\/wp\/v2\/media?parent=9070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}