/* =====================================================
   CHATBOT PÚBLICO ESTUBARRIO
===================================================== */

#publicChatbot {
    font-family: Arial, sans-serif;
}


/* =====================================================
   BOTÓN FLOTANTE
===================================================== */

.chatbot-toggle {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 62px;
    height: 62px;

    border: none;
    border-radius: 50%;

    background: #e11d48;
    color: #ffffff;

    cursor: pointer;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);

    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
}

.chatbot-icon {
    font-size: 28px;
}


/* =====================================================
   VENTANA
===================================================== */

.chatbot-window {
    position: fixed;

    right: 25px;
    bottom: 100px;

    width: 360px;

    max-width: calc(100vw - 30px);

    height: 520px;

    max-height: calc(100vh - 130px);

    background: #ffffff;

    border-radius: 18px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);

    overflow: hidden;

    z-index: 9999;

    display: none;

    flex-direction: column;
}


/* =====================================================
   HEADER
===================================================== */

.chatbot-header {
    background: #df1745;

    color: #ffffff;

    padding: 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.chatbot-header-info {
    display: flex;

    align-items: center;

    gap: 10px;
}


.chatbot-avatar {
    width: 40px;
    height: 40px;

    background: #ffffff;

    color: #df1745;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;
}


.chatbot-header strong {
    display: block;

    font-size: 15px;
}


.chatbot-header small {
    display: block;

    margin-top: 3px;

    font-size: 11px;

    opacity: 0.9;
}


.chatbot-close {
    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 28px;

    cursor: pointer;

    line-height: 1;
}


/* =====================================================
   MENSAJES
===================================================== */

.chatbot-messages {
    flex: 1;

    overflow-y: auto;

    padding: 15px;

    background: #f7f7f8;
}


.chatbot-message {
    max-width: 85%;

    padding: 10px 13px;

    margin-bottom: 10px;

    border-radius: 14px;

    font-size: 14px;

    line-height: 1.45;
}


.chatbot-message.bot {
    background: #ffffff;

    color: #333333;

    border-bottom-left-radius: 4px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


.chatbot-message.user {
    margin-left: auto;

    background: #df1745;

    color: #ffffff;

    border-bottom-right-radius: 4px;
}


/* =====================================================
   OPCIONES
===================================================== */

.chatbot-options {
    padding: 10px 12px;

    background: #ffffff;

    border-top: 1px solid #eeeeee;

    display: flex;

    flex-direction: column;

    gap: 7px;

    max-height: 180px;

    overflow-y: auto;
}


.chatbot-option {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #df1745;

    background: #ffffff;

    color: #df1745;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    text-align: left;

    transition: all 0.2s ease;
}


.chatbot-option:hover {
    background: #df1745;

    color: #ffffff;
}


/* =====================================================
   INPUT
===================================================== */

.chatbot-input-container {
    display: none;

    padding: 10px;

    border-top: 1px solid #eeeeee;

    background: #ffffff;

    align-items: center;
}


.chatbot-input-container input {
    flex: 1;

    border: 1px solid #dddddd;

    border-radius: 20px;

    padding: 9px 13px;

    outline: none;

    font-size: 13px;
}


.chatbot-input-container input:focus {
    border-color: #df1745;
}


.chatbot-input-container button {
    margin-left: 7px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: #df1745;

    color: #ffffff;

    cursor: pointer;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

    .chatbot-window {
        right: 10px;

        bottom: 85px;

        width: calc(100vw - 20px);

        height: 520px;
    }


    .chatbot-toggle {
        right: 15px;

        bottom: 15px;
    }

}
