/* Definiendo variables de estilos y estilos generales de la página */
  * {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
  }
  :root {
    /* Colore de fondo */
    --background-body: #f0f2f5;
    /* Colores de la marca */
    --color-primary-1: #264796;
    --color-primary-2: #264796;
    --color-primary-3: #002d62;
    --color-secondary-1: #727271;
    --color-gradient: linear-gradient(to right, var(--color-primary-1) , var(--color-primary-3));
    /* Sombra */
    --shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    /* Contenedores de los mensajes */
    --sent: #f0f2f586;
    --received: #daffc2;
  }

  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, 0.3);
    border-radius: 50px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 136, 136, 0.5);
    border-radius: 50px;
  }
  ::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.2);
    border-radius: 50px;
  }

  body {
    background-color: var(--background-body);
  }

  .cm_btn {
    padding: 10px 20px;
    background-color: var(--color-primary-1);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-flex;
    margin: auto;
    margin-top: 10px;
  }
/* End */

/* Estilos para el banner */
  .cm_form .cm_banner {
    background: var(--color-primary-3);
    padding: 24px 24px 0;
    border-radius: 0 0  5px 5px;
    transition: .2s; 
  }
    .cm_form .cm_banner img {
      width: 100%;
      display: block;
      margin: auto;
      border-radius: 10px;
      max-width: 400px;
      transition: .2s; 
    }
    .cm_form .cm_banner p {
      color: white;
      font-size: 13px;
      line-height: 16px;
    }
/* Fin estilos del banner */

/* Estilos para el formulario */
  .cm_form .cm_content {
    position: relative;
    top: -24px;
    background-color: white;
    box-shadow: var(--shadow);
    max-width: calc(600px - 24px);
    margin: auto;
    padding: 24px;
    border-radius: 5px;
    transition: .2s; 
  }
/* Fin estilos del formulario */

