:root {
  --novabot-size: 90px;        
  --novabot-bottom: 10px;     
  --novabot-right: 18px;
  --novabot-wave-step: .417s;   
  --novabot-navy: #0a0a40;
  --novabot-navy-2: #0c076b;
  --novabot-teal: #59abb3;
  --novabot-bg: #f7fafb;
--novabot-avatar-zoom: 320% auto;
  --novabot-avatar-pan: 4.5% 15%;
}
.novabot-mascot {
  position: fixed;
  bottom: var(--novabot-bottom);
  right: var(--novabot-right);
  width: var(--novabot-size);
  height: var(--novabot-size);
  z-index: 200;
  cursor: pointer;
  padding: 0;
  border: none;
  background-color: transparent; 
  background-image: url('images/HI_AnimationNovaBot.png');
  background-repeat: no-repeat;
  background-size: 400% auto;
  background-position: 0% 12%;
transition: transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.novabot-mascot::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("images/1_FrameParpadeo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 20ms linear;
}
.novabot-mascot.is-blinking::after{
  opacity: 1;
}
.novabot-mascot:not(.is-flying):hover {
  transform: translateY(-3px);
}
.novabot-mascot:hover {
  transform: translateY(-3px);
}
.novabot-mascot:focus-visible {
  outline: 3px solid var(--novabot-teal);
  outline-offset: 4px;
  border-radius: 8px;
}
.novabot-mascot.is-waving {
  animation: novabot-wave var(--novabot-wave-step) steps(4) 6 alternate forwards;
}

@keyframes novabot-wave {
  from { background-position-x: 0; }
  to   { background-position-x: calc(var(--novabot-size) * -4); }
}
.novabot-mascot.is-crouching {
  transform-origin: center bottom;
  animation: novabot-crouch .18s ease-in-out 1;
}

@keyframes novabot-crouch {
  0%, 100% { transform: scaleY(1) translateY(0); }
  50%      { transform: scaleY(.82) translateY(6px); }
}
.novabot-mascot.is-flying {
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(var(--novabot-fly-x, 0px), var(--novabot-fly-y, 0px)) scale(var(--novabot-fly-scale, 1));
}

.novabot-mascot.is-docked {
  background-color: #1377ca;
  border: 2px solid #59abb3;
  background-position: 1.2% 10px;
  pointer-events: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .novabot-mascot {
    transition-duration: .01s;
  }
  .novabot-mascot.is-waving,
  .novabot-mascot.is-crouching {
    animation: none;
  }
}
.novabot-chatbox {
  position: fixed;
  bottom: var(--novabot-bottom);
  right: var(--novabot-right);
  width: 370px;
  max-width: calc(100vw - 36px);
  height: 500px;
  max-height: min(600px, 75vh);
  background: var(--novabot-bg);
  border-radius: 16px;
  box-shadow: 0 5px 35px rgb(0 0 0 / 15%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  z-index: 160;
  transition: opacity .25s ease, transform .25s ease;
}
.novabot-chatbox.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.novabot-chatbox-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--novabot-navy);
  box-sizing: border-box;
}
.novabot-chatbox-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.novabot-chatbox-title {
  display: flex;
  flex-direction: column;
  line-height: 1.25em;
  min-width: 0;
}

.novabot-chatbox-name {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.novabot-chatbox-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #cfe3e5;
  font-size: .75rem;
}
.novabot-chatbox-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  flex-shrink: 0;
}
.novabot-avatar-frame {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  position: relative;
  margin: 0;
  transform: translateY(-5px);
}
.novabot-chatbox-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}

.novabot-chatbox-close:hover {
  background: rgba(255, 255, 255, .12);
}

.novabot-chatbox-close:focus-visible {
  outline: 2px solid var(--novabot-teal);
  outline-offset: 2px;
}

.novabot-chatbox-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}
.novabot-msg--user {
  align-self: flex-end;
  background: var(--novabot-teal);
  color: #fff;
  border-top-right-radius: 0;
}

.novabot-msg a {
  color: var(--novabot-navy-2);
  font-weight: 600;
  text-decoration: underline;
}

.novabot-typing {
  display: flex;
  gap: 4px;
  padding: 12px;
}

.novabot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa5ab;
  animation: novabot-dot 1s infinite ease-in-out;
}

.novabot-typing span:nth-child(2) {
  animation-delay: .15s;
}

.novabot-typing span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes novabot-dot {
  0%, 80%, 100% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.novabot-advisor {
  align-self: flex-start;
  border: 0;
  border-radius: 18px;
  padding: 8px 14px;
  background: #25d366;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.novabot-msg {
  position: relative;
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.35em;
}

.novabot-msg--bot {
  align-self: flex-start;
  background: #fff;
  color: #333;
  border-top-left-radius: 0;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.novabot-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.novabot-option {
  text-align: left;
  border: 1px solid #e1e8ea;
  border-left: 3px solid transparent;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-left-color .2s ease, transform .2s ease;
}

.novabot-option:hover,
.novabot-option:focus-visible {
  border-left-color: var(--novabot-teal);
  transform: translateX(2px);
}

.novabot-option:focus-visible {
  outline: 2px solid var(--novabot-teal);
  outline-offset: 1px;
}

.novabot-option-title {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--novabot-navy-2);
}

.novabot-option-desc {
  display: block;
  font-size: .78rem;
  color: #6b7580;
  margin-top: 2px;
}

.novabot-chatbox-input {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e1e8ea;
  background: #fff;
  box-sizing: border-box;
}
.novabot-chatbox-input input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  font-size: .9rem;
  font-family: inherit;
  padding: 8px 4px;
  background: transparent;
}
.novabot-chatbox-input button {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--novabot-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .95rem;
}
.novabot-chatbox-input button:focus-visible {
  outline: 2px solid var(--novabot-navy);
  outline-offset: 2px;
}
.novabot-mascot.is-jumping {
  background-image: url('images/JUMP_AnimationNovaBot.png');
  animation: novabot-jump .55s steps(1) 1 forwards;
}
.novabot-mascot.is-flying.is-jumping {
  border-radius: 0;
  border: none;
  background-color: transparent;
}
@keyframes novabot-jump {
  0% {
    background-position-x: 0;
  }
  18% {
    background-position-x: calc(var(--novabot-size) * -1);
  }
  30% {
    background-position-x: calc(var(--novabot-size) * -2);
  }
  68% {
    background-position-x: calc(var(--novabot-size) * -2);
  }
  69% {
    background-position-x: calc(var(--novabot-size) * -3);
  }
  84% {
    background-position-x: 0;
  }

  100% {
    background-position-x: 0;
  }
}
.novabot-mascot.is-down {
  background-image: url('images/DOWN_AnimationNovaBot.png');
  background-size: 300% auto;
  background-repeat: no-repeat;
  animation: novabot-down .55s steps(1) 1 forwards;
}
@keyframes novabot-down {

  0% {
    background-position: 0% 12%;
  }
  2% {
    background-position: 50% 12%;
  }
  4% {
    background-position: 100% 12%;
  }
  54% {
    background-position: 100% 12%;
  }
  60% {
    background-position: 50% 12%;
  }
  84% {
    background-position: 0% 12%;
  }
  100% {
    background-position: 0% 12%;
  }
}
@media (max-width: 480px) {
  .novabot-chatbox {
    right: 10px;
    bottom: calc(var(--novabot-size) + 30px);
    width: calc(100vw - 20px);
  }
  .novabot-mascot {
    right: 10px;
  }
}