{"id":240,"date":"2024-12-04T12:16:03","date_gmt":"2024-12-04T12:16:03","guid":{"rendered":"\/?page_id=240"},"modified":"2026-06-08T16:45:32","modified_gmt":"2026-06-08T16:45:32","slug":"visitas-guiadas","status":"publish","type":"page","link":"\/?page_id=240","title":{"rendered":"Visitas guiadas"},"content":{"rendered":"\n<p class=\"has-text-align-center wp-block-paragraph\"><\/p>\n\n\n\n<!DOCTYPE html>\n<html lang=\"es\">\n<head>\n  <meta charset=\"UTF-8\" \/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\/>\n  <title>Visitas Acad\u00e9micas &#8211; Parque Estadio Nacional<\/title>\n  <style>\n    body {\n      font-family: Arial, sans-serif;\n      margin: 0;\n      padding: 0;\n    }\n    .banner123 {\n      width: 100% !important;\n      max-width: none !important;\n      background-color: #00d1c1;\n      color: white;\n      text-align: center;\n      padding: 20px 10px;\n    }\n    .banner123 h1 {\n      text-transform: uppercase;\n      font-weight: bold;\n      font-size: 2.5rem;\n      margin: 0;\n      color: white;\n    }\n    .content {\n      padding: 20px;\n      max-width: 800px;\n      margin: 0 auto;\n      text-align: center;\n    }\n    .form-link {\n      display: inline-block;\n      margin-top: 20px;\n      padding: 10px 20px;\n      background-color: #007BFF;\n      color: white;\n      text-decoration: none;\n      border-radius: 5px;\n    }\n    .form-link:hover {\n      background-color: #0056b3;\n    }\n  <\/style>\n<\/head>\n<body>\n  <div class=\"banner123\">\n    <h1>VEN A CONOCER EL PARQUE ESTADIO NACIONAL<\/h1>\n  <\/div>\n\n  <div class=\"content\">\n    <p>El Parque Estadio Nacional tiene abiertas sus puertas para visitas guiadas, destinadas a turistas\nnacionales e internacionales.\n<\/p>\n    <p>El tope es de 30 personas por recorrido, previa inscripci\u00f3n. Los horarios son de lunes a viernes, desde las 9 a 10 y de 11 a 12 horas.\n<\/p>\n    <p>En la secci\u00f3n &#8220;Observaciones y motivo&#8221;, debes indicar el d\u00eda que pretendes asistir, franja\nhoraria, el n\u00famero de asistentes, nombre, n\u00famero de documento de identidad y procedencia\nde los visitantes. Nuestro equipo recibe solicitudes, hasta las 18 horas del d\u00eda anterior a la\nvisita.<\/p>\n  <\/div>\n\n  <!-- Contenedor con ID -->\n  <div id=\"formulario-container\" class=\"mt-24 max-w-3xl mx-auto p-6 bg-gray-100 rounded-lg shadow-md\">\n    <h2 class=\"text-2xl font-bold mb-4 text-center\">Formulario de Visitas Guiadas<\/h2>\n    <form action=\"#\" method=\"POST\" class=\"space-y-6 inicial\">\n      <div>\n        <label for=\"nombres\" class=\"block text-sm font-medium text-gray-700\">Nombres *<\/label>\n        <input type=\"text\" id=\"nombres\" name=\"nombres\" placeholder=\"Tu nombre completo\" required class=\"w-full mt-2 p-3 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500\">\n      <\/div>\n      <div>\n        <label for=\"correo\" class=\"block text-sm font-medium text-gray-700\">Correo *<\/label>\n        <input type=\"email\" id=\"correo\" name=\"correo\" placeholder=\"tucorreo@ejemplo.com\" required class=\"w-full mt-2 p-3 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500\">\n      <\/div>\n      <div>\n        <label for=\"telefono\" class=\"block text-sm font-medium text-gray-700\">Tel\u00e9fono *<\/label>\n        <input type=\"tel\" id=\"telefono\" name=\"telefono\" placeholder=\"123456789\" required class=\"w-full mt-2 p-3 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500\">\n      <\/div>\n      <div>\n        <label for=\"institucion\" class=\"block text-sm font-medium text-gray-700\">De qu\u00e9 instituci\u00f3n nos escribe *<\/label>\n        <input type=\"text\" id=\"institucion\" name=\"institucion\" placeholder=\"Nombre de la instituci\u00f3n\" required class=\"w-full mt-2 p-3 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500\">\n      <\/div>\n      <div>\n        <label for=\"observaciones\" class=\"block text-sm font-medium text-gray-700\">Observaciones o motivos *<\/label>\n        <textarea id=\"observaciones\" name=\"observaciones\" rows=\"4\" placeholder=\"Cu\u00e9ntanos m\u00e1s sobre tu visita\" required class=\"w-full mt-2 p-3 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500\"><\/textarea>\n      <\/div>\n      <div class=\"text-center\">\n        <button type=\"submit\" class=\"px-6 py-3 bg-blue-600 text-white font-bold rounded-md shadow hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500\">\n          Enviar Solicitud\n        <\/button>\n      <\/div>\n    <\/form>\n  <\/div>\n\n  <script>\n \n setTimeout(()=>{\n  async function createNotifications(toUser, type, linkTo, content) {\n      return await fetch('https:\/\/gestion.eventos.sit-e.cl\/api\/notifications\/send-visit-request-form', {\n        method: 'POST',\n        mode: 'cors',\n        headers: { 'Content-Type': 'application\/json' },\n        body: JSON.stringify({\n          toUserId: toUser,\n          type: type,\n          linkTo: linkTo,\n          content: content,\n          readedAt: null,\n          createdAt: new Date(),\n        })\n      })\n      .then(res => res.json())\n      .then(data => {\n        if (data.error) {\n          console.log('Error creating notification:', data.error);\n          throw new Error(data.error);\n        }\n        return data;\n      })\n      .catch(error => {\n        console.log('Error creating notification:', error);\n        throw error;\n      });\n    }\n\n    document.querySelector('form.inicial').addEventListener('submit', async function (event) {\n      event.preventDefault();\n      event.stopPropagation();\n      event.stopImmediatePropagation();\n\n      const nombres = document.getElementById('nombres').value.trim();\n      const correo = document.getElementById('correo').value.trim();\n      const telefono = document.getElementById('telefono').value.trim();\n      const institucion = document.getElementById('institucion').value.trim();\n      const observaciones = document.getElementById('observaciones').value.trim();\n\n      \/\/ Validar que todos los campos est\u00e9n llenos\n      if (!nombres || !correo || !telefono || !institucion || !observaciones) {\n        alert('Por favor, completa todos los campos del formulario.');\n        return;\n      }\n\n      \/\/ Validar formato de correo\n      const emailRegex = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/;\n      if (!emailRegex.test(correo)) {\n        alert('Por favor, ingresa un correo electr\u00f3nico v\u00e1lido.');\n        return;\n      }\n\n      const contenido = `\n        Nombre: ${nombres}\n        Correo: ${correo}\n        Tel\u00e9fono: ${telefono}\n        Instituci\u00f3n: ${institucion}\n        Observaciones: ${observaciones}\n      `;\n\n      try {\n        await createNotifications(\n          'usuario-destino-id',  \/\/ Cambia esto por el ID real del receptor\n          'visita-guiada',\n          'https:\/\/parque.estadio.cl\/formulario',\n          contenido\n        );\n\n        \/\/ Reemplazar el contenido del contenedor por el mensaje de agradecimiento\n        const container = document.getElementById('formulario-container');\n        container.innerHTML = `\n          <div class=\"text-center py-10\">\n            <h2 class=\"text-2xl font-bold text-green-600\">Muchas gracias agendar tu visita con nosotros, nos comunicaremos v\u00eda correo electr\u00f3nico contigo, para coordinar tu paseo.<\/h2>\n            <div class=\"mt-6 p-4 bg-yellow-50 border-l-4 border-yellow-400 text-left\">\n              <p class=\"font-bold text-yellow-800\">IMPORTANTE:<\/p>\n              <p class=\"text-yellow-800\">No habr\u00e1 recorridos en los siguientes d\u00edas: 12, 13 y 14 de febrero, por eventos masivos en el Coliseo Central.<\/p>\n            <\/div>\n          <\/div>\n        `;\n      } catch (err) {\n        alert('Ocurri\u00f3 un error al enviar tu solicitud. Intenta nuevamente m\u00e1s tarde.');\n      }\n    });\n \n\n },100)\n <\/script>\n<\/body>\n<\/html>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visitas Acad\u00e9micas &#8211; Parque Estadio Nacional VEN A CONOCER EL PARQUE ESTADIO NACIONAL El Parque Estadio Nacional tiene abiertas sus puertas para visitas guiadas, destinadas a turistas nacionales e internacionales. El tope es de 30 personas por recorrido, previa inscripci\u00f3n. Los horarios son de lunes a viernes, desde las 9 a 10 y de 11 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-240","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/pages\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":31,"href":"\/index.php?rest_route=\/wp\/v2\/pages\/240\/revisions"}],"predecessor-version":[{"id":1769,"href":"\/index.php?rest_route=\/wp\/v2\/pages\/240\/revisions\/1769"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}