/* Estilos del campo y checkbox */
  /* Input Label */
  .cm_inputContainer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
  }
  .cm_inputContainer>.cm_input {
    background-color: transparent;
    padding: 8px 15px 10px;
    height: 40px;
    width: 100%;
    border: 1px solid #8F8F8F;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
  }
  .cm_inputContainer>.cm_input:focus,
  .cm_inputContainer>.cm_input:active { border: 1px solid var(--color-primary-2); }

  /* Float Label */
  .cm_floatLabel {
    position: relative;
    z-index: 1;
  }
  .cm_floatLabel.cm_inputContainer>label {
    position: absolute;
    left: 15px;
    top: 10px;
    pointer-events: none;
    transition: .2s;
    color: #212322;
    font-weight: 400;
  }

  .cm_floatLabel.cm_inputContainer>.cm_input::placeholder { opacity: 0; }
  .cm_floatLabel.cm_inputContainer>input:focus + label,
  .cm_floatLabel.cm_inputContainer>input:not(:placeholder-shown) + label,
  .cm_floatLabel.cm_inputContainer>label.cm_floatLabelSelect {
    transform: translateY(calc(-50% - 10px));
    color: var(--color-primary-3);
    background-color: white;
    font-weight: 600;
    left: 5px;
    padding: 0 5px;
    outline: none;
    font-size: 11px;
  }

  /* Icon Label */
  .cm_iconLabel.cm_inputContainer>.cm_inputIcon {
    height: 40px;
    width: 30px;
    text-align: center;
    position: relative;
    margin-bottom: -40px;
    top: -40px;
    padding: 10px 0px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cm_iconLabel.cm_inputContainer>.cm_inputIcon div {
    display: flex;
  }
  .cm_iconLabel.cm_inputContainer>.cm_inputIcon svg { height: 15px; }
  .cm_iconLabel.cm_inputContainer>.cm_inputIcon svg path {
    fill: #8F8F8F;
    transition: .2s;
  }
  .cm_iconLabel.cm_inputContainer>.cm_input { padding: 10px 15px 10px 40px; }
  .cm_iconLabel.cm_floatLabel.cm_inputContainer>label { left: 40px; }
  .cm_iconLabel.cm_inputContainer>input:focus ~ .cm_inputIcon svg path,
  .cm_iconLabel.cm_inputContainer>input:not(:placeholder-shown) ~ .cm_inputIcon svg path {
    fill: var(--color-primary-2);
    transition: .2s;
  }
  .cm_inputCheckbox {
    padding: 10px 15px 10px 10px;
    min-height: 40px;
    width: 100%;
    /*border: 1px solid #8F8F8F;
    border-radius: 10px;
    font-size: 14px; */
    outline: none;
  }
  .cm_inputCheckbox label {
    padding: 0 0 0 10px;
    width: calc(100% - 20px);
  }
  .cm_inputCheckbox label span, .cm_inputCheckbox label a {
    color: var(--color-primary-2);
    text-decoration: none;
    cursor: pointer;
  }
  .cm_inputContainer input[type="checkbox"] {
    border: 2px solid var(--color-primary-3);
    border-radius: 50px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    appearance: none;
    outline: none;
    margin: 0;
  }
  .cm_inputContainer input[type="checkbox"]:checked,
  .cm_inputContainer input[type="checkbox"]:active {
    background-color: var(--color-primary-2) !important;
    transition: .3s;
  }
/* Fin estilos del campo y checkbox */

/* Estilos fuera de horario*/
  .cm_gradient {
    background: var(--color-primary-1) !important;
    color: white !important;
    text-align: center;
  }
  .cm_gradient img {
    height: 50px;
    margin-bottom: 10px;
  }
/* Fin estilos fuera de horario */

/* Estilos de contenedores del chat*/
#chat {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: calc(100vh - 3px);
}
#chat>div {
  height: 100%;
}
.cm_video_container {
  width: calc(100% - 400px);
  background-color: #e7e6ed;
  transition: .2s;
}
.cm_video_title {
  height: 60px;
  background: white;
  display: flex;
  align-items: center;
  flex-flow: wrap;
  padding: 15px;
}
.cm_video_title>div:first-child {
  width: calc(100% - 87px);
}
.cm_video_title>div:first-child img {
  height: 30px;
}
.cm_video_title>div:last-child {
  font-size: 14px;
  text-transform: uppercase;
  color: #8b8b8b;
  letter-spacing: 1px;
}
.cm-shadow {
  position: absolute;
  width: 100%;
  height: 7px;
  background-image: url(../assets/shadow.png);
  background-position: top;
  background-size: auto 100%;
  margin-top: -1px;
}
.cm_frame_container {
  width: 100%;
  height: calc(100% - 60px);
  /* background-image: url(../assets/Previsora.png); */
  background-size: cover;
  background-position: center;
}
.cm_video_container iframe {
  width: 100%;
  height: calc(100%);
}
.cm_chat_container {
  width: 100%;
  box-shadow: var(--shadow);
  background: white;
  transition: .2s;
}
.cm_chat_title {
  background-image: var(--color-gradient);
  height: 60px;
  display: flex;
  align-items: center;
  flex-flow: wrap;
  padding: 15px;
}
.cm_chat_title>div {
  position: relative;
  top: -6px;
}
.cm_chat_title>div:nth-child(1) .cm-icon {
  width: 40px;
  height: 40px;
  position: relative;
  background: white;
  background-image: url(../assets/LUISA.jpg);
  border-radius: 100%;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.cm_chat_title>div:nth-child(2) {
  width: calc(100% - 80px);
  color: white;
  font-weight: 600;
  padding-left: 15px;
  font-size: 18px;
}
.cm_chat_title>div:nth-child(2) span {
  display: block;
  font-size: 11px;
  font-weight: 300;
}
.cm_chat_title>div:nth-child(3) button {
  width: 25px;
  height: 25px;
  cursor: pointer;
  background: none;
  border: 0;
  margin-left: 15px;
  color: white;
  opacity: .75;
}
.cm_chat_title>div:nth-child(3) button svg {
  height: 16px;
}
.cm_chat_title>div:nth-child(3) button svg path {
  fill: white;
}

.cm_message_frame {
  height: calc(100% - 107px);
  overflow: auto;
}
.cm_frame_chat {
  width: 100%;
  height: 8%;
  background-color: var(--background-body);
  display: none;
}
.cm_messages_container {
  width: 100%;
  height: 100%;
  padding: 15px 10px;
  transition: .2s;
  overflow-x: auto;
}
.message {
  display: flex;
  margin-bottom: 10px;
  overflow: hidden;
  flex-wrap: wrap;
}
.message>div:nth-child(1) {
  display: flex;
  width: 100%;
}
.message.sent>div:nth-child(1):after,
.message.received>div:nth-child(1):before {
  content: "";
  border: 8px solid transparent;
  border-bottom: 0;
  margin-top: 0px;
  position: relative;
}
.message.sent>div {
  justify-content: flex-end;
}
.message.sent>div .chat-message-content {
  background: #e9ecf4;
  padding: 8px 13px;
  border-radius: 10px 0 10px 10px;
  max-width: 80%;
}
.message.sent>div:nth-child(1):after {
  border-top: 17px solid #e9ecf4;
  margin-left: -10px;
}
.message .chat-message-timeString {
  padding: 0 6px;
}
.message.sent .chat-message-timeString {
  text-align: right;
}
.message.received {
  justify-content: flex-start;
}
.message.received>div .chat-message-content {
  background: #264796;
  padding: 8px 13px;
  border-radius: 0px 10px 10px 10px;
  max-width: 80%;
  color: white;
}
.message.received>div .chat-message-content p a {
  color: white;
}
.message.received>div:nth-child(1):before {
  border-top: 16px solid #264796;
  margin-right: -10px;
}

.message .chat-message-timeString {
  width: 100%;
}
.message .chat-message-timeString span {
  font-size: 10px;
  color: grey;
}

.message.received>div.cm_doc:before {
  border-top: 16px solid #264796;
}
.message.sent>div.cm_doc:after {
  border-top: 16px solid #264796;
}
.cm_doc span {
  background: var(--color-primary-1);
  padding: 5px 10px;
  display: block;
  border-radius: 10px;
  color: white;
  font-size: 12px;
}

.cm_message_area {
  padding: 0 15px 15px;
}
.cm_message_area .cm_emoji_button {
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 50px;
  border: 0;
  background: none;
  cursor: pointer;
}
.cm_message_area .cm_emoji_button svg {
  height: 20px;
  position: relative;
  top: 1px;
  color: grey;
}
.cm_message_area .cm_emoji_button svg path {
  fill: grey;
}
.cm_message_area .cm_emoji_button:hover svg path {
  color: var(--color-primary-3);
  transition: .2s;
}
.emoji-picker {
  position: absolute;
  bottom: 60px;
  background: white;
  width: calc(400px - 30px);
  box-shadow: 0 0 10px -8px;
  border: 1px solid #f0f2f5;
  border-radius: 5px;
  flex-wrap: wrap;
}
div#emojiPicker button {
  height: 40px;
  font-size: 16px;
  background: none;
  border: 1px solid #f3f3f3;
  flex: 1;
  min-width: 25%;
  transition: .2s;
}
div#emojiPicker button:hover {
  font-size: 18px;
  cursor: pointer;
  border: 1px solid var(--color-primary-3);
  border-radius: 3px;
}
.cm_message_area>div input{
  width: calc(100%);
  overflow: auto;
  font-size: 14px;
  border-radius: 50px;
  border: 1px solid #E2E2E2;
  background: #F4F4F4;;
  height: 35px;
  padding: 15px 45px 15px 35px;
}
.cm_message_area>div .cm_attachment {
  position: absolute;
  cursor: pointer;
  width: 35px;
  height: 35px;
  right: 16px;
  border-radius: 100%;
  background: var(--color-primary-1);
  color: white;
  display: inline-flex;
  place-content: center;
  align-items: center;
}
.cm_message_area>div .cm_attachment svg {
  height: 20px;
}
.cm_message_area>div .cm_attachment svg path {
  fill: #Fff;
}

