/* chatbot.css - Estilo Burbujas tipo Messenger */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.chatbot-toggle {
    background: #0084FF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
    color: white;
    font-size: 28px;
}

.chatbot-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    background: #0073E6;
}

.chatbot-window {
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    max-height: 70vh;
    border: 1px solid #E9EBEE;
}

.chatbot-header {
    background: #F0F2F5;
    color: #050505;
    padding: 14px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #DDDFE2;
}

.chatbot-title {
    font-weight: 600;
    font-size: 16px;
}

.chatbot-close {
    cursor: pointer;
    color: #606770;
    font-size: 24px;
    padding: 4px;
    transition: all 0.2s;
}

.chatbot-close:hover {
    color: #2D88FF;
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message {
    max-width: 75%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
    animation: messageIn 0.25s ease-out;
}

.user-message {
    background: #0084FF;
    color: white;
    margin-left: auto;
    border-radius: 18px 4px 18px 18px;
}

.bot-message {
    background: #E4E6EB;
    color: #050505;
    margin-right: auto;
    border-radius: 4px 18px 18px 18px;
}

.user-message::after, .bot-message::after {
    content: "";
    position: absolute;
    bottom: -6px;
    border: 6px solid transparent;
}

.user-message::after {
    right: 0;
    border-left-color: #0084FF;
    border-right: 0;
}

.bot-message::after {
    left: 0;
    border-right-color: #E4E6EB;
    border-left: 0;
}

.chatbot-input {
    padding: 12px 16px;
    border-top: 1px solid #E9EBEE;
    display: flex;
    gap: 8px;
    background: #F0F2F5;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.chatbot-input input:focus {
    box-shadow: 0 0 0 2px #0084FF33;
}

.chatbot-input button {
    background: #0084FF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-input button:hover {
    background: #0073E6;
    transform: scale(0.98);
}

.chatbot-quick-questions {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #E9EBEE;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-question {
    background: #E4E6EB;
    color: #050505;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-question:hover {
    background: #D8DADF;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar estilo Messenger */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #BCC0C4;
    border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #F0F2F5;
}