
    body {
      margin: 0;
      padding: 0;
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
      background: #f2f4f7;
    }

    #chatbox {
      width: 100%;
      max-width: 400px;
      height: 500px;
      background: #ffffff;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: fixed;
      bottom: 90px;
      right: 20px;
      display: none; /* oculto al cargar */
      z-index: 999;
    }

    #header {
      background-color: #004085;
      color: white;
      padding: 15px 20px;
      font-size: 18px;
      font-weight: bold;
      border-bottom: 2px solid #002752;
    }

    #dialogo {
      padding: 20px;
      flex-grow: 1;
      overflow-y: auto;
    }

    .pregunta {
      margin-bottom: 20px;
    }

    .pregunta p {
      font-weight: 500;
      color: #333;
      margin-bottom: 10px;
    }

    .respuesta-btn {
      display: inline-block;
      margin: 5px 10px 5px 0;
      padding: 10px 16px;
      font-size: 14px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .respuesta-btn:hover {
      background-color: #0056b3;
    }

    .respuesta-btn:disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }

    .mensaje-final {
      font-weight: bold;
      padding: 15px;
      background-color: #e2f0d9;
      color: #155724;
      border: 1px solid #c3e6cb;
      border-radius: 10px;
    }

    /* Botón flotante */
    #chat-toggle {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      z-index: 1000;
      transition: background-color 0.3s ease;
    }

    #chat-toggle:hover {
      background-color: #0056b3;
    }
  