.ims-assistant {
  --chat-ink: #132b39;
  --chat-muted: #61717c;
  --chat-line: #dfe8e5;
  --chat-paper: #fff;
  --chat-soft: #f2f7f5;
  font: 14px/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--chat-ink);
}

.ims-assistant *,
.ims-assistant *::before,
.ims-assistant *::after {
  box-sizing: border-box;
}

.ims-assistant [hidden] {
  display: none !important;
}

.cookie-robot-open .ims-assistant {
  visibility: hidden;
}

.ims-assistant button,
.ims-assistant input {
  font: inherit;
}

.ims-assistant button {
  cursor: pointer;
}

.ims-assistant button:disabled {
  opacity: .6;
  cursor: wait;
}

.ims-assistant button:focus-visible,
.ims-assistant a:focus-visible,
.ims-assistant input:focus-visible {
  outline: 3px solid #22b9a0;
  outline-offset: 3px;
}

.ims-assistant-launch {
  position: fixed;
  z-index: 900;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 20px 12px 15px;
  border: 1px solid #315c54;
  border-radius: 19px;
  background: linear-gradient(120deg, #102c36, #153d3a);
  color: #fff;
  box-shadow: 0 10px 30px #0c2c332e;
  transition: transform .2s, box-shadow .2s;
}

.ims-assistant-launch:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px #0c2c3340;
}

.ims-assistant-launch>svg {
  width: 30px;
  height: 30px;
  stroke: #9af6ce;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ims-assistant-launch span {
  font-size: 14px;
  font-weight: 650;
}

.ims-assistant-launch i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66e9b2;
  box-shadow: 0 0 0 4px #66e9b216;
}

.ims-assistant-open .ims-assistant-launch {
  visibility: hidden;
}

.ims-assistant-dialog {
  position: fixed;
  inset: auto auto 22px 24px;
  width: 520px;
  max-width: calc(100vw - 48px);
  height: 740px;
  max-height: calc(100dvh - 40px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce7e3;
  border-radius: 24px;
  color: var(--chat-ink);
  background: var(--chat-paper);
  box-shadow: 0 26px 100px #0b273440, 0 0 0 6px #ffffff22;
}

.ims-assistant-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: ims-chat-enter .2s ease-out;
}

.ims-assistant-dialog::backdrop {
  background: rgb(8 23 31 / .17);
}

.ims-assistant-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 11px;
  padding: 18px 19px;
  color: #fff;
  background: linear-gradient(120deg, #102c36, #183f3b);
}

.ims-assistant-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid #72dcb542;
  border-radius: 13px;
  background: #84edbd0b;
}

.ims-assistant-head p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
}

.ims-assistant-status {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #b9d3ce;
}

.ims-assistant-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  background: #ffffff09;
  color: #fff;
  font-size: 25px !important;
  line-height: 1;
}

.ims-assistant-close:hover {
  background: #ffffff20;
}

.ims-assistant-intro {
  flex: none;
  padding: 20px 21px 12px;
  background: radial-gradient(ellipse at 100% 0, #c4f3d940, transparent 80%);
}

.ims-assistant-intro>span {
  color: #238169;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
}

.ims-assistant-intro h2 {
  margin: 6px 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.7px;
  font-weight: 650;
}

.ims-assistant-intro p {
  max-width: 300px;
  margin: 0;
  color: var(--chat-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ims-assistant-topics {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 14px;
  border-bottom: 1px solid var(--chat-line);
}

.ims-assistant-topics button {
  padding: 6px 9px;
  border: 1px solid var(--chat-line);
  border-radius: 8px;
  color: var(--chat-ink);
  background: var(--chat-paper);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}

.ims-assistant-topics button:hover {
  border-color: #78d8b0;
  background: #eafaf1;
  color: #163b30;
}

.ims-assistant-messages {
  flex: 1 1 160px;
  min-height: 90px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
  background: var(--chat-soft);
  scrollbar-width: thin;
}

.ims-assistant-messages:empty::before {
  display: block;
  margin: 18px 0;
  content: "Elige una pregunta o cuéntame qué necesitas.";
  color: var(--chat-muted);
  font-size: 12px;
  text-align: center;
}

.ims-assistant-messages:empty[data-empty-text]::before {
  content: attr(data-empty-text);
}

.ims-assistant-message {
  width: 95%;
  margin: 0 0 13px;
  padding: 12px 13px;
  border: 1px solid var(--chat-line);
  border-radius: 2px 13px 13px;
  background: var(--chat-paper);
  overflow-wrap: anywhere;
}

.ims-assistant-message-user {
  width: fit-content;
  max-width: 92%;
  margin-left: auto;
  color: #12352d;
  background: #dff5e9;
  border-color: #d0eadc;
  border-radius: 13px 2px 13px 13px;
}

.ims-assistant-message-label {
  display: block;
  color: var(--chat-muted);
  font-size: 8px;
  letter-spacing: .1em;
  font-weight: 700;
}

.ims-assistant-message-user .ims-assistant-message-label {
  color: #477561;
}

.ims-assistant-message p {
  margin: 4px 0 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.65;
}

.ims-assistant-message a {
  display: inline-block;
  margin: 8px 7px 0 0;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  color: #147059;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.ims-assistant-options {
  flex: none;
  display: grid;
  gap: 6px;
  padding: 10px 19px 7px;
  border-top: 1px solid var(--chat-line);
  background: var(--chat-paper);
}

.ims-assistant-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--chat-muted);
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
}

.ims-assistant-options input {
  flex: none;
  width: 13px;
  height: 13px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: #178363;
}

.ims-assistant-form {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 15px;
  padding: 5px;
  border: 1px solid #cfddd7;
  border-radius: 13px;
  background: var(--chat-paper);
}

.ims-assistant-form:focus-within {
  border-color: #269c7b;
  box-shadow: 0 0 0 3px #239b7910;
}

.ims-assistant-form input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 37px;
  padding: 5px 8px;
  border: 0;
  outline: 0;
  color: var(--chat-ink);
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: none;
}

