/* Estilos del Asistente */
.asistente {
    position: fixed;
    z-index: 100;
    bottom: 16px;
    right: 16px;
    margin: 0px auto;
    padding: 0px 5px;
}

.asistente--shake {
    animation: shake 700ms linear;
}

@keyframes shake {
    0% {
        translate: 0px -20px;
    }
    25% {
        translate: 0px 0px;
    }
    50% {
        translate: 0px -10px;
    }
    100% {
        translate: 0px 0px;
    }
}

.msg__cta {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white-color);
    color: var(--bg-blue);
    width: 190px;
    height: 36px;
    inset: 0px 0px 0px auto;
    box-shadow: 0px 3px 8px 2px #00000080;
    margin: auto;
    border-radius: 1rem;
    border-bottom-right-radius: 0px;
    transform-origin: bottom;
    opacity: 0;
    translate: 0px 100vh;
    transition: all 100ms ease-in-out 0s;
}

.asistente:hover .msg__cta{
    opacity: 1;
    translate: 0px -12vh;
}

.asistente:not(:hover) .msg__cta{
    animation: showCta 3.5s 3s linear forwards;
}

@keyframes showCta{
    0%{
        opacity: 0.5;
    }

    10%{
        opacity: 1;
        translate: 0px -12vh;
    }

    95%{
        opacity: 1;
        translate: 0px -12vh;
    }

    100%{
        opacity: 0;
        translate: 0px 0vh;
    }
}


.respondiendo {
    transform-origin: left;
    transition: all 300ms ease 0s;
    height: 0px;
    translate: -100vw 0px;
    opacity: 0;
}

.respondiendo--show {
    translate: 0vw 0px;
    opacity: 1;
}

/* ********************************************************************************** */
/* Estilos para el contenedor del Asistente */
.asistente-contenedor {
    inset: auto 2.5px 5px auto;
    height: calc(100% - 10%);
    width: 98%;
    transform-origin: bottom;
    scale: 1 0;
    max-width: 420px;
    background-color: var(--white-color);
    border-radius: 0.5rem;
    transition: all 100ms ease;
    border: transparent;
    scroll-behavior: smooth;
}
.asistente-contenedor::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}
.asistente-contenedor--show {
    scale: 1 1;
}

/* ********************************************************************************** */

/* Estilos para el header de botones de la parte superior del asistente */
.contenedor-header-botones {
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    display: flex;
    padding: 0.5rem;
    background-color: var(--bg-blue);
    border-radius: 0.5rem 0.5rem 0px 0px;
}
.espera {
    display: flex;
    width: 100%;
}
.espera span {
    margin: auto;
    color: var(--white-color);
    text-align: center;
}
.espera #asistente-span-respuesta {
}

/* Boton cerrar Asistente */
.cerrar-asistente {
    border: 2px solid transparent;
    background-color: transparent;
    color: var(--white-color);
    padding: 5px 0.5rem;
    cursor: pointer;
    border-radius: 0.3rem;
    transition: all 0.1s ease-in-out;
}
.cerrar-asistente:hover,
.cerrar-asistente:active {
    background-color: var(--white-color);
    border: 2px solid var(--white-color);
    color: var(--bg-blue);
}

/* Estilos Contenedor de Respuestas del Asistente y el Usuario */
.asistenete-contenedor-respuestas {
    padding: 8px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: absolute;
    inset: 45px 0px 60px 0px;
}
/* Estilos para el background negro semi transparente */
.glass {
    position: absolute;
    top: 45px;
    right: 0px;
    bottom: 60px;
    left: 0px;
    background-color: black;
    opacity: 0.4;
}

/* Contenedor de la imagen y respuesta del Bot */
.asistenete-respuesta {
    display: flex;
    align-items: end;
}

.content__ops {
    display: flex;
    justify-content: space-evenly;
    padding: 2.5px 0px;
    position: relative;
}

.content__ops--disable::after {
    content: "";
    position: absolute;
    background: #e5e7ebb3;
    inset: 0px;
    height: 100%;
    width: 100%;
    border-radius: 6px;
}

/* Imagen del Bot */
.img {
    margin-right: 5px;
}

.img div {
    width: 50px;
    height: 50px;
    background-color: var(--bg-blue);
    border-radius: 50%;
}

