.dropdown-menu {
  z-index: 1001;
}
#chatbox,
#chatbox li,
#chatbox p {
  font-family: Poppins-light;
  font-size: 14px;
  color: #11101a;
  line-height: 1.4;
}
#chatbox b,
#chatbox strong {
  color: #1f2935;
  font-family: "Poppins-medium";
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
#chatbox .user-message p {
  color: #fff;
}
#chat-content {
  font-family: Poppins-light;
}
#search-div-chatbot li + li,
#chatbox li + li {
  margin-top: 10px;
}
#chatbox p + ol {
  margin-top: 10px;
}
#chatbox p + p {
  margin-top: 10px;
}
#chatbox p + ul {
  margin-top: 10px;
}
#chatbox ol {
  padding-left: 0rem;
}
.bot-message p {
  margin-bottom: 0;
}
ol + ul {
  padding-left: 4rem;
}
.numeracion-text-bot + ul {
  padding-left: 2.5rem;
}
.feedback-buttons {
  display: flex;
  justify-content: end;
}

.feedback-buttons button {
  width: auto;
  padding: 5px 6px;
  background-color: transparent;
  border: none;
  color: #292e34 !important;
  font-size: 17px;
}

.feedback-buttons button:hover,
.feedback-buttons button:focus {
  background: transparent !important;
  background-color: transparent !important;
}
.message-feedback .feedback-inner {
  width: 100%;
}
.message-feedback .feedback-buttons {
  justify-content: flex-start;
}
.dropup.feedback-sources-dropup {
  display: inline-flex;
  position: relative !important;
}
.feedback-sources-button {
  width: auto;
  padding: 5px 6px;
  background-color: transparent;
  border: none;
  color: #292e34 !important;
  font-size: 17px;
  line-height: 1;
}
.feedback-sources-button:hover,
.feedback-sources-button:focus {
  background: transparent !important;
  background-color: transparent !important;
}
.feedback-sources-dropup .chatbot-feedback-sources-menu {
  top: auto !important;
  bottom: 100% !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  margin-bottom: 0.5rem;
  padding: 8px !important;
  border: none !important;
  border-radius: 12px;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: 0 0.125rem 1.25rem rgb(0 0 0 / 8%) !important;
  max-height: min(360px, calc(100vh - 120px));
  overflow-x: hidden;
  overflow-y: auto;
}

.dropwdown-fuentes.chatbot-feedback-sources-menu.show {
  max-height: min(360px, calc(100vh - 120px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.dropwdown-fuentes.chatbot-feedback-sources-menu.show::-webkit-scrollbar {
  width: 10px;
}

.dropwdown-fuentes.chatbot-feedback-sources-menu.show::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 8px;
}

.dropwdown-fuentes.chatbot-feedback-sources-menu.show::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: content-box;
}

.dropwdown-fuentes.chatbot-feedback-sources-menu.show::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
  border: 3px solid transparent;
  background-clip: content-box;
}
.chatbot-ticket-feedback-btn {
  margin-left: auto;
  flex-shrink: 0;
}
#chat-toggle-button {
  bottom: 25px;
  right: 41px;
  padding: 10px 20px;
  width: fit-content;
  height: fit-content;
}
#chatbot-container {
  background-color: #fff !important;
}
.bot-message-container {
  background-color: #f5f5f5;
}
#chatbot-container {
  display: flex;
  flex-direction: column;
  height: 640px;
  right: 40px;
}
#chat-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chatbox {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
.chatbot-user-enter-text {
  font-family: Poppins-light;
  font-size: 14px;
  width: 100%;
  resize: none;
  overflow-y: auto;
  line-height: 1.4em;
  padding: 8px;
}
.feedback-message-container button:hover {
  background-color: #fff !important;
}
.chat-footer {
  padding-top: 0.6rem;
}
@media (max-width: 1366px) {
  #chatbox {
    background-color: #fff !important;
  }
  .chat-footer {
    box-shadow: none !important;
  }
  .bot-message-container {
    min-width: 100%;
  }
}
@media (min-width: 1366px) {
  .chat-nav {
    padding: 0.65rem 0.5rem 0.5rem 0.5rem;
  }
  #chat-content {
    height: 585px;
  }
  .chat-footer {
    padding-top: 1rem;
  }
}
@media (max-width: 530px) {
  #chat-toggle-button {
    right: 25px !important;
  }
}

