.modal1 {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 350px;
  max-height: 500px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color:  #650101; 
  padding: 10px;
  color: white;
}

.chat-header h2 {
  margin: 0;
  font-size: 16px;
  flex: 1;
  color: white;
}

.chat-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
}

.chat-footer {
  padding: 10px;
  background-color: #f1f1f1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question {
  padding: 8px;
  background-color: #c20000;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  transition: background-color 0.3s;
}

.question:hover {
  background-color: #a00000;
}

.bot-message, .user-message {
  max-width: 80%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  clear: both;
}

.bot-message {
  background-color: #e4e6eb;
  align-self: flex-start;
}

.user-message {
  background-color:  #650101; 
  color: white;
  align-self: flex-end;
}

.feedback-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.feedback-buttons button {
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.close {
  cursor: pointer;
  font-size: 18px;
}
/* Estilo para el botón flotante */
#chat-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #650101; 
  padding: 15px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Responsive para tablets y móviles */

/* Ancho máximo 1024px */
@media (max-width: 1024px) {
  .modal1 {
    width: 300px;
  }
}

/* Ancho máximo 480px */
@media (max-width: 480px) {
  .modal1 {
    width: 90%;
    right: 5%;
    bottom: 20px;
    max-height: 90vh;
  }
}

/* Ancho máximo 425px */
@media (max-width: 425px) {
  .modal1 {
    width: 90%;
    right: 5%;
  }
}

/* Ancho máximo 375px */
@media (max-width: 375px) {
  .modal1 {
    width: 95%;
    right: 2.5%;
  }
}

/* Ancho máximo 320px */
@media (max-width: 320px) {
  .modal1 {
    width: 95%;
    right: 2.5%;
  }

  .chat-header h2 {
    font-size: 14px;
  }

  .question {
    font-size: 13px;
  }

  .bot-message,
  .user-message {
    font-size: 13px;
  }

  .feedback-buttons button {
    font-size: 12px;
  }
}





