{"id":1873,"date":"2026-04-01T20:16:15","date_gmt":"2026-04-01T20:16:15","guid":{"rendered":"https:\/\/insiderperutours.com\/?page_id=1873"},"modified":"2026-04-01T21:02:59","modified_gmt":"2026-04-01T21:02:59","slug":"cusco-tours","status":"publish","type":"page","link":"https:\/\/insiderperutours.com\/en\/cusco-tours\/","title":{"rendered":"cusco-tours"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1873\" class=\"elementor elementor-1873\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-dfa7372 e-con-full e-flex e-con e-parent\" data-id=\"dfa7372\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-151c76a elementor-widget elementor-widget-html\" data-id=\"151c76a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<section class=\"cusco-related-tours civitatis-style\">\r\n  <div class=\"cusco-related-container\">\r\n\r\n    <div class=\"cusco-related-heading\">\r\n      <h2>Tours en Cusco que no te puedes perder<\/h2>\r\n      <p>Explora experiencias inolvidables en la capital hist\u00f3rica del Per\u00fa.<\/p>\r\n    <\/div>\r\n\r\n    <div class=\"cusco-related-list\" id=\"cuscoTours\">\r\n      <p style=\"padding:20px;text-align:center;\">Cargando tours...<\/p>\r\n    <\/div>\r\n\r\n  <\/div>\r\n<\/section>\r\n\r\n<script>\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n  const container = document.getElementById(\"cuscoTours\");\r\n\r\n  fetch(\"https:\/\/insiderperutours.com\/wp-json\/wp\/v2\/tours?_embed\")\r\n    .then(res => res.json())\r\n    .then(data => {\r\n\r\n      const toursCusco = data.filter(tour => {\r\n        const rawRegion = tour?.acf?.region || \"\";\r\n        const regionValue = String(rawRegion).split(\":\")[0].trim().toLowerCase();\r\n\r\n        const destinationTerms = tour?._embedded?.[\"wp:term\"]?.[1] || [];\r\n        const hasCuscoDestination = destinationTerms.some(term =>\r\n          (term.name && term.name.toLowerCase() === \"cusco\") ||\r\n          (term.slug && term.slug.toLowerCase() === \"cusco\")\r\n        );\r\n\r\n        return regionValue === \"cusco\" || hasCuscoDestination;\r\n      });\r\n\r\n      if (!toursCusco.length) {\r\n        container.innerHTML = `\r\n          <p style=\"padding:20px;text-align:center;color:#666;\">\r\n            No se encontraron tours relacionados con Cusco.\r\n          <\/p>\r\n        `;\r\n        return;\r\n      }\r\n\r\n      container.innerHTML = toursCusco.map(tour => {\r\n        const title = tour.title?.rendered || \"Tour\";\r\n        const link = tour.link || \"#\";\r\n        const image = tour._embedded?.[\"wp:featuredmedia\"]?.[0]?.source_url || \"\";\r\n        const price = tour?.acf?.price_from || \"\";\r\n        const duration = tour?.acf?.duracion || \"\";\r\n        const excerpt = tour?.excerpt?.rendered\r\n          ? tour.excerpt.rendered.replace(\/<[^>]*>\/g, \"\").trim()\r\n          : \"Descubre una experiencia inolvidable en Cusco.\";\r\n\r\n        return `\r\n          <a href=\"${link}\" class=\"civi-tour-card\">\r\n            \r\n            <div class=\"civi-tour-image\">\r\n              <img decoding=\"async\" src=\"${image}\" alt=\"${title}\">\r\n            <\/div>\r\n\r\n            <div class=\"civi-tour-info\">\r\n              <h3>${title}<\/h3>\r\n\r\n              <div class=\"civi-tour-meta-top\">\r\n                <span class=\"civi-tour-destination\">Cusco<\/span>\r\n              <\/div>\r\n\r\n              <p>${excerpt}<\/p>\r\n\r\n              <div class=\"civi-tour-meta-bottom\">\r\n                ${duration ? `<span>\u23f1 ${duration}<\/span>` : \"\"}\r\n                <span>\u2714 Cancelaci\u00f3n gratuita<\/span>\r\n              <\/div>\r\n            <\/div>\r\n\r\n            <div class=\"civi-tour-side\">\r\n              <div class=\"civi-tour-price-wrap\">\r\n                <small>Desde<\/small>\r\n                <strong>${price ? \"$\" + price : \"\"}<\/strong>\r\n              <\/div>\r\n              <span class=\"civi-tour-btn\">Ver detalles<\/span>\r\n            <\/div>\r\n\r\n          <\/a>\r\n        `;\r\n      }).join(\"\");\r\n    })\r\n    .catch(error => {\r\n      console.error(error);\r\n      container.innerHTML = `\r\n        <p style=\"padding:20px;text-align:center;color:red;\">\r\n          Error al cargar los tours.\r\n        <\/p>\r\n      `;\r\n    });\r\n});\r\n<\/script>\r\n\r\n<style>\r\n.civitatis-style{\r\n  padding: 80px 20px;\r\n  background: #f8f8fb;\r\n}\r\n\r\n.cusco-related-container{\r\n  max-width: 1280px;\r\n  margin: auto;\r\n}\r\n\r\n.cusco-related-heading{\r\n  text-align: center;\r\n  margin-bottom: 40px;\r\n}\r\n\r\n.cusco-related-heading h2{\r\n  font-size: 40px;\r\n  font-weight: 800;\r\n  margin-bottom: 10px;\r\n}\r\n\r\n.cusco-related-heading p{\r\n  font-size: 18px;\r\n  color: #666;\r\n}\r\n\r\n.cusco-related-list{\r\n  display: flex;\r\n  flex-direction: column;\r\n  gap: 22px;\r\n}\r\n\r\n\/* CARD *\/\r\n.civi-tour-card{\r\n  display: grid;\r\n  grid-template-columns: 280px 1fr 200px;\r\n  gap: 24px;\r\n  background: #fff;\r\n  border-radius: 20px;\r\n  padding: 16px;\r\n  text-decoration: none;\r\n  box-shadow: 0 10px 25px rgba(0,0,0,.08);\r\n  transition: .3s;\r\n}\r\n\r\n.civi-tour-card:hover{\r\n  transform: translateY(-5px);\r\n}\r\n\r\n\/* IMAGE *\/\r\n.civi-tour-image{\r\n  height: 200px;\r\n  border-radius: 15px;\r\n  overflow: hidden;\r\n}\r\n\r\n.civi-tour-image img{\r\n  width: 100%;\r\n  height: 100%;\r\n  object-fit: cover;\r\n}\r\n\r\n\/* INFO *\/\r\n.civi-tour-info h3{\r\n  font-size: 20px;\r\n  font-weight: 800;\r\n  margin-bottom: 10px;\r\n  color: #111;\r\n}\r\n\r\n\/* BADGE COLOR HOME *\/\r\n.civi-tour-destination{\r\n  background: rgba(242,175,41,0.2);\r\n  color: #F2AF29;\r\n  padding: 6px 12px;\r\n  border-radius: 20px;\r\n  font-size: 13px;\r\n  font-weight: 700;\r\n}\r\n\r\n.civi-tour-info p{\r\n  font-size: 15px;\r\n  color: #555;\r\n  margin: 10px 0;\r\n}\r\n\r\n\/* META *\/\r\n.civi-tour-meta-bottom{\r\n  font-size: 14px;\r\n  color: #777;\r\n  display: flex;\r\n  gap: 15px;\r\n}\r\n\r\n\/* PRICE *\/\r\n.civi-tour-price-wrap{\r\n  text-align: right;\r\n}\r\n\r\n.civi-tour-price-wrap small{\r\n  font-size: 13px;\r\n  color: #888;\r\n}\r\n\r\n.civi-tour-price-wrap strong{\r\n  font-size: 32px;\r\n  font-weight: 800;\r\n  color: #F2AF29;\r\n}\r\n\r\n\/* BUTTON *\/\r\n.civi-tour-btn{\r\n  background: #F2AF29;\r\n  color: #fff;\r\n  padding: 12px 24px;\r\n  border-radius: 50px;\r\n  font-weight: 700;\r\n  text-align: center;\r\n  display: inline-block;\r\n  margin-top: 10px;\r\n  transition: .3s;\r\n}\r\n\r\n.civi-tour-btn:hover{\r\n  background: #d9991f;\r\n}\r\n\r\n\/* RESPONSIVE *\/\r\n@media(max-width:900px){\r\n  .civi-tour-card{\r\n    grid-template-columns: 1fr;\r\n  }\r\n\r\n  .civi-tour-price-wrap{\r\n    text-align: left;\r\n  }\r\n}\r\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Tours en Cusco que no te puedes perder Explora experiencias inolvidables en la capital hist\u00f3rica del Per\u00fa. Cargando tours&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"_acf_changed":false,"_eb_attr":"","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","_glsr_average":0,"_glsr_ranking":0,"_glsr_reviews":0,"_joinchat":[],"footnotes":""},"class_list":["post-1873","page","type-page","status-publish","hentry","entry"],"acf":[],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"_links":{"self":[{"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/pages\/1873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/comments?post=1873"}],"version-history":[{"count":19,"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/pages\/1873\/revisions"}],"predecessor-version":[{"id":1905,"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/pages\/1873\/revisions\/1905"}],"wp:attachment":[{"href":"https:\/\/insiderperutours.com\/en\/wp-json\/wp\/v2\/media?parent=1873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}