/* Estilos para el chatbot */
#mcia-chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073aa;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 9998;
}

#mcia-chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

#mcia-chat-window.mcia-hidden {
    display: none;
}

#mcia-chat-header {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mcia-close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#mcia-chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcia-chat-message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.mcia-user-message {
    background-color: #0073aa;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mcia-ai-message {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.mcia-thinking-message {
    color: #999;
    font-style: italic;
    align-self: flex-start;
}

#mcia-chat-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
}

#mcia-chat-form {
    display: flex;
}

#mcia-chat-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
}

#mcia-chat-form button {
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 8px;
    cursor: pointer;
}