.ims-assistant-form input::placeholder {
  color: var(--chat-muted);
}

.ims-assistant-send,
.ims-assistant-mic {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
}

.ims-assistant-send {
  color: #fff;
  background: #153b35;
  font-size: 23px !important;
  line-height: 1;
}

.ims-assistant-send:hover {
  background: #137659;
}

.ims-assistant-mic {
  color: #57756b;
  background: var(--chat-soft);
}

.ims-assistant-mic svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.ims-assistant-mic.is-listening {
  color: #b22c59;
  background: #ffe5ee;
}

.ims-assistant-voice-note,
.ims-assistant-privacy {
  flex: none;
  padding: 0 20px;
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--chat-muted);
}

.ims-assistant-privacy {
  margin: 7px 0 13px;
}

.ims-assistant-privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ims-assistant-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root[data-theme="dark"] .ims-assistant {
  --chat-ink: #e1ece7;
  --chat-muted: #a6bab0;
  --chat-line: #31483d;
  --chat-paper: #142b26;
  --chat-soft: #10221f;
}

:root[data-theme="dark"] .ims-assistant-dialog {
  border-color: #3f6051;
}

:root[data-theme="dark"] .ims-assistant-intro>span {
  color: #83d9b7;
}

:root[data-theme="dark"] .ims-assistant-message a {
  color: #84e0bd;
}

:root[data-theme="dark"] .ims-assistant-followups button {
  color: #c7f1d9;
  border-color: #47765d;
  background: #1c392d;
}

:root[data-theme="dark"] .ims-assistant-followups button:hover {
  background: #244c38;
}

:root[data-theme="dark"] .ims-assistant-message-user {
  color: #d7f6e7;
  background: #214c3c;
  border-color: #315e4d;
}

:root[data-theme="dark"] .ims-assistant-message-user .ims-assistant-message-label {
  color: #acd8c1;
}

