@charset "UTF-8";
div#cbm-chat-container {
  background: transparent;
}

.cbm-header-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.cbm-header-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.chat-mini-img {
  background-image: url(../img/chat-fill.png);
  width: 100%;
  height: 100%;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
}

#chat-circle {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 55px !important;
  height: 55px;
  background: #326E74;
  border-radius: 50%;
  color: white;
  padding: 10px;
  cursor: pointer;
  -webkit-box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.6), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
          box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.6), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  z-index: 10;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-animation: pulse 10s infinite;
          animation: pulse 10s infinite;
}
#chat-circle:hover {
  -webkit-transform: scale(1.1) rotate(5deg);
          transform: scale(1.1) rotate(5deg);
  background: -webkit-gradient(linear, left top, right top, from(#132f47), to(#183292));
  background: linear-gradient(90deg, #132f47 0%, #183292 100%);
  -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
          box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  -webkit-transform: scale(1.12) translateY(-2px);
          transform: scale(1.12) translateY(-2px);
  -webkit-box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
          box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.5);
            box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.5);
  }
  3% {
    -webkit-box-shadow: 0 0 0 22px rgba(0, 153, 255, 0);
            box-shadow: 0 0 0 22px rgba(0, 153, 255, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(0, 153, 255, 0);
            box-shadow: 0 0 0 0 rgba(0, 153, 255, 0);
  }
}
@keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.5);
            box-shadow: 0 0 0 0 rgba(0, 153, 255, 0.5);
  }
  3% {
    -webkit-box-shadow: 0 0 0 22px rgba(0, 153, 255, 0);
            box-shadow: 0 0 0 22px rgba(0, 153, 255, 0);
  }
  100% {
    -webkit-box-shadow: 0 0 0 0 rgba(0, 153, 255, 0);
            box-shadow: 0 0 0 0 rgba(0, 153, 255, 0);
  }
}
#chat-circle img {
  width: 35px;
  height: 35px;
}