.chat-nav-icon-container {
  background-color: #1f2937;
  margin-left: 10px;
  padding: 8px 14px;
  border-radius: 0.8rem;
}
.chat-nav-title-text {
  color: #1f2937;
  font-family: "Poppins-medium";
  font-size: 15px;
}
.chat-nav .bt-menu,
.chat-bt-submenu {
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0.8rem !important;
  color: #212529;
}
.chat-bt-submenu:hover {
  background-color: transparent !important;
}
.chat-nav button:hover {
  background-color: #e4e4e4;
  color: #212529;
}
.chat-nav button i {
  color: #14161a;
}
#chatbot-icon.bi-chat {
  background: transparent;
  color: inherit;
}
.chat-icon-container:has(#chatbot-icon.bi-x-lg) {
  background-color: #1f2937 !important;
  color: #fff;
}
.chat-nav-dropdown .dropdown-item {
  background-color: #fff !important;
}
.chat-nav-dropdown .dropdown-item i {
  background-color: #fff !important;
  font-size: 10px;
}
.chat-nav-dropdown .dropdown-item .bi.bi-eraser {
  font-size: 14px;
}
.chat-nav-dropdown .dropdown-item:hover i {
  color: #df3f49;
}
#chatbot-container.chatbot-expanded {
  height: 730px;
  width: 600px;
}
#chatbot-container.chatbot-expanded #chat-content {
  height: 554px;
}
#chatbot-container.chatbot-expanded #chatbox {
  height: 554px;
}

@media (max-width: 1399px) {
  #chatbot-container.chatbot-expanded {
    height: 100%;
    max-height: 100%;
    width: 100%;
  }
  #chatbot-container.chatbot-expanded #chat-content {
    height: 100%;
    max-height: 100%;
  }
  #chatbot-container.chatbot-expanded #chatbox {
    height: 100%;
    max-height: 100%;
  }
}

.texto-bot-feedback {
  font-family: Poppins-medium !important;
}
.chatbot-input-container.hidden {
  display: none !important;
}
.chatbot-voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999rem;
  border: none !important;
  background: white;
  color: #555;
}
.chatbot-voice-btn:hover {
  background: #fafafa;
  color: #555;
}
.voice-hud {
  display: none;
  align-items: center;
  background-color: #fff;
  padding: 0.4rem;
  border: 1px solid #e1e1e1;
  border-radius: 999px;
  width: 100%;
}
.voice-hud.show {
  display: flex;
}
.voice-cancel {
  color: #fff;
  border-radius: 999999999px !important;
  width: 36px;
  height: 36px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e9e9e9;
  border: none !important;
}
.voice-cancel i {
  color: #343a40;
}
.voice-accept {
  color: #fff;
  border-radius: 999999999px !important;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #343a40;
  border: none !important;
}
.voice-accept i {
  color: #fff;
}
.voice-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: 14px;
  color: #fff;
  gap: 8px;
}
.voice-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}
.voice-visualizer {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
  width: 22px;
}
.voice-bar {
  width: 3px;
  min-height: 2px;
  background-color: #ff4d4d;
  border-radius: 2px;
  transition: height 80ms linear, opacity 80ms linear;
  opacity: 0.9;
}
.voice-note audio {
  width: 100%;
  min-width: 300px;
  height: 42px;
  display: block;
  border-radius: 6px;
  background: #1f232b;
  outline: none;
}
.voice-note {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.voice-note-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
  color: #bbb;
}
.chatbot-send-button {
  background: linear-gradient(90deg, #f56571, #ff3c47, #ff1840) !important;
}
#voiceStatus {
  color: #11101a;
}
.chatbot-send-button {
  margin-left: 6px;
}
.chatbot-input-container:has(#chatbotSendIcon.bi-stop-fill) #chatbotMicButton {
  pointer-events: none !important;
  opacity: 0.5 !important;
  filter: grayscale(1);
}
.chatbot-input-container:has(#chatbotSendIcon.bi-stop-fill)
  #chatbotUploadButton {
  pointer-events: none !important;
  opacity: 0.5 !important;
  filter: grayscale(1);
}

