/* ============================================
   AGENT — sección del asesor IA (chat a ancho completo)
   ============================================ */

/* ----- Caja de chat ----- */
.chat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
}

.chat-header {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.2),
    rgba(6, 182, 212, 0.2)
  );
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.agent-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand-135);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
}
.msg.bot {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  align-self: flex-start;
  border-radius: 4px 12px 12px 12px;
}
.msg.user {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.3),
    rgba(6, 182, 212, 0.3)
  );
  align-self: flex-end;
  border-radius: 12px 4px 12px 12px;
}
.msg.loading {
  opacity: 0.6;
}

.chat-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.chat-input:focus {
  border-color: var(--cyan);
}

.send-btn {
  background: var(--gradient-brand-135);
  border: none;
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----- Botones rápidos de ejemplos ----- */
.quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.quick-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

