/* 🤖 Lía - Asistente LEAD Chatbot Styles */
:root {
    --primary-evergreen: #176B0C;
    --primary-light: #358527;
    --accent-lime: #F6FF32;
    --surface-bg: #F4FBF2;
    --glass-bg: rgba(244, 251, 242, 0.7);
    --on-surface: #171d18;
    --shadow-ambient: 0px 12px 32px rgba(23, 29, 24, 0.12);
}

#lia-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', sans-serif;
}

/* Floating Action Button (FAB) */
#lia-chat-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-evergreen), var(--primary-light));
    box-shadow: var(--shadow-ambient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#lia-chat-fab:hover {
    transform: scale(1.1);
}

#lia-chat-fab svg {
    fill: white;
    width: 30px;
    height: 30px;
}

/* Chat Window */
#lia-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-ambient);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#lia-chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Header */
.lia-chat-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-evergreen), var(--primary-light));
    color: white;
}

.lia-chat-header h3 {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.lia-chat-header p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

/* Messages Area */
#lia-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lia-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.lia-message.lia-bot {
    align-self: flex-start;
    background: #e9f0e7;
    color: var(--on-surface);
    border-bottom-left-radius: 4px;
}

.lia-message.lia-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-evergreen), var(--primary-light));
    color: white;
    border-bottom-right-radius: 4px;
}

/* Pulse Animation for typing */
.lia-typing {
    display: flex;
    gap: 4px;
    padding: 12px;
}

.lia-dot {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: lia-pulse 1.4s infinite ease-in-out;
}

.lia-dot:nth-child(2) { animation-delay: 0.2s; }
.lia-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes lia-pulse {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Input Area */
.lia-chat-input-container {
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

#lia-chat-input {
    flex: 1;
    background: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#lia-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-evergreen), var(--primary-light));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lia-send-btn svg {
    fill: white;
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    #lia-chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 70px;
    }
}
