/* ===============================
   CHATBOT – ESTILO PROFESIONAL
================================= */

.chatbot-toggle{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #0b3a6e;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  transition: .25s;
  z-index: 999;
}

.chatbot-toggle:hover{
  transform: scale(1.05);
}

.chatbot{
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.chatbot.hidden{
  display: none;
}

/* HEADER */
.chatbot-header{
  background: linear-gradient(90deg,#0b3a6e,#145aa3);
  color: #fff;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3{
  font-size: 1.05rem;
  font-weight: 700;
}

#chatbot-close{
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* MENSAJES */
.chatbot-messages{
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f5f7fb;
}

.message{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: .95rem;
  max-width: 85%;
}

.message.bot{
  background: #eaf2ff;
  color: #0b3a6e;
}

.message.user{
  background: #0b3a6e;
  color: #fff;
  margin-left: auto;
}

/* QUICK REPLIES */
.chatbot-quick-replies{
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick{
  border: 1px solid #0b3a6e;
  background: #fff;
  color: #0b3a6e;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: .85rem;
  cursor: pointer;
  transition: .2s;
}

.quick:hover{
  background: #0b3a6e;
  color: #fff;
}

/* INPUT */
.chatbot-form{
  display: flex;
  border-top: 1px solid #e5e7eb;
}

.chatbot-input{
  flex: 1;
  border: none;
  padding: 12px;
  font-size: .95rem;
  outline: none;
}

.chatbot-submit{
  background: #0b3a6e;
  border: none;
  color: #fff;
  padding: 0 16px;
  cursor: pointer;
}

/* RESPONSIVE */
@media(max-width:480px){
  .chatbot{
    right: 10px;
    width: 92%;
  }
}
