/* Estilos para el chatbot */

/* Botón flotante */
.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--boca-azul);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.chatbot-button:hover {
  background-color: var(--boca-amarillo);
  color: var(--boca-azul);
  transform: scale(1.05);
}

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

/* Modal del chatbot */
.chatbot-modal {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  overflow: hidden;
  flex-direction: column;
}

.chatbot-header {
  background-color: var(--boca-azul);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

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

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chatbot-message {
  margin-bottom: 10px;
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chatbot-message.user {
  align-self: flex-end;
  background-color: var(--boca-azul);
  color: white;
  border-bottom-right-radius: 5px;
}

.chatbot-message.bot {
  align-self: flex-start;
  background-color: #f1f1f1;
  color: #333;
  border-bottom-left-radius: 5px;
}

.chatbot-input-container {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
}

.chatbot-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 14px;
}

.chatbot-send {
  background-color: var(--boca-azul);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.chatbot-send:hover {
  background-color: var(--boca-amarillo);
  color: var(--boca-azul);
}

.chatbot-send i {
  font-size: 18px;
}

/* Animación de carga */
.chatbot-typing {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  align-self: flex-start;
  background-color: #f1f1f1;
  padding: 10px 15px;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
}

.chatbot-typing-dot {
  width: 8px;
  height: 8px;
  background-color: #888;
  border-radius: 50%;
  margin: 0 2px;
  animation: typing-animation 1.4s infinite ease-in-out both;
}

.chatbot-typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-animation {
  0%, 80%, 100% { 
    transform: scale(0.6);
  }
  40% { 
    transform: scale(1);
  }
}

/* Estilos responsivos */
@media (max-width: 480px) {
  .chatbot-modal {
    width: calc(100% - 40px);
    height: calc(100% - 120px);
    bottom: 80px;
  }
}
