/* Estilos para el botón de chat flotante */
.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s, background-color 0.3s;
}

.chat-button:hover {
  transform: scale(1.1);
  background-color: #333;
}

.chat-button i {
  font-size: 24px;
}

.chat-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 350px;
  height: 450px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.chat-popup.active {
  display: flex;
}

.chat-header {
  background-color: #000;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Montserrat', sans-serif;
}

.close-chat {
  cursor: pointer;
  font-size: 20px;
}

.chat-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: #f5f5f5;
}

.chat-message {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.user-message {
  align-items: flex-end;
}

.bot-message {
  align-items: flex-start;
}

.message-content {
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.user-message .message-content {
  background-color: #000;
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bot-message .message-content {
  background-color: #e6e6e6;
  color: #333;
  border-bottom-left-radius: 5px;
}

.message-time {
  font-size: 10px;
  color: #999;
  margin-top: 5px;
}

.chat-footer {
  padding: 15px;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
}

.chat-input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 10px 15px;
  outline: none;
  font-family: 'Montserrat', sans-serif;
}

.chat-input:focus {
  border-color: #999;
}

.send-button {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.send-button:hover {
  background-color: #333;
}

.chat-welcome-message {
  text-align: center;
  color: #999;
  font-size: 12px;
  margin: 20px 0;
}

/* Estilos para el link de WhatsApp */
.whatsapp-link {
  display: inline-block;
  background-color: #25D366;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 20px;
  margin-top: 5px;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.whatsapp-link:hover {
  background-color: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

/* Estilos responsive */
@media (max-width: 480px) {
  .chat-popup {
    width: calc(100% - 20px);
    right: 10px;
    bottom: 80px;
    height: 400px;
  }
  
  .chat-button {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}