@keyframes ims-chat-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width:480px) {
  .ims-assistant-launch {
    left: 14px;
    bottom: 16px;
    min-height: 52px;
    padding: 10px 15px 10px 12px;
    gap: 9px;
    border-radius: 16px;
  }

  .ims-assistant-launch>svg {
    width: 27px;
    height: 27px;
  }

  .ims-assistant-dialog {
    inset: auto 10px 10px;
    width: calc(100% - 20px);
    max-width: none;
    height: min(740px, calc(100dvh - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .ims-assistant-intro {
    padding-top: 16px;
  }

  .ims-assistant-form input {
    font-size: 16px;
  }
}

@media(max-height:560px) {
  .ims-assistant-intro {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .ims-assistant-intro h2 {
    font-size: 18px;
  }

  .ims-assistant-intro p,
  .ims-assistant-intro>span {
    display: none;
  }

  .ims-assistant-head {
    padding-block: 11px;
  }

  .ims-assistant-topics {
    padding-bottom: 8px;
  }

  .ims-assistant-messages {
    min-height: 55px;
  }
}

@media(prefers-reduced-motion:reduce) {

  .ims-assistant *,
  .ims-assistant *::before,
  .ims-assistant *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Retrato y estados expresivos de Lina Bot */
.ims-bot-face {
  width: 58px;
  height: 66px;
  overflow: visible;
}

.ims-bot-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 5px 7px #071a1c55);
}

.ims-portrait-body {
  fill: #214d50;
}

.ims-portrait-hair-back,
.ims-portrait-hair {
  fill: #38231f;
}

.ims-portrait-face {
  fill: #c9855f;
}

.ims-portrait-ear {
  fill: #c9855f;
  stroke: #9e5e43;
  stroke-width: 1.3;
}

.ims-portrait-brow {
  fill: none;
  stroke: #4c2922;
  stroke-width: 2.1;
  stroke-linecap: round;
  transform-origin: center;
  transition: transform .24s ease;
}

.ims-portrait-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: ims-portrait-blink 6.2s ease-in-out infinite;
}

.ims-portrait-pupil {
  fill: #38231f;
}

.ims-portrait-nose {
  fill: none;
  stroke: #a45f46;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ims-portrait-mouth {
  fill: none;
  stroke: #8e3940;
  stroke-width: 2.2;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s ease, stroke .2s ease;
}

.ims-assistant[data-mood="happy"] .ims-portrait-mouth,
.ims-assistant[data-mood="greeting"] .ims-portrait-mouth {
  transform: scale(1.35, 1.3) translateY(-2px);
}

.ims-assistant[data-mood="curious"] .ims-portrait-brow {
  transform: rotate(-7deg) translateY(-1px);
}

.ims-assistant[data-mood="thinking"] .ims-portrait-eyes {
  transform: scaleY(.78) translateY(5px);
  animation: none;
}

.ims-assistant[data-mood="thinking"] .ims-portrait-mouth {
  transform: scaleX(.75) translateY(1px);
}

.ims-assistant[data-mood="listening"] .ims-portrait-mouth {
  transform: scale(.72, 1.35);
}

.ims-assistant[data-mood="speaking"] .ims-portrait-mouth {
  animation: ims-portrait-talk .34s ease-in-out infinite alternate;
}

.ims-assistant[data-mood="speaking"] .ims-portrait-eyes {
  animation-duration: 4.5s;
}

.ims-assistant-avatar .ims-bot-face {
  width: 49px;
  height: 55px;
}

.ims-assistant-launch .ims-bot-face {
  width: 58px;
  height: 66px;
}

.ims-assistant-message.is-typing .ims-assistant-typed-copy::after {
  display: inline-block;
  width: 5px;
  height: 1em;
  margin-left: 3px;
  background: #4a9a79;
  vertical-align: -.15em;
  content: "";
  animation: ims-typing-caret .8s steps(2, end) infinite;
}

@keyframes ims-portrait-blink {

  0%,
  44%,
  48%,
  100% {
    transform: scaleY(1);
  }

  46% {
    transform: scaleY(.09);
  }
}

@keyframes ims-portrait-talk {
  from {
    transform: scaleY(.8);
  }

  to {
    transform: scaleY(1.65);
  }
}

@keyframes ims-typing-caret {
  to {
    opacity: 0;
  }
}

@keyframes ims-message-dust {
  to {
    opacity: 0;
    filter: blur(5px);
    transform: translate(8px, -4px) scale(.97);
  }
}

.ims-assistant-launch {
  gap: 12px;
  min-height: 80px;
  padding: 12px 18px 12px 13px;
  border-color: #457369;
  border-radius: 24px;
  background: linear-gradient(130deg, #0c202c, #173c39);
  box-shadow: 0 12px 36px #0b283544, inset 0 1px #ffffff13;
}

.ims-assistant-launch-copy {
  display: grid;
  gap: 1px;
  text-align: left;
}

.ims-assistant-launch-copy strong {
  color: #f6fffb;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.ims-assistant-launch-copy>span {
  color: #b9dcd0;
  font-size: 12px;
  font-weight: 500;
}

.ims-assistant-launch>i {
  width: 6px;
  height: 6px;
  margin-left: 1px;
}

.ims-bot-face {
  display: block;
  position: relative;
  flex: none;
  width: 56px;
  height: 54px;
  isolation: isolate;
}

.ims-bot-screen {
  display: block;
  position: absolute;
  inset: 3px 0;
  overflow: hidden;
  border: 1.5px solid #87c6b4;
  border-radius: 17px;
  background: radial-gradient(ellipse at 50% 120%, #133d3b, #081820 75%);
  box-shadow: inset 0 2px 5px #ffffff0c, inset 0 -2px 6px #0007, 0 3px 10px #0002;
  transform-origin: 50% 80%;
  animation: ims-bot-tilt 12s ease-in-out infinite;
}

.ims-bot-screen::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid #ffffff07;
  border-radius: 14px;
}

.ims-bot-screen::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 8px;
  width: 15px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff10;
  transform: rotate(-12deg);
}

.ims-bot-eye {
  display: block;
  position: absolute;
  top: 15px;
  width: 8px;
  height: 12px;
  border-radius: 5px;
  background: #9bfbd1;
  box-shadow: 0 0 10px #73ffc14d;
  transform-origin: 50% 50%;
  animation: ims-bot-eyes 7.4s ease-in-out infinite;
  transition: top .2s, height .2s, border-radius .2s;
}

.ims-bot-eye-left {
  left: 12px;
}

.ims-bot-eye-right {
  right: 12px;
}

.ims-bot-brow {
  display: block;
  position: absolute;
  top: 10px;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: #7ee9bb;
  opacity: .45;
  transition: transform .25s, top .25s, opacity .25s;
}

.ims-bot-brow-left {
  left: 10px;
  transform: rotate(-9deg);
}

.ims-bot-brow-right {
  right: 10px;
  transform: rotate(9deg);
}

.ims-bot-cheek {
  display: block;
  position: absolute;
  top: 29px;
  width: 7px;
  height: 3px;
  border-radius: 50%;
  background: #ffabbc;
  box-shadow: 0 0 6px #ffabbc44;
  opacity: .45;
  transition: opacity .25s;
}

.ims-bot-cheek-left {
  left: 7px;
}

.ims-bot-cheek-right {
  right: 7px;
}

.ims-bot-mouth {
  display: block;
  position: absolute;
  top: 29px;
  left: calc(50% - 7px);
  width: 14px;
  height: 7px;
  border: 0 solid #9bfbd1;
  border-bottom-width: 2px;
  border-radius: 0 0 12px 12px;
  transition: width .2s, height .2s, top .2s, background .2s;
}

.ims-assistant[data-mood="greeting"] .ims-bot-screen,
.ims-assistant[data-mood="happy"] .ims-bot-screen {
  animation: ims-bot-happy 1.2s ease-in-out infinite;
}

.ims-assistant[data-mood="greeting"] .ims-bot-eye,
.ims-assistant[data-mood="happy"] .ims-bot-eye {
  height: 7px;
  top: 16px;
  border-radius: 8px 8px 3px 3px;
  animation: ims-bot-happy-eyes 5s ease-in-out infinite;
}

.ims-assistant[data-mood="greeting"] .ims-bot-cheek,
.ims-assistant[data-mood="happy"] .ims-bot-cheek {
  opacity: .9;
}

.ims-assistant[data-mood="greeting"] .ims-bot-mouth,
.ims-assistant[data-mood="happy"] .ims-bot-mouth {
  width: 18px;
  left: calc(50% - 9px);
  height: 9px;
  top: 27px;
  border-bottom-width: 3px;
}

.ims-assistant[data-mood="thinking"] .ims-bot-eye {
  animation: ims-bot-thinking-eyes 2.3s ease-in-out infinite;
}

.ims-assistant[data-mood="thinking"] .ims-bot-brow-left,
.ims-assistant[data-mood="curious"] .ims-bot-brow-left {
  top: 7px;
  transform: rotate(-16deg);
  opacity: .9;
}

.ims-assistant[data-mood="thinking"] .ims-bot-brow-right {
  transform: rotate(-6deg);
}

.ims-assistant[data-mood="thinking"] .ims-bot-mouth {
  width: 8px;
  left: calc(50% - 4px);
  height: 3px;
  top: 32px;
  border-radius: 3px;
}

.ims-assistant[data-mood="curious"] .ims-bot-screen {
  transform: rotate(-7deg);
  animation: ims-bot-curious 4s ease-in-out infinite;
}

.ims-assistant[data-mood="curious"] .ims-bot-eye-right {
  height: 14px;
  top: 13px;
}

.ims-assistant[data-mood="listening"] .ims-bot-screen {
  animation: ims-bot-listening 1.4s ease-in-out infinite;
}

.ims-assistant[data-mood="listening"] .ims-bot-eye {
  animation: none;
  width: 9px;
  height: 14px;
  top: 13px;
}

.ims-assistant[data-mood="listening"] .ims-bot-mouth {
  width: 6px;
  height: 6px;
  left: calc(50% - 3px);
  top: 31px;
  border: 2px solid #9bfbd1;
  border-radius: 50%;
}

.ims-assistant[data-mood="speaking"] .ims-bot-mouth {
  width: 13px;
  height: 7px;
  left: calc(50% - 6.5px);
  top: 29px;
  background: #9bfbd1;
  border: 0;
  border-radius: 5px 5px 7px 7px;
  animation: ims-bot-speaking .42s ease-in-out infinite;
}

.ims-bot-paused .ims-bot-face *,
.ims-bot-suspended .ims-bot-face *,
.ims-bot-paused .ims-bot-face *::before,
.ims-bot-suspended .ims-bot-face *::before {
  animation-play-state: paused !important;
}

.ims-assistant-head {
  gap: 10px;
  min-width: 0;
  padding: 12px 15px;
  background: linear-gradient(120deg, #0c2431, #173e38);
}

.ims-assistant-avatar {
  width: 50px;
  height: 52px;
  border: 0;
  border-radius: 0;
  background: none;
}

.ims-assistant-avatar .ims-bot-face {
  width: 50px;
  height: 50px;
}

.ims-assistant-avatar .ims-bot-eye-left {
  left: 10px;
}

.ims-assistant-avatar .ims-bot-eye-right {
  right: 10px;
}

.ims-assistant-head>div:not(.ims-assistant-head-actions) {
  min-width: 0;
  flex: 1;
}

.ims-assistant-head p {
  font-size: 17px;
  font-weight: 700;
}

.ims-assistant-status {
  color: #bedbcf;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ims-assistant-head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.ims-assistant-close,
.ims-assistant-clear {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
  background: #ffffff09;
  color: #fff;
  line-height: 1;
}

.ims-assistant-close {
  font-size: 24px !important;
}

.ims-assistant-clear svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ims-assistant-close:hover,
.ims-assistant-clear:hover {
  background: #ffffff20;
}

.ims-assistant-intro {
  padding: 14px 20px 11px;
}

.ims-assistant-intro>span {
  font-size: 10px;
  letter-spacing: .1em;
}

.ims-assistant-intro h2 {
  margin: 5px 0;
  font-size: 21px;
}

.ims-assistant-intro p {
  display: block;
  max-width: none;
  font-size: 13px;
}

.ims-assistant-topics {
  gap: 7px;
  padding: 0 20px 13px;
}

.ims-assistant-topics button {
  padding: 5px 8px;
  min-height: 30px;
  border-radius: 9px;
  font-size: 12px;
}

.ims-assistant-messages {
  min-height: 90px;
  padding: 17px 20px;
}

.ims-assistant-message {
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 3px 13px 13px;
}

.ims-assistant-message-user {
  border-radius: 13px 3px 13px 13px;
}

.ims-assistant-message-label {
  font-size: 10px;
  letter-spacing: .07em;
}

.ims-assistant-message p {
  font-size: 13px;
  line-height: 1.6;
}

.ims-assistant-message a {
  font-size: 12px;
}

.ims-assistant-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.ims-assistant-followups button {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #b9dec9;
  border-radius: 999px;
  color: #176447;
  background: #effaf3;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
  transition: background .18s, border-color .18s, transform .18s;
}

.ims-assistant-followups button:hover {
  transform: translateY(-1px);
  border-color: #75c99b;
  background: #e1f6e9;
}

.ims-assistant-options {
  padding: 9px 17px 7px;
}

.ims-assistant-options label {
  font-size: 12px;
  line-height: 1.35;
}

.ims-assistant-options input {
  width: 15px;
  height: 15px;
}

.ims-assistant-voice-state {
  color: #147059;
  font-size: 12px;
}

.ims-assistant-form {
  margin-inline: 14px;
  padding: 4px;
}

.ims-assistant-form input {
  padding-inline: 7px;
}

.ims-assistant-voice-note,
.ims-assistant-privacy {
  padding-inline: 17px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
}

.ims-assistant-privacy {
  margin: 6px 0 11px;
}

:root[data-theme="dark"] .ims-assistant-voice-state {
  color: #84e0bd;
}

@keyframes ims-bot-eyes {

  0%,
  18%,
  22%,
  50%,
  54%,
  82%,
  86%,
  100% {
    transform: translate(0, 0) scaleY(1);
  }

  19%,
  21%,
  83%,
  85% {
    transform: translate(0, 0) scaleY(.12);
  }

  35%,
  43% {
    transform: translate(2px, -1px) scaleY(1);
  }

  66%,
  73% {
    transform: translate(-2px, 0) scaleY(1);
  }
}

@keyframes ims-bot-tilt {

  0%,
  24%,
  51%,
  100% {
    transform: rotate(0) translateY(0);
  }

  31%,
  39% {
    transform: rotate(-4deg) translateY(-1px);
  }

  68%,
  77% {
    transform: rotate(4deg) translateY(-1px);
  }
}

@keyframes ims-bot-happy {

  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }

  50% {
    transform: rotate(2deg) translateY(-2px);
  }
}

@keyframes ims-bot-happy-eyes {

  0%,
  43%,
  49%,
  100% {
    transform: scaleY(1);
  }

  45%,
  47% {
    transform: scaleY(.25);
  }
}

@keyframes ims-bot-thinking-eyes {

  0%,
  100% {
    transform: translate(0, -2px);
  }

  35%,
  70% {
    transform: translate(3px, -3px);
  }
}

@keyframes ims-bot-curious {

  0%,
  100% {
    transform: rotate(-7deg);
  }

  50% {
    transform: rotate(-3deg) translateY(-1px);
  }
}

@keyframes ims-bot-listening {

  0%,
  100% {
    box-shadow: 0 0 0 1px #91ffd321, 0 0 13px #6eecb619;
  }

  50% {
    box-shadow: 0 0 0 3px #91ffd333, 0 0 20px #6eecb644;
  }
}

@keyframes ims-bot-speaking {

  0%,
  100% {
    transform: scale(.9, .35);
    border-radius: 7px;
  }

  35% {
    transform: scale(1, 1.3);
  }

  70% {
    transform: scale(.8, .75);
  }
}

@media(max-width:480px) {
  .ims-assistant-launch {
    min-height: 77px;
    padding: 10px 15px 10px 12px;
    gap: 10px;
    border-radius: 22px;
  }
}

@media(max-width:350px) {
  .ims-assistant-head {
    gap: 7px;
    padding: 10px 12px;
  }

  .ims-assistant-head-actions {
    gap: 3px;
  }

  .ims-assistant-close,
  .ims-assistant-clear {
    width: 27px;
  }

  .ims-assistant-intro {
    padding: 10px 15px 9px;
  }

  .ims-assistant-intro>span {
    display: none;
  }

  .ims-assistant-intro h2 {
    font-size: 20px;
  }

  .ims-assistant-topics {
    padding-inline: 14px;
    gap: 5px;
  }

  .ims-assistant-topics button {
    padding-inline: 7px;
  }
}

@media(max-height:580px) {
  .ims-assistant-intro {
    padding-top: 8px;
    padding-bottom: 7px;
  }

  .ims-assistant-intro h2 {
    font-size: 18px;
  }

  .ims-assistant-intro p,
  .ims-assistant-intro>span {
    display: none;
  }

  .ims-assistant-head {
    padding-block: 8px;
  }

  .ims-assistant-topics {
    padding-bottom: 7px;
  }

  .ims-assistant-messages {
    min-height: 45px;
  }

  .ims-assistant-voice-note {
    max-height: 31px;
    overflow: auto;
  }
}

@media(prefers-reduced-motion:reduce) {

  .ims-assistant *,
  .ims-assistant *::before,
  .ims-assistant *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.ims-assistant .ims-bot-face {
  width: 58px;
  height: 66px;
  overflow: visible;
}

.ims-assistant .ims-assistant-launch .ims-bot-face {
  width: 58px;
  height: 66px;
}

.ims-assistant-dialog {
  border-color: #c9e3d8;
  border-radius: 26px;
  box-shadow: 0 26px 100px #0b27344a, 0 0 0 1px #ffffff30;
}

.ims-assistant-head {
  background: linear-gradient(118deg, #12294a, #235084 63%, #366995);
}

.ims-assistant-intro {
  background: radial-gradient(ellipse at 94% 0, #ace6c944, transparent 76%), linear-gradient(180deg, #fff, #f7fbf8);
}

.ims-assistant-intro h2 {
  font-size: clamp(20px, 3vw, 24px);
}

.ims-assistant-topics {
  gap: 7px;
}

.ims-assistant-topics button {
  border-radius: 999px;
  padding-inline: 11px;
}

.ims-assistant-message {
  box-shadow: 0 5px 15px #1835260a;
}

.ims-assistant-message-assistant {
  border-radius: 3px 15px 15px;
}

.ims-assistant-message-user {
  border-radius: 15px 3px 15px 15px;
}

.ims-assistant-form {
  border-radius: 999px;
  padding: 6px 7px 6px 13px;
}

.ims-assistant-send,
.ims-assistant-mic {
  border-radius: 50%;
}

.ims-assistant-send {
  background: linear-gradient(135deg, #167a56, #1b594b);
}

.ims-assistant-send:hover {
  background: linear-gradient(135deg, #209a68, #19785a);
}

:root[data-theme="dark"] .ims-assistant-intro {
  background: radial-gradient(ellipse at 94% 0, #4b916844, transparent 76%), linear-gradient(180deg, #142b26, #10221f);
}

:root[data-theme="dark"] .ims-assistant-dialog {
  border-color: #3d6a54;
}

@media (max-width: 480px) {
  .ims-assistant-launch {
    min-height: 70px;
  }
}

.ims-assistant-avatar {
  --lina-avatar-width: clamp(78px, 25vw, 112px);
  display: grid;
  place-items: end center;
  width: var(--lina-avatar-width);
  height: calc(1.03 * var(--lina-avatar-width));
  flex: 0 0 var(--lina-avatar-width);
  border: 1px solid #c0daff73;
  border-radius: 22px;
  background: radial-gradient(circle at 47% 34%, #a1d5ff76, #3b6da34e 58%, #091f4455);
}

.ims-assistant .ims-assistant-avatar .ims-bot-face {
  width: calc(var(--lina-avatar-width) - 8px);
  height: calc(var(--lina-avatar-width) - 1px);
}

.ims-assistant[data-mood="greeting"] .ims-assistant-avatar .ims-bot-portrait {
  transform-origin: 50% 78%;
  animation: ims-lina-nod .95s cubic-bezier(.22, .65, .28, 1) both;
}

@keyframes ims-lina-nod {
  0% {
    transform: translateY(4px) scale(.97);
  }

  37% {
    transform: translateY(0) rotate(-5deg) scale(1.035);
  }

  68% {
    transform: translateY(1px) rotate(1.5deg) scale(1.015);
  }

  100% {
    transform: none;
  }
}

.ims-assistant-intro {
  padding-block: 13px 6px;
  background: var(--chat-paper);
}

.ims-assistant-intro h2 {
  margin: 0;
  font-size: 18px;
}

.ims-assistant-topics {
  flex-wrap: nowrap;
  overflow: auto;
  padding-bottom: 9px;
  scrollbar-width: thin;
}

.ims-assistant-topics button {
  flex: none;
  white-space: nowrap;
}

.ims-assistant-messages {
  border-top: 1px solid var(--chat-line);
}

.ims-assistant-dialog::backdrop {
  background: #0a1b2742;
  backdrop-filter: blur(3px);
}

.ims-assistant-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
}

.ims-assistant-options label {
  min-height: 26px;
}

.ims-assistant-options label[hidden] {
  display: none;
}

.ims-portrait-hair-back {
  fill: #a7763b;
}

.ims-portrait-hair {
  fill: #e4ba68;
}

.ims-portrait-hair-shine,
.ims-portrait-hair-strands {
  fill: none;
  stroke: #ffe7a5;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.ims-portrait-hair-strands {
  stroke: #ffedc1;
  opacity: .66;
  stroke-width: 1;
}

.ims-portrait-body {
  fill: #204779;
}

.ims-portrait-jacket {
  fill: #437cba;
}

.ims-portrait-neck {
  fill: #bd785f;
}

.ims-portrait-face,
.ims-portrait-ear {
  fill: #e3a888;
}

.ims-portrait-light {
  fill: #f9c2a2;
  opacity: .68;
}

.ims-portrait-brow {
  stroke: #845a40;
}

.ims-portrait-eyes path {
  fill: #fff9f2;
}

.ims-portrait-eyes .ims-portrait-eye-spark {
  fill: none;
  stroke: #fff;
  stroke-width: 1.1;
  stroke-linecap: round;
}

.ims-portrait-pupil {
  fill: #3f72a5;
}

.ims-portrait-headset {
  fill: none;
  stroke: #25477c;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.ims-portrait-sensor {
  fill: #97d7ff;
}

.ims-skull,
.ims-mrs-claus {
  display: none;
}

:root[data-season="halloween"] .ims-portrait-human {
  display: none;
}

:root[data-season="halloween"] .ims-skull,
:root[data-season="christmas"] .ims-mrs-claus {
  display: block;
}

.ims-skull-coat {
  fill: #4d3a61;
  stroke: #866592;
}

.ims-skull-neck {
  fill: #aa93ab;
}

.ims-skull-outline {
  fill: #eedeca;
  stroke: #a68da5;
  stroke-width: 1.5;
}

.ims-skull-shade {
  fill: #bfb0b5;
}

.ims-skull-ridges,
.ims-skull-seam {
  fill: none;
  stroke: #a797a6;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.ims-skull-sockets {
  fill: #312338;
}

.ims-skull-eyes {
  fill: #ffc16b;
  filter: drop-shadow(0 0 3px #f8a94ccc);
  transition: transform .2s ease;
}

.ims-skull-jaw {
  transform-box: fill-box;
  transform-origin: top;
}

.ims-skull-jaw path:first-child {
  fill: #e4d3c1;
  stroke: #ac98a5;
}

.ims-skull-jaw path:last-child {
  fill: none;
  stroke: #9e8d9b;
  stroke-width: 1.2;
}

.ims-assistant[data-mood="thinking"] .ims-skull-eyes {
  transform: translate(2px, -2px);
}

.ims-assistant[data-mood="speaking"] .ims-skull-jaw {
  animation: ims-skull-speak .3s ease-in-out infinite alternate;
}

.ims-assistant:is([data-mood="listening"], [data-mood="happy"]) .ims-skull-eyes {
  animation: ims-skull-glow .65s ease-in-out infinite alternate;
}

@keyframes ims-skull-speak {
  to {
    transform: translateY(3px) scaleY(1.18);
  }
}

@keyframes ims-skull-glow {
  to {
    fill: #fff0c4;
    filter: drop-shadow(0 0 5px #ffc87f);
  }
}

.ims-claus-coat,
.ims-claus-bonnet {
  fill: #a52f44;
  stroke: #ef7482;
  stroke-width: 1.1;
}

.ims-claus-bonnet {
  fill: #c13a4c;
}

.ims-claus-collar,
.ims-claus-trim {
  fill: #fff1df;
}

.ims-claus-seam {
  fill: none;
  stroke: #ef8790;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.ims-claus-button,
.ims-claus-bow {
  fill: #eac47c;
  stroke: #a3703b;
  stroke-width: .7;
}

:root[data-season="halloween"] .ims-assistant-head {
  background: linear-gradient(115deg, #271a35, #513349);
}

:root[data-season="christmas"] .ims-assistant-head {
  background: linear-gradient(115deg, #172d48, #245460);
}

.ims-assistant[data-mood="listening"] .ims-portrait-sensor {
  animation: ims-sensor-pulse .6s ease alternate infinite;
}

.ims-assistant[data-mood="thinking"] .ims-portrait-pupil {
  transform: translate(1px, -1.5px);
}

.ims-assistant[data-mood="happy"] .ims-portrait-eyes {
  animation: ims-portrait-smile .35s ease both;
}

.ims-assistant-message.is-dusting {
  overflow: visible;
  animation: none;
  box-shadow: none;
  background-color: transparent;
  border-color: transparent;
}

.ims-assistant-message.is-dusting> :not(.ims-assistant-dust) {
  animation: ims-message-dust .39s ease-in both;
}

.ims-assistant-dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ims-assistant-dust i {
  position: absolute;
  top: var(--dust-y);
  left: var(--dust-x);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #60b79a;
  opacity: 0;
  animation: ims-dust-grain .49s var(--dust-delay) ease-out both;
}

.ims-assistant-dust i:nth-child(3n) {
  background: #d9a25d;
  width: 3px;
  height: 3px;
}

.ims-assistant-dust i:nth-child(3n + 1) {
  background: #b1ddd0;
}

@keyframes ims-dust-grain {
  13% {
    opacity: .9;
  }

  to {
    opacity: 0;
    transform: translate(var(--dust-drift), var(--dust-lift)) scale(.2);
  }
}

@keyframes ims-sensor-pulse {
  to {
    fill: #f1ffdc;
    filter: drop-shadow(0 0 3px #b3fcd9);
  }
}

@keyframes ims-portrait-smile {
  to {
    transform: scaleY(.67) translateY(-1px);
  }
}

@media (max-width: 480px) {
  .ims-assistant-avatar {
    border-radius: 17px;
  }
}

@media (max-height: 480px) {
  .ims-assistant-avatar {
    --lina-avatar-width: 70px;
  }
}

/* Lina Bot público */
.ims-assistant-compact .ims-assistant-options,
.ims-assistant-compact .ims-assistant-voice-note {
  display: none !important
}

.ims-assistant-compact .ims-assistant-intro {
  padding-bottom: 10px
}

.ims-assistant-compact .ims-assistant-intro h2 {
  font-size: 20px
}

.ims-assistant-compact .ims-assistant-topics {
  padding-bottom: 14px
}

.ims-assistant-compact .ims-assistant-topics button {
  font-weight: 750;
  background: #e2f9ed;
  border-color: #83c7ac;
  color: #164a3b
}

.ims-assistant-phrase-status {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.ims-assistant-phrase-status:not(:empty) {
  padding: 7px 16px 2px;
}

.ims-assistant-season-link {
  align-self: flex-start;
  min-height: 42px;
  margin: 0 16px 6px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
}
