/* Botón de iniciar conversación */
#startConversationButton {
  padding: 10px;
  border: none;
  background-color: #FFC658;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

#startConversationButton:hover {
  background-color: #FFA500;
}

/* Botón de enviar mensaje */
#sendButton {
  padding: 10px;
  border: none;
  background-color: #FFC658;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#sendButton:hover {
  background-color: #FFA500;
}

/* Burbuja de chat */
.chat-bubble {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Cambiado de right: 20px a left: 20px */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FFC658;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.chat-bubble:hover {
  background-color: #FFA500;
}

.chat-bubble img {
  width: 40px;
  height: 40px;
}

.chat-container {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px; /* Cambiado de right: 20px a left: 20px */
  width: 450px;
  height: 600px;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
}

.chat-content-vertical {
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFC658;
  height: 60px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 0 15px;
  position: relative;
}

.chat-header img {
  max-height: 40px;
}

.chat-header-title {
  display: none;
}

.chat-bot-info {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.chat-bot-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.chat-bot-title {
  display: block;
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}

.chat-bot-subtitle {
  display: block;
  font-size: 12px;
  color: #555;
}

.chat-close {
  cursor: pointer;
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  background-color: transparent;
  border: none;
  border-radius: 5px;
  padding: 5px;
  transition: background-color 0.3s ease;
}

.chat-close:hover {
  background-color: #ff4d4d;
  color: white;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px;
  margin: 10px;
  font-size: 14px;
}

.chat-messages p {
  margin: 0 0 10px;
}

.chat-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #e0e0e0;
}

.chat-input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px 0 0 5px;
}

.chat-input-container button {
  padding: 10px;
  border: none;
  background-color: #FFC658;
  color: white;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .chat-container {
    width: 100%;
    height: 100%;
    left: 0; /* Cambiado de right: 0 a left: 0 */
    bottom: 0;
    border-radius: 0;
  }

  .chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    width: 100%;
  }

  .chat-input-container input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
  }

  .chat-input-container button {
    padding: 10px;
    border: none;
    background-color: #FFC658;
    color: white;
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
  }

  .chat-header {
    height: 60px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 0 15px;
    position: relative;
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 10px;
    margin: 0;
    font-size: 14px;
  }
}