@media (min-width: 768px) {
  #chat-circle.mobile-only {
    display: none;
  }
}
.chat-msg.user-message {
  background: linear-gradient(135deg, #2196F3 0%, #4FC3F7 100%);
  padding: 12px 18px;
  border-radius: 18px 18px 6px 18px;
  max-width: 85%;
  float: right;
  margin-right: 10px;
  color: #fff;
  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.chat-msg.loading {
  width: 100%;
}

.chat-box {
  display: none;
  width: 350px; /* o el ancho que quieras */
  background: -webkit-gradient(linear, left top, left bottom, from(#E6F4FF), to(#F9FCFF));
  background: linear-gradient(180deg, #E6F4FF 0%, #F9FCFF 100%); /* fondo suave */
  border-radius: 20px; /* redondeo del contenedor */
  overflow: hidden; /* evita que se salgan las burbujas */
  -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
          box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* sombra moderna */
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.chat-box.active {
  -webkit-transform: scale(1);
          transform: scale(1);
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 10;
  display: block;
  -webkit-animation: bounceIn 0.4s ease;
          animation: bounceIn 0.4s ease;
}

@-webkit-keyframes bounceIn {
  0% {
    -webkit-transform: scale(0.7);
            transform: scale(0.7);
    opacity: 0;
  }
  60% {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    -webkit-transform: scale(0.7);
            transform: scale(0.7);
    opacity: 0;
  }
  60% {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
.chat-box-toggle {
  float: right;
  margin-right: 15px;
  cursor: pointer;
}

.chat-box-header {
  background: -webkit-gradient(linear, left top, right top, from(#132f47), to(#183292)) !important;
  background: linear-gradient(90deg, #132f47 0%, #183292 100%) !important;
  height: 70px;
  color: white;
  text-align: center;
  font-size: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px;
}

.chat-box-header h3 {
  font-size: 20px;
  text-align: left;
}

.chat-box-body {
  position: relative;
  overflow: hidden;
  background: -webkit-gradient(linear, left top, left bottom, from(#E6F4FF), to(#F9FCFF));
  background: linear-gradient(180deg, #E6F4FF 0%, #F9FCFF 100%);
}

.chat-input {
  background: -webkit-gradient(linear, left top, right top, from(#132f47), to(#183292)) !important;
  background: linear-gradient(90deg, #132f47 0%, #183292 100%) !important;
  padding: 0.5rem;
}
.chat-input form {
  background-color: white;
  padding: 0.15rem;
  border-radius: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row nowrap;
          flex-flow: row nowrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 0;
}
.chat-input #chat-input {
  width: calc(100% - 35px);
  position: relative;
  height: 47px;
  padding-top: 10px;
  padding-right: 50px;
  padding-bottom: 10px;
  padding-left: 15px;
  resize: none;
  outline: none;
  color: #383838;
  overflow: hidden;
  border-radius: inherit;
  border-color: transparent;
  font-size: 14px;
}
.chat-input #chat-input:focus {
  background-color: white;
  background: white;
  border-radius: 30px;
  opacity: 1;
  font-size: 14px;
}

.chat-submit {
  background: transparent;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: none;
  border-radius: 50%;
  color: #326E74;
  width: 35px;
  height: 35px;
}

#chat-submit:hover {
  background: transparent;
}
#chat-submit:hover #chat-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ccc;
}
#chat-submit:hover #chat-input::-moz-placeholder { /* Firefox 19+ */
  color: #ccc;
}
#chat-submit:hover #chat-input:-ms-input-placeholder { /* IE 10+ */
  color: #ccc;
}
#chat-submit:hover #chat-input:-moz-placeholder { /* Firefox 18- */
  color: #ccc;
}

.chat-logs {
  padding: 15px;
  height: 450px;
  overflow-y: scroll;
  border-radius: 0 0 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: #7bbcf2 transparent;
}

@media only screen and (max-width: 500px) {
  .chat-logs {
    height: 40vh;
  }
}
.cm-msg-text {
  background: white;
  padding: 10px 15px 10px 15px;
  color: #666;
  max-width: 75%;
  float: left;
  margin-left: 10px;
  position: relative;
  margin-bottom: 20px;
  border-radius: 30px;
}

.chat-msg {
  clear: both;
  background: white;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #000;
  clear: both;
  margin-bottom: 10px;
  font-size: 14px;
  color: #000;
  -webkit-animation: pop 0.25s ease-out;
          animation: pop 0.25s ease-out;
}
.chat-msg.user > .msg-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  float: left;
  width: 15%;
}
.chat-msg.self > .msg-avatar img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  float: right;
  width: 15%;
}
.chat-msg.bot-message {
  background: #ffffff;
  border-radius: 16px 16px 16px 6px;
  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 14px 18px;
  max-width: 75%;
}
.chat-msg.self > .cm-msg-text {
  float: right;
  margin-right: 10px;
  background: #5A5EB9;
  color: white;
}

/* Desktop (puedes ajustar el breakpoint) */
@media (min-width: 992px) {
  .chat-msg {
    font-size: 16px;
  }
}
@-webkit-keyframes pop {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
@keyframes pop {
  0% {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
  }
}
.cm-msg-button > ul > li {
  list-style: none;
  float: left;
  width: 50%;
}

.cm-msg-button {
  clear: both;
  margin-bottom: 70px;
}

@-webkit-keyframes dot-keyframes {
  0% {
    opacity: 0.4;
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
  50% {
    opacity: 1;
    -webkit-transform: scale(1.2, 1.2);
            transform: scale(1.2, 1.2);
  }
  100% {
    opacity: 0.4;
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
}

@keyframes dot-keyframes {
  0% {
    opacity: 0.4;
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
  50% {
    opacity: 1;
    -webkit-transform: scale(1.2, 1.2);
            transform: scale(1.2, 1.2);
  }
  100% {
    opacity: 0.4;
    -webkit-transform: scale(1, 1);
            transform: scale(1, 1);
  }
}
.loading-dots {
  text-align: center;
  width: 100%;
}
.loading-dots--dot {
  -webkit-animation: dot-keyframes 1.5s infinite ease-in-out;
          animation: dot-keyframes 1.5s infinite ease-in-out;
  background-color: #000;
  border-radius: 10px;
  display: inline-block;
  height: 10px;
  width: 10px;
  margin-left: 2px;
  margin-right: 2px;
}
.loading-dots--dot:nth-child(2) {
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;
}
.loading-dots--dot:nth-child(3) {
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

.footer .chat-msg.bot-message {
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 18px 18px 18px 6px; /* redondeo estilo burbuja */
  max-width: 70%;
  float: left;
  margin-left: 10px;
  -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #333;
}
.footer .chat-msg.bot-message.loading {
  width: 70px;
  background: transparent !important;
}

.chatbot-admin .notice {
  display: none;
}

.cbm-chat-shell .chat-box.position-right.active {
  width: 100%;
  left: 0;
  bottom: 0;
  height: 100%;
  border-radius: 0;
}

.cbm-chat-shell .chat-box-body {
  height: calc(100% - 67.7px);
}

.cbm-chat-shell .chat-logs {
  height: 100%;
}

.cbm-loader {
  padding: 30px 20px;
  text-align: center;
}

.cbm-loader-logo-wrap {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
}

.cbm-loader-logo {
  max-width: 48px;
  max-height: 48px;
  -webkit-animation: cbm-spin 1.2s linear infinite;
          animation: cbm-spin 1.2s linear infinite;
}

.cbm-loader-text {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Animación de giro */
@-webkit-keyframes cbm-spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes cbm-spin {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.typing-indicator {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 4px;
  padding: 10px 14px;
}
.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #0065A8; /* color corporativo */
  border-radius: 50%;
  display: block;
  -webkit-animation: typing-bounce 1s infinite ease-in-out;
          animation: typing-bounce 1s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

@-webkit-keyframes typing-bounce {
  0%, 80%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes typing-bounce {
  0%, 80%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    -webkit-transform: translateY(-4px);
            transform: translateY(-4px);
    opacity: 1;
  }
}
.chat-box-header img {
  max-width: 60px;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 0;
}

.chat-box-header .chat-box-toggle {
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  opacity: 1;
  -webkit-transition: 0.2s;
  transition: 0.2s;
}

.chat-box-header .chat-box-toggle:hover {
  opacity: 0.8;
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.chat-box-header .header-title {
  font-size: 18px;
  font-weight: 600;
}

#chat-circle {
  background: -webkit-gradient(linear, left top, right top, from(#132f47), to(#183292));
  background: linear-gradient(90deg, #132f47 0%, #183292 100%);
}

.cbm-input-disabled {
  background-color: #f5f5f5;
}

.chat-input input[disabled],
.chat-input button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.cbm-inputbg-disabled {
  opacity: 0.6;
}