#chatbot-toggle {
    position: fixed;
    bottom: 100px;
    right: 27px;
    background: var(--chatbot-color, #007aff);
    color: white;
    border: none;
    border-radius: 50%;
    padding: 19px 23px;
    font-size: 15px;
    cursor: pointer;
    z-index: 9999;
  }
@media (max-width: 600px) {
  #chatbot-toggle {
   bottom: 10vh;
  right: 5vw;
  padding: 1.2em 1.5em;
  font-size: 1rem;


  }
}

  
   #chatbot-toggle:hover {
  background: color-mix(in srgb, var(--chatbot-color), #000 20%);
	}
        
  
#language-buttons {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
#cerrarChat {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  float: right;
  cursor: pointer;
}

.lang-btn {
  background: #f1f1f1;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s, border 0.3s;
}

.lang-btn.active {
  background: var(--chatbot-color, #007aff);
  border-color: #005bb5;
 }       

  #chatbot-container {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 500px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    overflow: hidden;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
  }

  #chat-header {
    background: var(--chatbot-color, #007aff);

    color: white;
    padding: 12px;
    font-weight: bold;
  }

  #chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
  }

  #chat-input {
    border-top: 1px solid #ccc;
    display: flex;
    padding: 8px;
  }

  #chat-input input {
    flex: 1;
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  #chat-input button {
    margin-left: 8px;
    padding: 6px 10px;
    background: var(--chatbot-color, #007aff);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
#chat-conversaciones {
  display: flex;
  flex-direction: column;
}
.mensaje {
  max-width: 80%;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.mensaje.usuario {
  background-color: var(--chatbot-color, #007aff);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.mensaje.bot {
  background-color: #f1f1f1;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

  .suggestion {
    display: inline-block;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 6px 12px;
    margin: 4px 6px 4px 0;
    cursor: pointer;
    font-size: 13px;
  }