{"id":1023,"date":"2026-05-07T20:36:29","date_gmt":"2026-05-07T18:36:29","guid":{"rendered":"https:\/\/torreshospitalityconsulting.com\/?page_id=1023"},"modified":"2026-05-07T20:45:18","modified_gmt":"2026-05-07T18:45:18","slug":"round-table-global-revenue-forum-madrid-2026","status":"publish","type":"page","link":"https:\/\/torreshospitalityconsulting.com\/en\/mesa-redonda-global-revenue-forum-madrid-2026\/","title":{"rendered":"Round table Global Revenue Forum Madrid 2026"},"content":{"rendered":"\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>Disponibilidad Mesas \u00b7 Global Revenue Forum \u00b7 Torres Hospitality Consulting<\/title>\n  <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Poppins:wght@400;500;600;700&#038;display=swap\" rel=\"stylesheet\">\n  <style>\n    :root {\n      --red: #e63329;\n      --red-dark: #c42820;\n      --bg: #ffffff;\n      --card-bg: #f5f5f5;\n      --card-border: #e0e0e0;\n      --card-active-bg: #fff5f5;\n      --text: #1a1a1a;\n      --text-muted: #555555;\n    }\n\n    * { box-sizing: border-box; margin: 0; padding: 0; }\n\n    body {\n      font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;\n      background: var(--bg);\n      color: var(--text);\n      line-height: 1.6;\n      min-height: 100vh;\n    }\n\n    \/* HEADER *\/\n    header {\n      border-bottom: 2px solid var(--red);\n      padding: 18px 32px;\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n    }\n    .brand {\n      font-size: 13px;\n      font-weight: 700;\n      letter-spacing: 1.5px;\n      text-transform: uppercase;\n      color: var(--text);\n    }\n    .brand span { color: var(--red); }\n\n    \/* HERO *\/\n    .hero {\n      padding: 52px 32px 36px;\n      max-width: 720px;\n      margin: 0 auto;\n      text-align: center;\n    }\n    .section-label {\n      display: inline-flex;\n      align-items: center;\n      gap: 10px;\n      font-size: 11px;\n      font-weight: 700;\n      letter-spacing: 2px;\n      text-transform: uppercase;\n      color: var(--red);\n      margin-bottom: 20px;\n    }\n    .section-label::before {\n      content: '';\n      display: inline-block;\n      width: 28px;\n      height: 2px;\n      background: var(--red);\n    }\n    h1 {\n      font-family: Georgia, 'Times New Roman', serif;\n      font-size: clamp(28px, 4vw, 44px);\n      font-weight: 700;\n      line-height: 1.2;\n      margin-bottom: 14px;\n    }\n    h1 .accent { color: var(--red); }\n    .hero-sub {\n      font-size: 16px;\n      color: var(--text-muted);\n      max-width: 560px;\n      margin: 0 auto;\n    }\n\n    \/* MAIN CONTAINER *\/\n    .container {\n      max-width: 680px;\n      margin: 0 auto;\n      padding: 0 24px 60px;\n    }\n\n    \/* ACCESS SCREEN *\/\n    #access-screen {\n      text-align: center;\n      padding: 40px 24px;\n    }\n    .access-box {\n      background: var(--card-bg);\n      border: 1px solid var(--card-border);\n      border-radius: 6px;\n      padding: 40px 36px;\n      max-width: 420px;\n      margin: 0 auto;\n    }\n    .access-box h2 {\n      font-size: 20px;\n      font-weight: 700;\n      margin-bottom: 8px;\n    }\n    .access-box p {\n      font-size: 14px;\n      color: var(--text-muted);\n      margin-bottom: 28px;\n    }\n    .input-group {\n      margin-bottom: 16px;\n      text-align: left;\n    }\n    .input-group label {\n      display: block;\n      font-size: 12px;\n      font-weight: 700;\n      text-transform: uppercase;\n      letter-spacing: 1px;\n      color: var(--text-muted);\n      margin-bottom: 6px;\n    }\n    .input-group input {\n      width: 100%;\n      padding: 12px 14px;\n      border: 1px solid var(--card-border);\n      border-radius: 4px;\n      font-size: 15px;\n      color: var(--text);\n      background: white;\n      outline: none;\n      transition: border-color 0.2s;\n    }\n    .input-group input:focus {\n      border-color: var(--red);\n    }\n    .btn-primary {\n      display: block;\n      width: 100%;\n      background: var(--red);\n      color: white;\n      padding: 14px 28px;\n      border-radius: 4px;\n      font-weight: 700;\n      font-size: 15px;\n      border: none;\n      cursor: pointer;\n      transition: background 0.2s;\n      margin-top: 20px;\n    }\n    .btn-primary:hover { background: var(--red-dark); }\n    .error-msg {\n      color: var(--red);\n      font-size: 13px;\n      margin-top: 10px;\n      display: none;\n    }\n\n    \/* FORM SCREEN *\/\n    #form-screen { display: none; }\n\n    .mesa-header {\n      background: var(--text);\n      color: white;\n      border-radius: 6px;\n      padding: 24px 28px;\n      margin-bottom: 28px;\n    }\n    .mesa-tag {\n      font-size: 11px;\n      font-weight: 700;\n      letter-spacing: 2px;\n      text-transform: uppercase;\n      color: var(--red);\n      margin-bottom: 8px;\n    }\n    .mesa-header h2 {\n      font-family: 'Poppins', sans-serif;\n      font-size: 20px;\n      font-weight: 700;\n      line-height: 1.3;\n      margin-bottom: 8px;\n      color: #ffffff;\n    }\n    .mesa-header p {\n      font-size: 13px;\n      color: #aaa;\n      line-height: 1.5;\n    }\n\n    .form-section-title {\n      font-size: 13px;\n      font-weight: 700;\n      text-transform: uppercase;\n      letter-spacing: 1.5px;\n      color: var(--text-muted);\n      margin-bottom: 12px;\n    }\n\n    \/* OPTION CARDS *\/\n    .options-grid {\n      display: grid;\n      gap: 12px;\n      margin-bottom: 28px;\n    }\n    .option-card {\n      background: var(--card-bg);\n      border: 2px solid var(--card-border);\n      border-radius: 6px;\n      padding: 18px 20px;\n      cursor: pointer;\n      transition: all 0.15s;\n      display: flex;\n      align-items: center;\n      gap: 14px;\n    }\n    .option-card:hover {\n      border-color: #ccc;\n    }\n    .option-card.selected {\n      background: var(--card-active-bg);\n      border-color: var(--red);\n    }\n    .option-radio {\n      width: 20px;\n      height: 20px;\n      border-radius: 50%;\n      border: 2px solid var(--card-border);\n      flex-shrink: 0;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      transition: all 0.15s;\n    }\n    .option-card.selected .option-radio {\n      border-color: var(--red);\n      background: var(--red);\n    }\n    .option-card.selected .option-radio::after {\n      content: '';\n      width: 8px;\n      height: 8px;\n      border-radius: 50%;\n      background: white;\n    }\n    .option-info { flex: 1; }\n    .option-date {\n      font-weight: 700;\n      font-size: 16px;\n      color: var(--text);\n    }\n    .option-time {\n      font-size: 14px;\n      color: var(--text-muted);\n      margin-top: 2px;\n    }\n\n    .btn-submit {\n      display: block;\n      width: 100%;\n      background: var(--red);\n      color: white;\n      padding: 16px 28px;\n      border-radius: 4px;\n      font-weight: 700;\n      font-size: 16px;\n      border: none;\n      cursor: pointer;\n      transition: background 0.2s;\n    }\n    .btn-submit:hover { background: var(--red-dark); }\n    .btn-submit:disabled {\n      background: #ccc;\n      cursor: not-allowed;\n    }\n\n    \/* SUCCESS SCREEN *\/\n    #success-screen {\n      display: none;\n      text-align: center;\n      padding: 60px 24px;\n    }\n    .success-icon {\n      width: 64px;\n      height: 64px;\n      border-radius: 50%;\n      background: var(--red);\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      margin: 0 auto 24px;\n    }\n    .success-icon svg { width: 32px; height: 32px; }\n    #success-screen h2 {\n      font-family: Georgia, serif;\n      font-size: 26px;\n      margin-bottom: 12px;\n    }\n    #success-screen p {\n      color: var(--text-muted);\n      font-size: 15px;\n    }\n\n    \/* ADMIN PANEL *\/\n    #admin-screen { display: none; }\n\n    .admin-header {\n      background: var(--text);\n      color: white;\n      padding: 20px 24px;\n      border-radius: 6px;\n      margin-bottom: 24px;\n      display: flex;\n      align-items: center;\n      justify-content: space-between;\n      flex-wrap: wrap;\n      gap: 12px;\n    }\n    .admin-header h2 {\n      font-size: 18px;\n      font-weight: 700;\n    }\n    .admin-header span {\n      font-size: 12px;\n      color: #aaa;\n    }\n\n    .mesa-block {\n      margin-bottom: 32px;\n    }\n    .mesa-block-title {\n      font-size: 13px;\n      font-weight: 700;\n      text-transform: uppercase;\n      letter-spacing: 1.5px;\n      color: var(--red);\n      border-bottom: 2px solid var(--red);\n      padding-bottom: 8px;\n      margin-bottom: 16px;\n    }\n\n    table {\n      width: 100%;\n      border-collapse: collapse;\n      font-size: 14px;\n    }\n    th {\n      text-align: left;\n      padding: 10px 12px;\n      background: var(--card-bg);\n      font-size: 11px;\n      font-weight: 700;\n      text-transform: uppercase;\n      letter-spacing: 1px;\n      color: var(--text-muted);\n    }\n    td {\n      padding: 12px 12px;\n      border-bottom: 1px solid var(--card-border);\n      color: var(--text);\n    }\n    tr:last-child td { border-bottom: none; }\n    .badge {\n      display: inline-block;\n      padding: 3px 10px;\n      border-radius: 20px;\n      font-size: 12px;\n      font-weight: 700;\n      background: var(--card-active-bg);\n      color: var(--red);\n      border: 1px solid var(--red);\n    }\n    .empty-state {\n      text-align: center;\n      padding: 32px;\n      color: var(--text-muted);\n      background: var(--card-bg);\n      border-radius: 6px;\n      font-size: 14px;\n    }\n\n    .btn-reset {\n      background: none;\n      border: 1px solid var(--card-border);\n      padding: 8px 16px;\n      border-radius: 4px;\n      font-size: 13px;\n      cursor: pointer;\n      color: var(--text-muted);\n    }\n    .btn-reset:hover { border-color: var(--red); color: var(--red); }\n\n    \/* FOOTER *\/\n    footer {\n      border-top: 1px solid var(--card-border);\n      padding: 24px 32px;\n      text-align: center;\n      font-size: 12px;\n      color: var(--text-muted);\n    }\n\n    @media (max-width: 480px) {\n      header { padding: 14px 16px; }\n      .hero { padding: 36px 16px 24px; }\n      .container { padding: 0 16px 40px; }\n      .access-box { padding: 28px 20px; }\n    }\n  <\/style>\n<\/head>\n<body>\n\n<header>\n  <div class=\"brand\">Torres <span>Hospitality<\/span> Consulting<\/div>\n  <div style=\"font-size:11px;color:#aaa;font-weight:600;letter-spacing:1px;text-transform:uppercase;\">Global Revenue Forum \u00b7 Madrid<\/div>\n<\/header>\n\n<!-- ACCESS SCREEN -->\n<div id=\"access-screen\">\n  <div class=\"hero\">\n    <div class=\"section-label\">Global Revenue Forum \u00b7 Madrid<\/div>\n    <h1>Confirma tu <span class=\"accent\">disponibilidad<\/span><\/h1>\n    <p class=\"hero-sub\">Introduce tu c\u00f3digo de acceso y selecciona la opci\u00f3n que mejor se adapta a tu agenda.<\/p>\n  <\/div>\n\n  <div class=\"container\">\n    <div class=\"access-box\">\n      <h2>Acceso con c\u00f3digo<\/h2>\n      <p>Pablo Torres te habr\u00e1 facilitado el c\u00f3digo correspondiente a tu mesa.<\/p>\n      <div class=\"input-group\">\n        <label>Tu nombre<\/label>\n        <input type=\"text\" id=\"input-name\" placeholder=\"Nombre y apellido\" autocomplete=\"off\">\n      <\/div>\n      <div class=\"input-group\">\n        <label>C\u00f3digo de acceso<\/label>\n        <input type=\"text\" id=\"input-code\" placeholder=\"Introduce tu c\u00f3digo\" autocomplete=\"off\" style=\"text-transform:uppercase;\">\n      <\/div>\n      <div class=\"error-msg\" id=\"error-msg\">C\u00f3digo incorrecto o nombre vac\u00edo. Int\u00e9ntalo de nuevo.<\/div>\n      <button class=\"btn-primary\" onclick=\"handleAccess()\">Acceder \u2192<\/button>\n    <\/div>\n  <\/div>\n<\/div>\n\n<!-- FORM SCREEN -->\n<div id=\"form-screen\">\n  <div class=\"hero\" style=\"padding-bottom:20px;\">\n    <div class=\"section-label\" id=\"form-mesa-label\">Mesa 1<\/div>\n    <h1 id=\"form-title\">Selecciona tu <span class=\"accent\">disponibilidad<\/span><\/h1>\n    <p class=\"hero-sub\" id=\"form-subtitle\">Elige la opci\u00f3n que mejor encaje en tu agenda.<\/p>\n  <\/div>\n\n  <div class=\"container\">\n    <div class=\"mesa-header\" id=\"form-mesa-header\">\n      <div class=\"mesa-tag\" id=\"form-mesa-tag\"><\/div>\n      <h2 id=\"form-mesa-title\"><\/h2>\n      <p id=\"form-mesa-desc\"><\/p>\n    <\/div>\n\n    <p class=\"form-section-title\" style=\"margin-bottom:16px;\">Selecciona una opci\u00f3n<\/p>\n    <div class=\"options-grid\" id=\"options-grid\"><\/div>\n\n    <button class=\"btn-submit\" id=\"btn-submit\" disabled onclick=\"submitForm()\">Confirmar disponibilidad \u2192<\/button>\n  <\/div>\n<\/div>\n\n<!-- SUCCESS SCREEN -->\n<div id=\"success-screen\">\n  <div class=\"success-icon\">\n    <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"white\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n      <polyline points=\"20 6 9 17 4 12\"><\/polyline>\n    <\/svg>\n  <\/div>\n  <h2>\u00a1Gracias, <span id=\"success-name\"><\/span>!<\/h2>\n  <p id=\"success-msg\">Tu disponibilidad ha quedado registrada.<br>Pablo Torres se pondr\u00e1 en contacto contigo pronto.<\/p>\n<\/div>\n\n<!-- ADMIN SCREEN -->\n<div id=\"admin-screen\">\n  <div class=\"hero\" style=\"padding-bottom:20px;\">\n    <div class=\"section-label\">Panel de administraci\u00f3n<\/div>\n    <h1>Respuestas <span class=\"accent\">recibidas<\/span><\/h1>\n  <\/div>\n  <div class=\"container\">\n    <div class=\"admin-header\">\n      <div>\n        <h2>Global Revenue Forum \u00b7 Madrid<\/h2>\n        <span>Vista de administrador \u00b7 Todas las mesas<\/span>\n      <\/div>\n      <button class=\"btn-reset\" onclick=\"clearAll()\">Borrar todas las respuestas<\/button>\n    <\/div>\n    <div id=\"admin-content\"><\/div>\n  <\/div>\n<\/div>\n\n<footer>\n  <p>Torres Hospitality Consulting \u00b7 pablo.torres@torresconsulting.co.uk \u00b7 torreshospitalityconsulting.com<\/p>\n<\/footer>\n\n<script>\n  \/\/ \u2500\u2500\u2500 CONFIGURACI\u00d3N DE MESAS \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ A\u00f1ade aqu\u00ed las 4 mesas cuando tengas los datos\n  const MESAS = {\n    \"GRF\": {\n      id: \"mesa1\",\n      label: \"Mesa 1 \u00b7 Global Revenue Forum\",\n      title: \"Del Booking al Rebooking\",\n      description: \"C\u00f3mo mantener al hu\u00e9sped dentro del canal directo. Moderado por Pablo Torres con Biel Mart\u00ed (Summum), Pablo Seijo (Stayapp), Miguel Perez (Pulitzer) y Marta Serrano (Vincci).\",\n      opciones: [\n        { id: \"op1\", fecha: \"Martes 19 de Mayo\", hora: \"9:00h\" },\n        { id: \"op2\", fecha: \"Mi\u00e9rcoles 20 de Mayo\", hora: \"12:30h\" }\n      ]\n    },\n    \"GRF26\": {\n      id: \"mesa2\",\n      label: \"Mesa 2 \u00b7 Global Revenue Forum\",\n      title: \"Next-level direct sales: AI and automation to boost direct booking performance\",\n      description: \"Con Pablo Torres, Francesco Nardone (Blastness), Marta Varela (The Net Revenue), Pedro Barranco (Sani Ikos) y Luis de Diego (Axel Hotels). Sesi\u00f3n en ingl\u00e9s.\",\n      opciones: [\n        { id: \"op1\", fecha: \"Martes 19 de Mayo\", hora: \"9:45h\" },\n        { id: \"op2\", fecha: \"Mi\u00e9rcoles 20 de Mayo\", hora: \"11:45h\" }\n      ]\n    },\n    \"GRFMAD\": {\n      id: \"mesa3\",\n      label: \"Mesa 3 \u00b7 Global Revenue Forum\",\n      title: \"Real Estate y modelos de gesti\u00f3n: Flexliving, branded residences, etc.\",\n      description: \"Moderado por Pablo Torres con Jes\u00fas Rodr\u00edguez Maseda (Savills), Irene Trujillo (Lima Consulting), Carlos Escoda (Alma Corp) y Javier Caro (PwC).\",\n      opciones: [\n        { id: \"op1\", fecha: \"Martes 19 de Mayo\", hora: \"10:30h\" },\n        { id: \"op2\", fecha: \"Mi\u00e9rcoles 20 de Mayo\", hora: \"11:00h\" }\n      ]\n    },\n    \"GRF2026\": {\n      id: \"mesa4\",\n      label: \"Mesa 4 \u00b7 Global Revenue Forum\",\n      title: \"Experiencia vs Revenue e ingresos totales. \u00bfQu\u00e9 se puede cobrar y qu\u00e9 debe ser parte del servicio?\",\n      description: \"Moderado por Pablo Torres con Pere Estela (Iberostar), Irene S\u00e1nchez (SmartRental), Pedro Barranco (Sani Ikos) e Ignacio L\u00f3pez (GAT Hospitality).\",\n      opciones: [\n        { id: \"op1\", fecha: \"Martes 19 de Mayo\", hora: \"11:15h\" },\n        { id: \"op2\", fecha: \"Mi\u00e9rcoles 20 de Mayo\", hora: \"10:15h\" }\n      ]\n    }\n  };\n\n  const ADMIN_CODE = \"ADMIN.GRF2025\"; \/\/ Contrase\u00f1a del panel de admin (c\u00e1mbiala)\n\n  \/\/ \u2500\u2500\u2500 ESTADO \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  let currentMesa = null;\n  let currentName = \"\";\n  let selectedOption = null;\n\n  \/\/ \u2500\u2500\u2500 ACCESO \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function handleAccess() {\n    const name = document.getElementById(\"input-name\").value.trim();\n    const rawCode = document.getElementById(\"input-code\").value.trim();\n    const code = rawCode.toUpperCase().replace(\/\\s+\/g, \"\");\n    const error = document.getElementById(\"error-msg\");\n\n    if (!name) {\n      error.textContent = \"Por favor, introduce tu nombre.\";\n      error.style.display = \"block\";\n      return;\n    }\n\n    \/\/ Panel de admin\n    if (code === \"ADMIN.GRF2025\" || rawCode === \"ADMIN.GRF2025\") {\n      showAdmin();\n      return;\n    }\n\n    \/\/ Buscar mesa por contrase\u00f1a (case-insensitive, sin espacios)\n    let mesa = null;\n    for (const key of Object.keys(MESAS)) {\n      if (key.toUpperCase() === code) {\n        mesa = MESAS[key];\n        break;\n      }\n    }\n\n    if (!mesa) {\n      error.textContent = \"C\u00f3digo incorrecto. Int\u00e9ntalo de nuevo.\";\n      error.style.display = \"block\";\n      return;\n    }\n\n    error.style.display = \"none\";\n    currentMesa = mesa;\n    currentName = name;\n    showForm(mesa, name);\n  }\n\n  \/\/ \u2500\u2500\u2500 MOSTRAR FORMULARIO \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function showForm(mesa, name) {\n    document.getElementById(\"access-screen\").style.display = \"none\";\n    document.getElementById(\"form-screen\").style.display = \"block\";\n\n    document.getElementById(\"form-mesa-label\").textContent = mesa.label;\n    document.getElementById(\"form-title\").innerHTML = `Hola <span style=\"color:var(--red)\">${name}<\/span>, selecciona tu disponibilidad`;\n    document.getElementById(\"form-mesa-tag\").textContent = \"\u2014 \" + mesa.label;\n    document.getElementById(\"form-mesa-title\").textContent = mesa.title;\n    document.getElementById(\"form-mesa-desc\").textContent = mesa.description;\n\n    const grid = document.getElementById(\"options-grid\");\n    grid.innerHTML = \"\";\n    selectedOption = null;\n    document.getElementById(\"btn-submit\").disabled = true;\n\n    mesa.opciones.forEach(op => {\n      const card = document.createElement(\"div\");\n      card.className = \"option-card\";\n      card.id = \"card-\" + op.id;\n      card.innerHTML = `\n        <div class=\"option-radio\" id=\"radio-${op.id}\"><\/div>\n        <div class=\"option-info\">\n          <div class=\"option-date\">${op.fecha}<\/div>\n          <div class=\"option-time\">${op.hora}<\/div>\n        <\/div>\n      `;\n      card.onclick = () => selectOption(op.id, mesa);\n      grid.appendChild(card);\n    });\n  }\n\n  function selectOption(id, mesa) {\n    mesa.opciones.forEach(op => {\n      document.getElementById(\"card-\" + op.id)?.classList.remove(\"selected\");\n    });\n    document.getElementById(\"card-\" + id).classList.add(\"selected\");\n    selectedOption = id;\n    document.getElementById(\"btn-submit\").disabled = false;\n  }\n\n  \/\/ \u2500\u2500\u2500 ENVIAR \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  async function submitForm() {\n    if (!selectedOption || !currentMesa) return;\n\n    const opcion = currentMesa.opciones.find(o => o.id === selectedOption);\n    const entry = {\n      nombre: currentName,\n      mesa_id: currentMesa.id,\n      mesa_label: currentMesa.label,\n      mesa_title: currentMesa.title,\n      opcion: `${opcion.fecha} \u00b7 ${opcion.hora}`,\n      timestamp: new Date().toLocaleString(\"es-ES\")\n    };\n\n    \/\/ Guardar en storage persistente\n    try {\n      const existing = await window.storage.get(\"grf_responses\");\n      let responses = [];\n      if (existing) {\n        responses = JSON.parse(existing.value);\n      }\n      responses.push(entry);\n      await window.storage.set(\"grf_responses\", JSON.stringify(responses));\n    } catch(e) {\n      \/\/ Si no hay storage, guardar en sessionStorage como fallback\n      let responses = [];\n      try { responses = JSON.parse(sessionStorage.getItem(\"grf_responses\") || \"[]\"); } catch(e2){}\n      responses.push(entry);\n      sessionStorage.setItem(\"grf_responses\", JSON.stringify(responses));\n    }\n\n    \/\/ Mostrar pantalla de \u00e9xito\n    document.getElementById(\"form-screen\").style.display = \"none\";\n    document.getElementById(\"success-screen\").style.display = \"block\";\n    document.getElementById(\"success-name\").textContent = currentName;\n    document.getElementById(\"success-msg\").innerHTML = `Tu preferencia para <strong>${opcion.fecha} a las ${opcion.hora}<\/strong> ha quedado registrada.<br>Pablo Torres se pondr\u00e1 en contacto contigo pronto.`;\n  }\n\n  \/\/ \u2500\u2500\u2500 PANEL DE ADMIN \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  async function showAdmin() {\n    document.getElementById(\"access-screen\").style.display = \"none\";\n    document.getElementById(\"admin-screen\").style.display = \"block\";\n\n    let responses = [];\n    try {\n      const stored = await window.storage.get(\"grf_responses\");\n      if (stored) responses = JSON.parse(stored.value);\n    } catch(e) {\n      try { responses = JSON.parse(sessionStorage.getItem(\"grf_responses\") || \"[]\"); } catch(e2){}\n    }\n\n    renderAdmin(responses);\n  }\n\n  function renderAdmin(responses) {\n    const container = document.getElementById(\"admin-content\");\n\n    if (responses.length === 0) {\n      container.innerHTML = '<div class=\"empty-state\">A\u00fan no hay respuestas registradas.<\/div>';\n      return;\n    }\n\n    \/\/ Agrupar por mesa\n    const byMesa = {};\n    responses.forEach(r => {\n      if (!byMesa[r.mesa_id]) byMesa[r.mesa_id] = { label: r.mesa_label, title: r.mesa_title, entries: [] };\n      byMesa[r.mesa_id].entries.push(r);\n    });\n\n    let html = \"\";\n    Object.values(byMesa).forEach(mesa => {\n      html += `\n        <div class=\"mesa-block\">\n          <div class=\"mesa-block-title\">${mesa.label} \u2014 ${mesa.title}<\/div>\n          <table>\n            <thead>\n              <tr>\n                <th>Nombre<\/th>\n                <th>Opci\u00f3n elegida<\/th>\n                <th>Registrado<\/th>\n              <\/tr>\n            <\/thead>\n            <tbody>\n              ${mesa.entries.map(e => `\n                <tr>\n                  <td><strong>${e.nombre}<\/strong><\/td>\n                  <td><span class=\"badge\">${e.opcion}<\/span><\/td>\n                  <td style=\"color:var(--text-muted);font-size:13px;\">${e.timestamp}<\/td>\n                <\/tr>\n              `).join(\"\")}\n            <\/tbody>\n          <\/table>\n        <\/div>\n      `;\n    });\n\n    container.innerHTML = html;\n  }\n\n  async function clearAll() {\n    if (!confirm(\"\u00bfSeguro que quieres borrar todas las respuestas? Esta acci\u00f3n no se puede deshacer.\")) return;\n    try {\n      await window.storage.set(\"grf_responses\", JSON.stringify([]));\n    } catch(e) {\n      sessionStorage.setItem(\"grf_responses\", \"[]\");\n    }\n    renderAdmin([]);\n  }\n\n  \/\/ Enter en el input de c\u00f3digo\n  document.addEventListener(\"DOMContentLoaded\", () => {\n    document.getElementById(\"input-code\").addEventListener(\"keydown\", e => {\n      if (e.key === \"Enter\") handleAccess();\n    });\n    document.getElementById(\"input-name\").addEventListener(\"keydown\", e => {\n      if (e.key === \"Enter\") document.getElementById(\"input-code\").focus();\n    });\n  });\n<\/script>\n\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>Disponibilidad Mesas \u00b7 Global Revenue Forum \u00b7 Torres Hospitality Consulting Torres Hospitality Consulting Global Revenue Forum \u00b7 Madrid Global Revenue Forum \u00b7 Madrid Confirma tu disponibilidad<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1023","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/pages\/1023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/comments?post=1023"}],"version-history":[{"count":3,"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/pages\/1023\/revisions"}],"predecessor-version":[{"id":1027,"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/pages\/1023\/revisions\/1027"}],"wp:attachment":[{"href":"https:\/\/torreshospitalityconsulting.com\/en\/wp-json\/wp\/v2\/media?parent=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}