/* Estilos de la encuesta */
  #encuesta.visible {
    display: block; /* Mostrar el div cuando tenga la clase "visible" */
  }
  #miFrame {
    width: 100%;
    height: calc(100vh - 3px);
    border: none;
  }
/* Fin estilos de la encuesta */

/* Estilos del modal */
  .cm_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
  }
  .cm_modal_content {
    background: white;
    max-width: 900px;
    margin: 24px;
    padding: 24px;
    border-radius: 5px;
    max-height: 80vh;
    overflow: auto;
    box-shadow: var(--shadow);
  }
  .cm_modal_content h6 {
    font-size: 1.15rem;
    line-height: 110%;
    margin-bottom: 15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  .cm_modal_content p {
    margin-bottom: 10px;
  }
/* Fin estilos del modal */

        @keyframes blink {
            0%, 100% {
                background-color: #ffe6e6; /* Fondo rosado */
                border-color: red;
            }
            50% {
                background-color: transparent; /* Fondo transparente */
                border-color: transparent;
            }
        }

        /* Clase para resaltar y parpadear */
        .placecolor {
            animation: blink 1s ease-in-out infinite; /* Animación infinita */
            border: 2px solid red;
            outline: none;
        }

        /* Personalización para el checkbox */
        input[type="checkbox"].placecolor {
            border: 2px solid red;
            animation: blink 1s ease-in-out infinite;
        }


/* Animaciones */

  /* Ocultar formulario */
  .cm_hideForm {
    animation-name: fadeFormcontent;
    animation-duration: 1s;
    position: fixed;
    visibility: hidden;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
  }
  @keyframes fadeFormcontent {
    0%   {
      visibility: visible;
      background: var(--background-body);
      z-index: 10;
      opacity: 1;
      left: 0;
    }
    100% {
      opacity: 0;
      visibility: visible;
      left: calc(100% - 400px);
    }
  }

  .cm_video_container {
    animation-name: fadeVideocontent;
    animation-duration: 1s;
  }
  @keyframes fadeVideocontent {
    0%   {
      width: 0;
    }
    100% {
      width: calc(100% - 400px);
    }
  }

  .cm_chat_container {
    animation-name: fadeChatcontent;
    animation-duration: 1s;
  }
  @keyframes fadeChatcontent {
    0%   {
      width: 0px;
    }
    100% {
      width: 100%;
    }
  }

  /* Modal */
  .cm_modal {
    animation-name: fadeModal;
    animation-duration: 0.5s;
  }
  @keyframes fadeModal {
    0%   {opacity: 0;}
    100% {opacity: 1;}
  }
  .cm_modal_content {
    animation-name: fadeModalcontent;
    animation-duration: 0.5s;
  }
  @keyframes fadeModalcontent {
    0%   {transform: scale(0);}
    100% {transform: scale(1);}
  }

  .message.sent>div, .message.sent>div:first-child:after {
    animation-name: fadeMessageSent;
    animation-duration: 0.5s;
  }
  @keyframes fadeMessageSent {
    0%   {
      position: relative;
      right: -100%;
    }
    100%   {
      position: relative;
      right: 0%;
    }
  }
  .message.received>div, .message.received>div:first-child:before {
    animation-name: fadeMessageReceived;
    animation-duration: 0.5s;
  }
  @keyframes fadeMessageReceived {
    0%   {
      position: relative;
      left: -100%;
    }
    100%   {
      position: relative;
      left: 0%;
    }
  }
  .emoji-picker {
    animation-name: fadeEmoji;
    animation-duration: 0.5s;
  }
  @keyframes fadeEmoji {
    0%   {
      bottom: 0;
      opacity: 0;
    }
    100%   {
      bottom: 60px;
      opacity: 1;
    }
  }
/* Fin animaciones */

@media only screen and (max-width: 800px) {
  .cm_video_container {
    width: 0;
    transition: .2s;
  }
  .cm_video_container * {
    display: none;
  }
  .cm_chat_container {
    width: 100%;
    height: 100%;
    transition: .2s;
  }
  .emoji-picker {
    width: calc(100% - 30px);
  }
}


.boton-chat {
  display: table;
  min-width: 110px;
  padding: 6px 12px;
  margin: 0 5px 10px;
  border: 1px solid #005ac3;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: .2s;
  text-align: center;
  color: #005ac3;
}
.boton-chat:before {
  content: '>';
  display: inline-block;
  margin-right: 5px;
  font-weight: 500;
}
.boton-chat:hover {
  background-color: #005ac3;
  color: white;
}



.helper-text {
  color: red;
  font-size: 12px;
  display: none; /* Para ocultar el mensaje de error por defecto */
}

@media only screen and (max-width: 768px) {
  .cm_form .cm_banner { padding: 0; }
  .cm_form .cm_banner img { max-width: 100%; }
  .cm_form .cm_content {
    position: relative;
    background-color: white;
    box-shadow: var(--shadow);
    max-width: calc(100vw - 24px);
    margin: -100px auto 0;
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 5px;
    top: 0;
  }
}



.container {
  position: relative;
  width: 100%;
  height: 45px; /* Altura simulada para ejemplo */
  background-color: #002d62; /* Fondo simulador */
}

.close-button {
  position: absolute;
  top: 100px;
  right: 10px; /* Posición en la esquina superior derecha */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #464646;
  border: 1px solid #464646;
  border-radius: 4px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: white;
}

.close-button:hover {
  background-color: #e0e0e0;
}











.BOT {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

#iframe-container {
    position: fixed;
    bottom: 70px;
    right: 10px;
    width: 390px;
    height: 600px;
    border: 1px solid #ccc;
    display: none;
    z-index: 10000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgb(0 0 0 / 51%);
    background: white;
    cursor: grab; /* Añadido para indicar que se puede mover */
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.boton {
    position: fixed;
    bottom: 3px;
    right: 5px;
    z-index: 10000;
    background: url('https://cloudapps.emtelco.co/yggdrasil/BOT/previsora/src/img/GUIDO-CHAT-ICON.png') no-repeat center center;
    background-size: contain;
    width: 90px;
    height: 80px;
    border: none;
    cursor: pointer;
}

.toggleButton:hover, .boton:hover {
    transform: scale(1.1);
}

.toggleButton, .boton {
    position: fixed;
    bottom: 3px;
    right: 5px;
    z-index: 10000;
    background: url('https://cloudapps.emtelco.co/yggdrasil/BOT/previsora/src/img/1.png') no-repeat center center;
    background-size: contain;
    width: 90px;
    height: 80px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
}

.container {
    position: relative;
    width: 100%;
    height: 45px;
    background-color: #002d62;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
   
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.close-button:hover {
    background-color: #e0e0e0;
}

/* /* Estilo para los botones por defecto */ */
/* .quick-reply { */
  /* cursor: pointer; */
  /* opacity: 1; */
  /* transition: opacity 0.3s ease; */
/* } */

/* .quick-reply.disabled { */
  /* pointer-events: none; /* Deshabilitar eventos de puntero */ */
  /* opacity: 0.5; /* Baja opacidad para indicar que el botón está bloqueado */ */
  /* cursor: not-allowed; /* Cambiar el cursor para indicar que no se puede hacer clic */ */
/* } */
