.wrapper-general-chatbot {
  position: relative;
}

.wrapper-button-chatbot {
  max-width: 212px;
  display: flex;
  padding: 12px 16px;
  align-items: center;
  gap: 8px;
  border-radius: 8px 8px 0 8px;
  border: 1px solid var(--Complementary-Green-200, #51bd9c);
  background: var(--Complementary-Green-400, #419f82);
  box-shadow: 0 0 20px 0 rgba(2, 87, 141, 0.3);
  cursor: pointer;
  position: fixed;
  right: 2.5%;
  bottom: 2.5%;
  z-index: 999;
}

.wrapper-button-chatbot span {
  color: var(--Neutral-White, #fff);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 24px */
}

.wrapper-chatbot {
  width: 432px;
  display: none;
  position: fixed;
  z-index: 9999999;
  right: 2.3%;
  bottom: 2.3%;
}

.wrapper-chatbot-header {
  display: flex;
  width: 100%;
  height: 60px;
  padding: 8px 16px;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px 8px 0 0;
  background: var(--Primary-Identity, #2373b8);
}

.wrapper-chatbot-header-logo {
  max-height: 44px;
  cursor: pointer;
}

.wrapper-chatbot-header-close {
  display: flex;
  width: 24px;
  height: 24px;
  padding: 5px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  cursor: pointer;
}

.wrapper-chatbot-header-close:hover {
  padding: 4px;
  border-radius: 100px;
  border: 0.5px solid var(--Primary-Blue-200, #bcd4e9);
  background: var(--Primary-Blue-100, #e9f1f8);
}

.wrapper-chatbot-header-close:hover img {
  width: 12px;
  height: 12px;
  filter: invert(24%) sepia(74%) saturate(2480%) hue-rotate(180deg) brightness(91%) contrast(92%);
}

.wrapper-chatbot-container {
  height: 438px;
  padding: 20px 10px 20px 20px;
  background: var(--Neutral-White, #fff);
  box-shadow: 0 0 20px 0 rgba(2, 87, 141, 0.3);
  overflow-y: scroll;
}

/* Personalización del scrollbar (WebKit) */
.wrapper-chatbot-container::-webkit-scrollbar-button {
  display: none; /* oculta las flechas arriba/abajo */
}

.wrapper-chatbot-container::-webkit-scrollbar {
  width: 8px; /* ancho del scrollbar */
}

.wrapper-chatbot-container::-webkit-scrollbar-thumb {
  background-color: #c3c3c3; /* color del "pulgar" */
  border-radius: 100px;
}

.wrapper-chatbot-container::-webkit-scrollbar-track {
  background-color: white; /* color del fondo */
}

.wrapper-message-own {
  max-width: 250px;
  float: right;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  clear: both;
}

.wrapper-message-own .wrapper-message {
  display: flex;
  padding: 10px 16px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 20px 20px 0 20px;
  background: var(--Primary-Identity, #2373b8);
  color: var(--Neutral-White, #fff);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 24px */
}

.wrapper-message-other {
  max-width: 250px;
  float: left;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  clear: both;
}

.wrapper-message-other .wrapper-message {
  display: flex;
  padding: 10px 16px;
  align-items: flex-start;
  gap: 8px;
  color: var(--Neutral-Grey-800, #474747);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 24px */
  border-radius: 20px 20px 20px 0;
  background: var(--Neutral-Grey-200, #f6f6f6);
  white-space: break-spaces;
}

.wrapper-date {
  color: var(--Neutral-Grey-700, #868686);
  text-align: right;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 21px */
}

.wrapper-chatbot-footer {
  display: flex;
  width: 100%;
  height: 72px;
  padding: 12px 16px;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--Neutral-Grey-600, #c3c3c3);
  background: var(--Neutral-Grey-200, #f6f6f6);
}

input[name=message] {
  width: 325px;
  border: none;
  background-color: transparent;
}

input[name=message]:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent; /* opcional, si también quieres quitar el borde visible */
}

.wrapper-button-send {
  display: flex;
  width: 48px;
  height: 48px;
  padding-left: 2.5px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  aspect-ratio: 1/1;
  border-radius: 100px;
  background: var(--Neutral-White, #fff);
  cursor: pointer;
}

.wrapper-button-active {
  border-radius: 100px;
  border: 1px solid var(--Primary-Blue-200, #bcd4e9);
  background: var(--Primary-Identity, #2373b8);
}

.wrapper-button-active img {
  filter: brightness(0) invert(1);
}

.spinner {
  max-width: 92px;
  float: left;
  clear: both;
  display: flex;
  padding: 10px 16px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 20px 20px 20px 0;
  background: var(--Neutral-Grey-200, #f6f6f6);
}

/* estilo de cada círculo */
.circle {
  width: 12px;
  height: 12px;
  aspect-ratio: 1/1;
  background-color: #c3c3c3; /* color inicial */
  border-radius: 50%;
  animation: pulse 1s infinite;
}

/* aplicar retraso a cada círculo */
.circle:nth-child(1) {
  animation-delay: 0s;
}

.circle:nth-child(2) {
  animation-delay: 0.2s;
}

.circle:nth-child(3) {
  animation-delay: 0.4s;
}

/* animación de cambio de color / escala */
@keyframes pulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    background-color: #c3c3c3;
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    background-color: #868686;
    opacity: 1;
  }
}
.wrapper-chatbot-close {
  display: none;
  width: 100%;
  height: 510px;
  padding: 60px 24px;
  flex-direction: column;
  align-items: center;
  gap: 199px;
  flex-shrink: 0;
  border-radius: 0 0 8px 8px;
  background: var(--Primary-Identity, #2373b8);
  border-top: 0.5px solid var(--Primary-Blue-100, #e9f1f8);
}

.wrapper-chatbot-close-title {
  width: 100%;
  float: left;
  margin-bottom: 8px;
  color: var(--Neutral-White, #fff);
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 28.8px */
}

.wrapper-chatbot-close-text {
  width: 100%;
  float: left;
  margin-bottom: 291px;
  color: var(--Neutral-White, #fff);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 21px */
}

.wrapper-chatbot-close-button {
  display: flex;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid var(--Primary-Blue-200, #bcd4e9);
  background: var(--Neutral-White, #fff);
  color: var(--Primary-Blue-500, #02578d);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%; /* 24px */
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .wrapper-chatbot {
    width: 336px;
  }
}