/* QENTbot — tema claro, sin fuentes de iconos externas. Lo usan el sitio nuevo y
   las páginas que siguen solo en español (blog, términos, privacidad). */
#qbot-btn { position: fixed; right: 24px; bottom: 88px; z-index: 60; width: 52px; height: 52px; border-radius: 999px; border: 0; background: #1d4ed8; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15, 23, 42, .18); transition: background-color .15s ease; }
#qbot-btn:hover { background: #1e40af; }
#qbot-btn:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 3px; }
#qbot-btn .qb-ico-cerrar { display: none; }
#qbot-btn.abierto .qb-ico-abrir { display: none; }
#qbot-btn.abierto .qb-ico-cerrar { display: inline-flex; }
#qbot-btn span { display: inline-flex; }

#qbot-win { position: fixed; right: 24px; bottom: 152px; z-index: 61; width: 370px; max-height: min(560px, calc(100vh - 180px)); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e6e8ec; border-radius: 16px; box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .25); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; visibility: hidden; font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; }
#qbot-win.open { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { #qbot-win { transition: none; } }

.qbot-head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #e6e8ec; }
.qbot-avatar { width: 34px; height: 34px; border-radius: 10px; background: #eef3fe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.qbot-hname { color: #0f172a; font-weight: 600; font-size: 14.5px; }
.qbot-hstatus { color: #5f6878; font-size: 12px; }
#qbot-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #5f6878; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#qbot-close:hover { background: #f6f7f9; color: #0f172a; }

.qbot-cats { flex-shrink: 0; display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #e6e8ec; overflow-x: auto; scrollbar-width: none; }
.qbot-cats::-webkit-scrollbar { display: none; }
.qbot-cat { padding: 6px 11px; border-radius: 999px; border: 1px solid #e6e8ec; background: #fff; color: #475063; font: 500 12px/1.2 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.qbot-cat:hover { border-color: #d5d9e0; color: #0f172a; }
.qbot-cat.active { background: #0f172a; border-color: #0f172a; color: #fff; }

#qbot-msgs { flex: 1; min-height: 120px; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: #fbfbfc; }
.qbot-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.qbot-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #e6e8ec; color: #334155; border-radius: 4px 12px 12px 12px; }
.qbot-msg.bot strong { color: #0f172a; }
.qbot-msg.user { align-self: flex-end; background: #1d4ed8; color: #fff; border-radius: 12px 4px 12px 12px; }
.qbot-typing { display: flex; gap: 4px; align-items: center; }
.qbot-typing span { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: qbdot .9s infinite; }
.qbot-typing span:nth-child(2) { animation-delay: .2s; }
.qbot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes qbdot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

#qbot-sugs { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 12px; border-top: 1px solid #eef0f3; }
#qbot-sugs:empty { display: none; }
.qbot-sug { padding: 8px 10px; border-radius: 8px; border: 1px solid #e6e8ec; background: #fff; color: #1d4ed8; font: 500 12.5px/1.4 inherit; font-family: inherit; text-align: left; cursor: pointer; }
.qbot-sug:hover { background: #eef3fe; border-color: #c7d5fb; }

.qbot-input-row { flex-shrink: 0; display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid #e6e8ec; }
.qbot-input-row input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid #d5d9e0; border-radius: 10px; background: #fff; color: #0f172a; font: 400 14px/1.3 inherit; font-family: inherit; }
.qbot-input-row input:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }
#qbot-send { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 10px; background: #1d4ed8; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#qbot-send:hover { background: #1e40af; }
#qbot-send svg { width: 18px; height: 18px; }

.qbot-cta-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border: 0; border-radius: 9px; background: #1d4ed8; color: #fff; font: 600 12.5px/1.2 inherit; font-family: inherit; cursor: pointer; }
.qbot-cta-btn:hover { background: #1e40af; }

@media (max-width: 640px) {
  #qbot-btn { right: 16px; bottom: 76px; width: 48px; height: 48px; }
  #qbot-win { right: 8px; left: 8px; bottom: 134px; width: auto; max-height: calc(100vh - 160px); }
}
