/**
 * Core Dynamic System - Chatbot (Asesor Core) Styles
 */

#botBtn {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 65;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #03202a;
  font: 800 13.5px var(--fh);
  box-shadow: 0 0 0 0 rgba(52, 231, 255, 0.5);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 18px rgba(52, 231, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 231, 255, 0); }
}

#botBtn .ic {
  width: 22px;
  height: 22px;
}

#bot {
  position: fixed;
  right: 22px;
  bottom: 158px;
  z-index: 66;
  width: min(370px, calc(100vw - 32px));
  height: 480px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#bot.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

#bot header {
  position: static;
  height: auto;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(52, 231, 255, 0.06);
}

#bot header .ic {
  color: var(--cyan);
}

#bot header b {
  font: 800 15px var(--fh);
}

#bot header span {
  display: block;
  font-size: 11.5px;
  color: var(--mut);
}

#botMsgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.bub {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  animation: pop 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.bub.ai {
  background: rgba(52, 231, 255, 0.1);
  border: 1px solid rgba(52, 231, 255, 0.25);
  border-bottom-left-radius: 4px;
}

.bub.us {
  align-self: flex-end;
  background: rgba(229, 167, 46, 0.14);
  border: 1px solid rgba(229, 167, 46, 0.35);
  border-bottom-right-radius: 4px;
}

#botOpts {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}

#botOpts button {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 231, 255, 0.4);
  background: rgba(52, 231, 255, 0.06);
  font: 600 13.5px var(--fb);
  color: var(--txt);
  text-align: left;
  transition: 0.3s;
}

#botOpts button:hover {
  background: rgba(52, 231, 255, 0.16);
  transform: translateX(4px);
  box-shadow: 0 0 18px rgba(52, 231, 255, 0.25);
}

#botOpts button.g {
  border-color: rgba(255, 200, 87, 0.55);
  background: rgba(229, 167, 46, 0.12);
}

#botOpts button.g:hover {
  background: rgba(229, 167, 46, 0.22);
  box-shadow: 0 0 18px rgba(229, 167, 46, 0.3);
}

#botClose {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--mut);
  border: 1px solid var(--line);
  background: transparent;
  transition: 0.2s;
}

#botClose:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
