/* Entregamos Chatbot Styles */

#chatbot-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0073e6;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.2s;
}

#chatbot-bubble:hover {
    transform: scale(1.1);
}

#chatbot-bubble svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

#chatbot-window {
    position: fixed;
    bottom: 100px;
    width: 350px;
    max-width: 90%;
    height: 500px;
    max-height: 80vh;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}

#chatbot-window.bottom-right {
    right: 20px;
}

#chatbot-window.bottom-left {
    left: 20px;
}

.chatbot-header {
    padding: 15px;
    background-color: #0073e6;
    color: #ffffff;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header .close-chatbot {
    cursor: pointer;
    font-size: 20px;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f4f7f9;
}

.chatbot-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chatbot-message.user {
    align-items: flex-end;
}

.chatbot-message.bot {
    align-items: flex-start;
}

.chatbot-message .message-content {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    line-height: 1.5;
}

.chatbot-message.user .message-content {
    background-color: #0073e6;
    color: #ffffff;
    border-bottom-right-radius: 5px;
}

.chatbot-message.bot .message-content {
    background-color: #e9e9eb;
    color: #333;
    border-bottom-left-radius: 5px;
}

.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
}

#chatbot-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
}

#chatbot-send {
    margin-left: 10px;
    background: #0073e6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbot-send svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.chatbot-message.typing .message-content {
    padding: 10px 15px;
    background-color: #e9e9eb;
    border-radius: 20px;
    display: inline-block;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 2px;
    background-color: #9E9E9E;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
    animation: 1s blink infinite .3333s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: .6666s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: .9999s;
}

@keyframes blink {
    50% { opacity: 1; }
}
