/* Nanook, asesor de la Academia (fase 1). Identidad Buzz Boost MKT:
   azul #118AB2, magenta #FF008C, Montserrat. Clases con prefijo acad-
   para no chocar con los estilos de la página de la Academia. */
.acad-nanook-widget { position: fixed; right: 16px; bottom: 16px; z-index: 9999; font-family: Montserrat, Arial, sans-serif; }
.acad-nanook-bubble { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #FF008C; background: #fff; padding: 0; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); overflow: hidden; display: block; margin-left: auto; }
.acad-nanook-bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acad-nanook-panel { width: 340px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 110px); background: #fff; border: 1px solid #ddd; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; margin-bottom: 10px; }
.acad-nanook-panel[hidden] { display: none; }
.acad-nanook-head { display: flex; align-items: center; gap: 10px; background: #118AB2; color: #fff; padding: 10px 12px; }
.acad-nanook-head img.acad-nanook-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex: none; }
.acad-nanook-head div { flex: 1; min-width: 0; }
.acad-nanook-head strong { display: block; font-size: 15px; }
.acad-nanook-head span { display: block; font-size: 12px; opacity: .9; }
.acad-nanook-close { background: transparent; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.acad-nanook-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f7f7f7; }
.acad-nanook-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: #333; white-space: pre-wrap; word-wrap: break-word; }
.acad-nanook-nanook { background: #fff; border: 1px solid #d9ecf3; align-self: flex-start; border-bottom-left-radius: 4px; }
.acad-nanook-visitante { background: #118AB2; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.acad-nanook-note { font-size: 12px; color: #888; text-align: center; }
.acad-nanook-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #f7f7f7; }
.acad-nanook-chip { border: 1px solid #118AB2; color: #118AB2; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-family: inherit; cursor: pointer; }
.acad-nanook-chip:hover { background: #118AB2; color: #fff; }
.acad-nanook-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eee; background: #fff; }
.acad-nanook-form input { flex: 1; min-width: 0; border: 1px solid #ccc; border-radius: 999px; padding: 9px 12px; font-size: 14px; font-family: inherit; }
.acad-nanook-form input:focus { outline: 2px solid #118AB2; border-color: #118AB2; }
.acad-nanook-form button { background: #FF008C; color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: bold; font-family: inherit; cursor: pointer; }

/* Saludo junto a la burbuja (igual que en el CRM): abre el chat al tocarlo,
   se esconde cuando el panel está abierto y vuelve al cerrar con ×. */
.acad-nanook-row { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.acad-nanook-saludo { background: #fff; color: #118AB2; border: 1px solid #d9ecf3; border-radius: 999px; padding: 10px 14px; font-size: 14px; font-weight: bold; font-family: inherit; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.18); white-space: nowrap; animation: acad-nanook-fadein .5s ease; }
.acad-nanook-saludo[hidden] { display: none; }
@keyframes acad-nanook-fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acad-nanook-saludo { animation: none; } }
@media (max-width: 420px) { .acad-nanook-saludo { font-size: 13px; padding: 8px 12px; } }
