#chatbot-toggle {
    /* position: fixed; */
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
}

#chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 450px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

#chatbot-header {
    background-color: #F19387;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

#chatbot-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto; /* Habilita el scroll vertical */
    max-height: 300px; /* Define una altura máxima */
    scroll-behavior: smooth; /* Añade un scroll suave */
}


#chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chatbot-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

#chatbot-send {
    background-color: #394975;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 8px;
    cursor: pointer;
}

#chatbot-send-form {
    background-color: #394975;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 8px;
    cursor: pointer;
}
#chatbot-send-form2 {
    background-color: #394975;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    margin-left: 8px;
    cursor: pointer;
}

.chatbot-message {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    clear: both;
}

.chatbot-message.user {
    background-color: #394975;
    color: white;
    align-self: flex-end;  /* Mantiene el alineamiento vertical */
    margin-left: auto;  /* Empuja el mensaje a la derecha */
}

.chatbot-message.bot {
    background-color: #f1f1f1;
    color: black;
    align-self: flex-start;
}

.chatbot-options {
    margin-top: 10px;
}

.chatbot-option {
    display: inline-block;
    margin: 5px 5px 0 0;
    padding: 8px 12px;
    background-color: #70ab9b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.chatbot-option:hover {
    background-color: #9e9e9e;
}

.chatbot-option:active {
    background-color: #70ab9b;
}



.chatbot-message {
    position: relative;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    clear: both;
    word-wrap: break-word;
}

.chatbot-message.user {
    background-color: #394975;
    color: white;
    margin-left: auto;
    text-align: left;
}

.chatbot-message.user::after {
    content: "";
    position: absolute;
    bottom: 5px;
    right: -5px; /* Coloca la punta fuera del mensaje */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #394975;
}

.chatbot-message.bot {
    background-color: #f1f1f1;
    color: black;
    margin-right: auto;
    text-align: left;
}

.chatbot-message.bot::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: -5px; /* Coloca la punta fuera del mensaje */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f1f1f1 transparent transparent;
}

.chatbot-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .chatbot-form2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    max-width: 500px;
    margin: auto;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .chatbot-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .chatbot-form2 input {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 0.75rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  
  .chatbot-form input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
  }
  .chatbot-form2 input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
  }
  
  #chatbot-send2 {
    padding: 0.75rem 1rem;
    background: #394975;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  #chatbot-send:hover {
    background: #4a4a4a;
  }
  
  @media (max-width: 600px) {
    .chatbot-form {
      padding: 1rem;
    }
  
    .chatbot-form input,
    #chatbot-send2 {
      font-size: 0.95rem;
    }
  }
  


  #chatbot-toggle-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 1000;
}

#chatbot-label {
  background-color: #ffffff;
  color: #F19387;
  padding: 6px 10px;
  border-radius: 20px 0 0 20px;
  font-size: 13px;
  font-family: sans-serif;
  margin-right: 8px;
  white-space: nowrap;
}
