/* CONTENEDOR */
.chatbot-container{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* BOTÓN */
.chatbot-btn{
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* CHAT */
.chatbot-chat{
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    height: 520px;
    background: #e5ddd5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
}

/* ANIMACIÓN */
@keyframes fadeIn{
    from{opacity:0; transform: translateY(20px);}
    to{opacity:1; transform: translateY(0);}
}

/* HEADER */
.chat-header{
    background: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header button{
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* BODY */
.chat-body{
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

/* MENSAJES */
.message{
    padding: 10px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 14px;
}

/* BOT */
.bot{
    background: white;
    align-self: flex-start;
}

/* USER */
.user{
    background: #dcf8c6;
    align-self: flex-end;
}

/* OPCIONES */
.option{
    background: #dcf8c6;
    cursor: pointer;
}

.option:hover{
    background: #cdebb0;
}

/* SCROLL BONITO */
.chat-body::-webkit-scrollbar{
    width: 5px;
}

.chat-body::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 10px;
}

@media (max-width: 520px) {
    .chatbot-container{
        bottom: 14px;
        right: 14px;
    }

    .chatbot-btn{
        width: 56px;
        height: 56px;
        font-size: 27px;
    }

    .chatbot-chat{
        width: calc(100vw - 28px);
        height: min(500px, calc(100vh - 28px));
        right: 14px;
        bottom: 14px;
        border-radius: 14px;
    }
}