.bot-message ol,
.search-div-chatbot ol {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
  margin-left: 0;
}
.bot-message ol > li,
.search-div-chatbot ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 38px;
  margin-bottom: 10px;
}

.bot-message ol > li::before,
.search-div-chatbot ol > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 24px;
  background-color: transparent;
  color: #1f2936;
  border-radius: 50%;
  border: none;
  text-align: center;
  line-height: 24px;
  font-size: 15px;
  font-family: "poppins-regular";
}

.feedback-success {
  color: #198754b3 !important;
  background-color: transparent !important;
  border: none !important;
}
.feedback-danger {
  color: #dc3545bf !important;
  background-color: transparent !important;
  border: none !important;
}
.chat-icon-container:has(#chatbot-icon.bi-x-lg) {
  background: #1f2937 !important;
  color: #fff;
}
.chatbot-input-container:focus-within {
  border-color: #d0d5dd;
  box-shadow: 0 0 0 4px rgba(16, 24, 40, 0.05);
  background-color: #fff;
}
.bot-message h3 {
  font-size: 15px;
  font-family: "Poppins-medium";
  margin-top: 12px;
}
.bot-message .chatbot-answer-content table {
  display: table;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 1rem;
  overflow: hidden;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.bot-message .chatbot-answer-content thead,
.bot-message .chatbot-answer-content tbody {
  display: table-row-group;
  width: 100%;
}
.bot-message .chatbot-answer-content thead {
  display: table-header-group;
}
.bot-message .chatbot-answer-content thead {
  background: #f8fafc;
}
.bot-message .chatbot-answer-content th,
.bot-message .chatbot-answer-content td {
  padding: 10px 12px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2935;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.bot-message .chatbot-answer-content th {
  font-family: "Poppins-medium";
  font-weight: 500;
  background: #f8fafc;
}
.bot-message .chatbot-answer-content td {
  font-family: Poppins-light;
  background: #fff;
}
.bot-message .chatbot-answer-content tbody tr:nth-child(even) td {
  background: #fbfcfe;
}
.bot-message .chatbot-answer-content th:last-child,
.bot-message .chatbot-answer-content td:last-child {
  border-right: 0;
}
.bot-message .chatbot-answer-content tbody tr:last-child td {
  border-bottom: 0;
}
.bot-message .chatbot-answer-content td strong {
  display: inline;
  margin: 0;
}
html[data-app-theme="dark"] .bot-message .chatbot-answer-content table {
  border-color: var(--app-dark-border, #3f3f46);
  background: var(--app-dark-surface, #171717);
  box-shadow: none;
}
html[data-app-theme="dark"] .bot-message .chatbot-answer-content thead,
html[data-app-theme="dark"] .bot-message .chatbot-answer-content th {
  background: var(--app-dark-soft, #2f2f2f);
}
html[data-app-theme="dark"] .bot-message .chatbot-answer-content th,
html[data-app-theme="dark"] .bot-message .chatbot-answer-content td {
  border-color: var(--app-dark-border, #3f3f46);
  color: var(--app-dark-text, #ececec);
}
html[data-app-theme="dark"] .bot-message .chatbot-answer-content td {
  background: var(--app-dark-surface, #171717);
}
html[data-app-theme="dark"]
  .bot-message
  .chatbot-answer-content
  tbody
  tr:nth-child(even)
  td {
  background: var(--app-dark-soft, #2f2f2f);
}
.chatbot-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .bot-message .chatbot-answer-content table {
    margin-top: 12px;
  }
  .bot-message .chatbot-answer-content th,
  .bot-message .chatbot-answer-content td {
    padding: 8px;
    font-size: 11.5px;
    line-height: 1.35;
  }
  .chatbot-related-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .chatbot-related-grid > * {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.chatbot-related-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.related-video-thumb-wrap {
  position: relative;
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}
.related-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 18px;
}
.related-video-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.video-etiqueta {
  font-size: 11px !important;
  color: #a0a0a0;
  text-transform: uppercase;
  font-family: "Poppins-medium";
}
.video-titulo {
  font-size: 13px !important;
  line-height: 1.2;
  color: #444444;
  font-family: "Poppins-medium";
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-descripcion {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-family: "poppins-light";
  line-height: 17px;
  color: #444444;
}
.related-video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ui-border);
  background-color: white;
  width: 380px;
  max-width: fit-content;
}
.related-video-card:hover {
  background: #f6f6f6;
}
.related-video-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-video-body {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.related-video-thumb-wrap {
  flex: 0 0 120px;
}
.related-video-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.chatbot-related-title {
  font-size: 15px;
}
.fuente-card {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}
.dropdown-item:hover .fuente-card {
  background: #f8fafc;
  border-color: transparent;
}
.fuente-subblock {
  font-size: 14px;
  color: #495057;
  margin-top: 0px !important;
}
.buscador-text-gradient {
  display: inline-block;
  word-break: break-word;
  line-height: 1.3;
  font-family: Poppins-semibold;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.fuente-card {
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropdown-item:hover .fuente-card,
.dropdown-item:focus .fuente-card {
  background: #f8fafc;
  border-color: transparent;
}
.fuente-icon {
  font-size: 17px;
  color: #6c757d;
  margin-top: 2px;
  flex-shrink: 0;
}
.fuente-content {
  min-width: 0;
  width: 100%;
}
.buscador-text-gradient {
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  line-height: 1.3;
  font-family: Poppins-semibold;
  font-size: 11px;
  letter-spacing: 0;
}
.fuente-subblock {
  margin-top: 4px !important;
  font-size: 14px;
  color: #495057;
  line-height: 1.4;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
}
.fuente-subblock-search {
  margin-top: -2px !important;
}
.dropwdown-fuentes li:last-child {
  margin-bottom: 0 !important;
}
.dropwdown-fuentes li + li {
  margin-top: 4px;
}
.dropwdown-fuentes li,
.dropwdown-fuentes li:hover,
.dropwdown-fuentes li:focus-within {
  background: transparent !important;
  background-color: transparent !important;
}
.dropwdown-fuentes .dropdown-item,
.dropwdown-fuentes .dropdown-item:hover,
.dropwdown-fuentes .dropdown-item:focus,
.dropwdown-fuentes .dropdown-item:active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-radius: 8px;
}
.dropwdown-fuentes {
  --bs-dropdown-link-hover-bg: transparent;
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-link-hover-color: #111827;
  --bs-dropdown-link-active-color: #111827;
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 12px;
  border: none !important;
}
.dropwdown-fuentes .dropdown-item,
.fuente-card,
.fuente-card > div,
.buscador-text-gradient,
.fuente-subblock {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-conversations-panel {
  position: absolute;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-right: 1px solid #ececec;
  z-index: 1000;
  transform: translateX(-102%);
  transition: transform 0.28s ease, opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.chat-conversations-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.chat-conversations-backdrop {
  position: absolute;
  inset: 56px 0 0 0;
  background: rgba(15, 23, 42, 0.18);
  z-index: 29;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.chat-conversations-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.chat-conversations-header {
  padding: 14px 14px 25px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.chat-conversations-title {
  font-family: "Poppins-medium";
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 10px;
}
.chat-new-conversation-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 0.99999rem;
  padding: 10px 12px;
  background: #1f2937;
  color: #fff;
  font-family: "Poppins-medium";
  font-size: 13px;
}
.chat-new-conversation-btn:hover {
  background: #111827;
  color: #fff;
}
.chat-conversations-list {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #ececec;
}
.chat-conversation-item {
  width: 100%;
  text-align: left;
  background: #fff;
  border-radius: 999rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-conversation-item:hover {
  background: #f8f8f8;
}
.chat-conversation-main {
  min-width: 0;
  flex: 1;
  padding: 14px 0px 14px 14px !important;
}
.chat-conversation-name {
  font-family: "Poppins-regular";
  font-size: 13px;
  color: #1f2937;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-conversation-date {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
.chat-conversation-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-conversation-action {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #667085;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-conversation-action:hover {
  background: #eceff3;
  color: #111827;
}
#chatbot-bt-conversations {
  min-width: 38px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 0.8rem !important;
  color: #212529;
}
#chatbot-container.conversations-open #chat-content,
#chatbot-container.conversations-open .chat-footer {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 575px) {
  .chat-conversations-panel {
    top: 54px;
    width: 100%;
  }
  .chat-conversations-backdrop {
    inset: 54px 0 0 0;
  }
}

.chat-conversation-main {
  background-color: transparent;
  border: none;
}
.fuente-subblock {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dropup .dropdown-menu.dropwdown-fuentes {
  top: auto !important;
  bottom: 100% !important;
  transform: none !important;
  margin-bottom: 0.5rem;
}
.dropup {
  position: unset !important;
}
@media (max-width: 768px) {
  .continuar-chatbot-conversacion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
    padding: 6px;
  }
  .continuar-chatbot-conversacion i {
    flex-shrink: 0;
  }
}
#chatbot-container {
  display: flex;
  flex-direction: column;
  height: 640px;
}
#chatbot-container.chatbot-expanded {
  height: 730px;
  width: 600px;
}
#chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#chatbox {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.bt-preguntar-nuevo-chatbot {
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: linear-gradient(90deg, #ec5461, #ff3c47, #dc2e4c) !important;
  font-size: 14px !important;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: Poppins-light;
  border: none;
}
.chatbot-input-container.hidden {
  display: none !important;
}
.chat-footer {
  flex-shrink: 0;
}
.chat-conversation-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-conversation-menu-trigger {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px;
}
.chat-conversation-menu-trigger:hover,
.chat-conversation-menu.is-open .chat-conversation-menu-trigger {
  background: #eceff3;
  color: #111827;
}
.chat-conversation-global-menu {
  position: fixed;
  min-width: 148px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transform-origin: top left;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 9999999999999999;
}
.chat-conversation-global-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.chat-conversation-menu-item {
  width: 100%;
  border: none;
  background: #fff;
  color: #1f2937;
  border-radius: 10px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-align: left;
}
.chat-conversation-menu-item:hover {
  background: #f3f4f6;
}
.chat-conversation-menu-item.is-danger {
  color: #dc2626;
}
.chat-conversation-menu-item.is-danger:hover {
  background: #fef2f2;
}
.chat-conversation-item.active {
  background-color: #f4f4f4;
}
.chat-conversation-item.active .chat-conversation-name {
  font-family: Poppins-medium;
  color: black;
}
.chatbot-input-container {
  position: relative;
  flex-wrap: wrap;
  display: flex;
  flex-direction: column;
}
.chatbot-input-container.drag-over {
  background: #f8f8f8 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}
.chatbot-drop-hint {
  display: none;
  position: absolute;
  inset: 6px;
  border: 2px dashed rgba(17, 16, 26, 0.25);
  border-radius: 14px;
  background: #f8f8f8;
  color: rgba(17, 16, 26, 0.65);
  font-family: Poppins-medium;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}
.chatbot-input-container.drag-over .chatbot-drop-hint {
  display: flex;
}
.chatbot-file-preview {
  display: none;
  width: 100%;
  gap: 8px;
  margin-bottom: 8px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  max-height: 170px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.chatbot-file-preview.has-files {
  display: grid !important;
}
.chatbot-file-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  font-size: 12px;
  color: #555;
}
.chatbot-file-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.chatbot-file-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chatbot-file-name {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Poppins-medium;
}
.chatbot-file-size {
  font-size: 11px;
  color: #777;
}
.chatbot-file-remove {
  flex: 0 0 auto;
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #666;
  padding: 0;
}
.chatbot-file-remove:hover {
  color: #ff3c47;
}
.chatbot-upload-btn {
  border: none;
  background: white;
  color: #555;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 4px;
  border: 1px solid #ececec;
  cursor: pointer;
}
.chatbot-upload-btn:hover {
  background: #fafafa;
}
.chatbot-ticket-open-btn {
  min-height: 34px;
  border: 1px solid #ececec;
  border-radius: 999rem;
  background: #fff;
  color: #1f2936;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  font-family: "Poppins-medium";
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.chatbot-ticket-open-btn:hover {
  background: #fafafa;
}

.chatbot-ticket-open-btn:disabled,
.chatbot-ticket-open-btn.is-submitted {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.chatbot-user-enter-text {
  resize: none;
  overflow-y: hidden;
  min-height: 24px;
  max-height: 160px;
  box-sizing: border-box;
}
.chatbot-actions-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.chatbot-actions-left,
.chatbot-actions-right {
  display: flex;
  align-items: center;
}
.chatbot-actions-right {
  gap: 4px;
}

/* =========================
       CHATBOX SCROLL SOLO CSS
    ========================= */
#chatbox {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 10px;
}
#chatbox::-webkit-scrollbar {
  width: 10px;
}
#chatbox::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 6px;
}
#chatbox::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
#chatbox::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
  border: 3px solid transparent;
  background-clip: content-box;
}

#chat-conversations-list {
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 10px;
}
#chat-conversations-list::-webkit-scrollbar {
  width: 10px;
}
#chat-conversations-list::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 6px;
}
#chat-conversations-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
#chat-conversations-list::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
  border: 3px solid transparent;
  background-clip: content-box;
}

.user-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  min-width: 0;
}

.user-message.has-images {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: hidden !important;

  width: min(
    100%,
    calc((120px * var(--image-count)) + (8px * (var(--image-count) - 1)))
  ) !important;

  max-width: 100% !important;
}

.user-message-images {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.user-message-image-btn {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: block !important;
  cursor: pointer !important;
}

.user-message-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 12px !important;
  background-color: white;
}

@media (max-width: 767.98px) {
  .user-message.has-images {
    width: 100% !important;
    max-width: 100% !important;
  }

  .user-message-images {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .user-message-image-btn {
    width: 100% !important;
    height: auto !important;
  }

  .user-message-image {
    width: 100% !important;
    height: 100% !important;
  }
}

@media (max-width: 420px) {
  .user-message-images {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.bot-message ol > li,
.search-div-chatbot ol > li {
  counter-increment: item;
  position: relative;
  padding-left: 41px;
  margin-bottom: 10px;
}

/* Popup de valoración negativa */
.chatbot-negative-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.chatbot-negative-feedback-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chatbot-negative-feedback-popover {
  position: fixed;
  left: 50%;
  top: 50%;
  bottom: auto;
  width: min(370px, calc(100vw - 32px));
  max-height: fit-content;
  overflow-y: auto;
  z-index: 2147483647;
  transform: translate(-50%, -48%) scale(0.98);
  transform-origin: center;
  padding: 14px;
}

.chatbot-ticket-popover {
  width: min(540px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
}

.chatbot-ticket-popover.is-open {
  transform: translate(-50%, -50%) scale(1) !important;
}

.chatbot-negative-feedback-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.chatbot-negative-feedback-label {
  margin: 0;
  color: var(--app-text, #111827);
  font-family: "Poppins-light";
  font-size: 14px;
  line-height: 1.35;
}

.chatbot-negative-feedback-label span {
  color: var(--app-muted, #6b7280);
  font-family: "Poppins-regular";
}

.chatbot-negative-feedback-select,
.chatbot-negative-feedback-input,
.chatbot-negative-feedback-textarea {
  width: 100%;
  border: 1px solid var(--app-border, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  color: var(--app-text, #111827);
  font-family: "Poppins-regular";
  font-size: 13px;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
}

.chatbot-negative-feedback-select {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 99rem;
}

#chatbotVoiceSelect.chatbot-negative-feedback-select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}

.chatbot-negative-feedback-input {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 99rem;
}

.chatbot-negative-feedback-textarea {
  min-height: 104px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.4;
}

.chatbot-negative-feedback-select:focus,
.chatbot-negative-feedback-input:focus,
.chatbot-negative-feedback-textarea:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.04);
}

.chatbot-ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chatbot-ticket-description {
  min-height: 160px;
}

.chatbot-ticket-hidden-field {
  display: none !important;
}

.chatbot-negative-feedback-send-btn {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 999rem;
  background: #1f2936;
  color: #fff;
  font-family: "Poppins-medium";
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.chatbot-negative-feedback-send-btn:hover {
  filter: brightness(0.97);
}

.chatbot-negative-feedback-status {
  min-height: 18px;
  margin: 0;
  text-align: center;
}

.chatbot-negative-feedback-status:empty,
.chatbot-negative-feedback-status[hidden] {
  display: none !important;
  min-height: 0;
}

html[data-app-theme="dark"] .chatbot-negative-feedback-backdrop {
  background: rgba(0, 0, 0, 0.45);
}

html[data-app-theme="dark"] .chatbot-negative-feedback-popover {
  background: var(--app-dark-surface, #171717) !important;
  border-color: var(--app-dark-border, #3f3f46) !important;
  color: var(--app-dark-text, #ececec) !important;
}

html[data-app-theme="dark"] .chatbot-negative-feedback-label {
  color: var(--app-dark-text, #ececec) !important;
}

html[data-app-theme="dark"] .chatbot-negative-feedback-label span {
  color: var(--app-dark-muted, #a3a3a3) !important;
}

html[data-app-theme="dark"] .chatbot-negative-feedback-select,
html[data-app-theme="dark"] .chatbot-negative-feedback-input,
html[data-app-theme="dark"] .chatbot-negative-feedback-textarea {
  background: var(--app-dark-soft, #2f2f2f) !important;
  color: var(--app-dark-text, #ececec) !important;
  border-color: var(--app-dark-border, #3f3f46) !important;
}

html[data-app-theme="dark"] #chatbotVoiceSelect.chatbot-negative-feedback-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 14px 14px !important;
}

html[data-app-theme="dark"] .chatbot-ticket-open-btn {
  background: var(--app-dark-soft, #2f2f2f) !important;
  color: var(--app-dark-text, #ececec) !important;
  border-color: var(--app-dark-border, #3f3f46) !important;
}

html[data-app-theme="dark"] .chatbot-ticket-open-btn:hover {
  background: var(--app-dark-hover, #3f3f46) !important;
  color: #fff !important;
}

html[data-app-theme="dark"] .chatbot-ticket-open-btn:disabled,
html[data-app-theme="dark"] .chatbot-ticket-open-btn.is-submitted {
  opacity: .55;
}

html[data-app-theme="dark"] .chatbot-negative-feedback-textarea::placeholder {
  color: var(--app-dark-muted, #a3a3a3) !important;
}
.chatbot-negative-feedback-popover.is-open {
  transform: translate(-4%, -108%) scale(1);
}

@media (max-width: 520px) {
  .chatbot-ticket-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-ticket-open-btn span {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.loader-padding{
  padding: 6px 12px;
  width: fit-content;
}
.loader {
  width: 6px;
  height: 6px;
  margin: 6px auto;
  border-radius: 50%;
  display: block;
  position: relative;
  background: #d1d5db;
  box-shadow: -10px 0 #d1d5db, 10px 0 #d1d5db;
  box-sizing: border-box;
  animation: shadowPulse 2.4s ease-in-out infinite;
}

@keyframes shadowPulse {
  0% {
    background: #d1d5db;
    box-shadow: -10px 0 #1F2937, 10px 0 #d1d5db;
  }
  33% {
    background: #1F2937;
    box-shadow: -10px 0 #d1d5db, 10px 0 #d1d5db;
  }
  66% {
    background: #d1d5db;
    box-shadow: -10px 0 #d1d5db, 10px 0 #1F2937;
  }
  100% {
    background: #d1d5db;
    box-shadow: -10px 0 #1F2937, 10px 0 #d1d5db; /* igual al 0% → sin salto */
  }
}
.bi.bi-volume-up{
  font-size: 19px;
}
.app-settings-popover-title {
    margin: 0;
    color: var(--app-text);
    font-family: 'Poppins-regular';
    font-size: 14px;
    line-height: 1.25;
    display: flex;
    align-items: center;
}
.chat-nav-dropdown .dropdown-item .bi.bi-volume-up{
  font-size: 15px;
}