/* Estilos para las respuestas */
.respuesta-general {
    min-width: 10%;
}

/* Respuesta del Bot */
.respuesta-bot {
    color: var(--bg-blue);
    background-color: #e5e7eb;
    padding: 0.5rem;
    border-radius: 0.5rem 0.5rem 0.5rem 0px;
    margin: 5px 5px 5px 0px;
    overflow: hidden;
    max-height: 100px;
    word-break: break-word;
}
.respuesta-bot *:is(ol, ul) {
    padding-left: 1rem;
}
.respuesta-bot a {
    background: var(--bg-blue);
    text-decoration: none;
    color: var(--white-color);
    border-radius: 6px;
    padding: 2.5px 5px;
    margin: 5px 0px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    border: none;
    text-align: center;
}

/* Respuesta del Usuario */
.usuario-respuesta {
    background-color: var(--bg-blue);
    color: var(--yellow-color);
    border-radius: 0.5rem 0.5rem 0rem 0.5rem;
    margin: 5px 5px 5px 55px;
    text-align: right;
    padding: 0.5rem;
}

/* Fin Estilos Contenedor de Respuestas del Asistente y el Usuario */

/* Estilos Contenedor de Preguntas del Usuario */

/* Contenedor Principal de las preguntas del Usuario */
.asistenete-contenedor-pregunta {
    position: absolute;
    right: 0px;
    bottom: 0px;
    left: 0px;
    color: var(--white-color);
    background-color: var(--bg-blue);
    border-radius: 0px 0px 0.5rem 0.5rem;
    padding: 0.5rem;
}
.asistenete-contenedor-pregunta input {
    outline: none;
}

/* ********************************************************************************** */
/* Contenedor de la seleccion de preguntas sugeridas */
.contenedor-seleccion {
    position: absolute;
    width: 95%;
    inset: auto 0px 65px 0px;
    color: var(--white-color);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: auto;
}

.contenedor-seleccion p {
    text-align: center;
    color: var(--bg-blue);
    padding: 0.5rem 0px;
}

/* ********************************************************************************** */
/* Estilos a seleccion de sugerencias */
.items-seleccion {
    display: grid;
}

.seleccion-respuesta {
    background-color: var(--bg-blue);
    color: var(--yellow-color);
    margin: 2px;
    padding: 10px 0.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

/* ********************************************************************************** */
/* Estilos para el boton inactivo */
.btn-inactivo {
    opacity: 0.1;
    cursor: default;
}

/* ********************************************************************************** */
/* SubContenedor de Preguntas */
.contenedor-pregunta {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-blue);
}

/* ********************************************************************************** */
/* Estilos para el "TextArea para las preguntas" */
.asistente-preguntas {
    width: 85%;
    height: 42px;
    padding: 0px 0.5rem;
    border: 0px solid var(--white-color);
    color: var(--bg-blue);
    border-radius: 0.3rem 0px 0px 0.3rem;
}

/* ********************************************************************************** */
/* Estilos boton enviar */
.boton-enviar {
    width: 15%;
    height: 42px;
    padding: 9px 0.5rem;
    border: 1px solid var(--white-color);
    border-radius: 0px 0.3rem 0.3rem 0px;
    background-color: var(--bg-blue);
    color: var(--yellow-color);
    cursor: pointer;
}

/* ********************************************************************************** */
/* Fin Estilos Contenedor de Preguntas del Usuario */

/* Estilos boton imagen */
.image-button {
    background-color: var(--white-color);
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    box-shadow: 3px 3px 6px 0px #000000, 3px 3px 6px 0px #000000;
}
.img__asis {
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

/* Utilitis */
.hidden {
    display: none;
}
.btn-a {
    background: var(--bg-blue);
    text-decoration: none;
    color: var(--white-color);
    border-radius: 6px;
    padding: 2.5px 5px;
    margin: 5px 0px;
    display: inline-block;
    cursor: pointer;
    position: relative;
    border: none;
    text-align: center;
}
.m-left-80 {
    margin-left: 80%;
}
.m-left-76 {
    margin-left: 76%;
}
.h-auto {
    max-height: inherit;
}
.w-30 {
    width: 30%;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}
