@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
html,body{
    --display: grid;
    height: 100%;
    --place-items: center;
}
::selection{
    color: #fff;
    background: #007bff;
}
::-webkit-scrollbar{
    width: 3px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ddd;
}
::-webkit-scrollbar-thumb:hover{
    background: #ccc;
}
.wrapper{
    width: 370px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid lightgrey;
    border-top: 0px;
}
.wrapper .titlex{
    background: #007bff;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 50px;
    text-align: center;
    border-bottom: 1px solid #006fe6;
    border-radius: 5px 5px 0 0;
}
.wrapper .form{
    padding: 20px 15px;
    min-height: 320px;
    max-height: 320px;
    overflow-y: auto;
}
.wrapper .form .inbox{
    width: 100%;
    display: flex;
    align-items: baseline;
}
.wrapper .form .user-inbox{
    justify-content: flex-end;
    margin: 13px 0;
}
.wrapper .form .inbox .icon{
    height: 40px;
    width: 40px;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    background: #007bff;
}
.wrapper .form .inbox .msg-header{
    max-width: 80%;
    margin-left: 10px;
}
.form .inbox .msg-header p{
    color: #333;
    background: #efefef;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 14px;
    word-break: break-all;
}
.form .user-inbox .msg-header p{
    color: #333;
    background: #efefef;
}
.wrapper .typing-field{
    display: flex;
    height: 60px;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    background: #efefef;
    border-top: 1px solid #d9d9d9;
    border-radius: 0 0 5px 5px;
}
.wrapper .typing-field .input-data{
    height: 40px;
    width: 335px;
    position: relative;
}
.wrapper .typing-field .input-data input{
    height: 100%;
    width: 100%;
    outline: none;
    border: 1px solid transparent;
    padding: 0 80px 0 15px;
    border-radius: 3px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
}
.typing-field .input-data input:focus{
    border-color: rgba(0,123,255,0.8);
}
.input-data input::placeholder{
    color: #999999;
    transition: all 0.3s ease;
}
.input-data input:focus::placeholder{
    color: #bfbfbf;
}
.wrapper .typing-field .input-data button{
    position: absolute;
    right: 5px;
    top: 50%;
    height: 30px;
    width: 65px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    background: #007bff;
    border: 1px solid #007bff;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
.wrapper .typing-field .input-data input:valid ~ button{
    opacity: 1;
    pointer-events: auto;
}
.typing-field .input-data button:hover{
    background: #006fef;
}
/* Estilos del botón emergente */
.open-button {
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 23px;
    right: 28px;
    z-index: 1000; /* Asegúrate de que esté por encima del fondo */
}

/* Contenedor del formulario */
.form-container {
    max-width: 500px;
    padding: 10px;
    z-index: 1000; /* Asegúrate de que esté por encima del fondo */
}

/* Ventana emergente */
.chat-popup {
    position: fixed;
    bottom: 0;
    right: 15px;
    z-index: 1000; /* Asegúrate de que esté por encima del fondo */
    width: 350px;
}

/* Título de la barra de chat */
.cx-titlebar {
    background: #002473;
    font-size: 22px;
    border-radius: 16px 16px 0px 0px;
}

/* Fondo oscuro para los mensajes */
.modal-content-message {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 16px 16px 0px 0px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

/* Estilos del icono */
.cx-icon {
    float: left;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

/* Área de transcripción */
.trasncript {
    overflow-y: auto;
    height: 312px;
    font-size: 0.75em;
    line-height: 18px;
    font-weight: 300;
    padding: 0 2px;
}

/* Subida de archivos */
.file-upload {
    position: relative;
    display: inline-block;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-label.green {
    background-color: #4caf50; /* Verde */
    color: #fff;
}



/* Texto en la imagen principal */
.texto-imagen-principal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-190%, 35%);
    color: white;
    font-size: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1000; /* Asegúrate de que esté por encima de la superposición oscura */
}

.texto-imagen-principal_2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-238%, 105%);
    color: white;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 1000; /* Asegúrate de que esté por encima de la superposición oscura */
}

/* Texto en general */
.texto {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    z-index: 1000; /* Asegúrate de que esté por encima de la superposición oscura */
}