/* Dr. Watson FAB — assistente flutuante (v2) */

.watson-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  pointer-events: none;
}

.watson-fab__balloon {
  background: #F4C430;
  color: #1A1A1A;
  padding: 14px 22px 14px 20px;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.45;
  pointer-events: auto;
  position: relative;
  border: 2px solid #B8860B;
}

.watson-fab__balloon::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 10px solid transparent;
  border-left-color: #F4C430;
}

.watson-fab__balloon::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  transform: translateY(-50%);
  border: 11px solid transparent;
  border-left-color: #B8860B;
  z-index: -1;
}

.watson-fab__title {
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.watson-fab__text {
  font-size: 13px;
  color: #1A1A1A;
  margin-bottom: 0;
  font-weight: 500;
}

.watson-fab__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #1A1A1A;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  font-weight: bold;
  opacity: 0.6;
}

.watson-fab__close:hover {
  opacity: 1;
}

.watson-fab__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f5f0e6 url('/static/img/dr-watson.png') center/cover no-repeat;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30);
  cursor: pointer;
  pointer-events: auto;
  transition: width 0.25s ease, height 0.25s ease, transform 0.2s ease;
  border: 3px solid #B8860B;
  flex-shrink: 0;
}

.watson-fab__avatar:hover {
  transform: scale(1.06);
}

/* Estado minimizado */
.watson-fab--minimized .watson-fab__balloon {
  display: none;
}

.watson-fab--minimized .watson-fab__avatar {
  width: 52px;
  height: 52px;
  border-width: 2px;
}

/* Mobile */
@media (max-width: 600px) {
  .watson-fab {
    bottom: 16px;
    right: 16px;
  }
  .watson-fab__balloon {
    max-width: 220px;
    font-size: 13px;
    padding: 12px 18px 12px 16px;
  }
  .watson-fab__avatar {
    width: 58px;
    height: 58px;
  }
  .watson-fab--minimized .watson-fab__avatar {
    width: 46px;
    height: 46px;
  }
}
