/* === CHATBOT GNOSIS (CSS/CHATBOT.CSS) === */
#gnosis-chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}
.chatbot-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.15);
}
.chatbot-bubble:hover { transform: scale(1.1); }
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    max-height: 80vh;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    transform-origin: bottom right;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}
.chatbot-window.open { opacity: 1; transform: scale(1); pointer-events: auto; }
.chatbot-header {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chatbot-header-info h4 { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 600; }
.chatbot-header-info p { margin: 4px 0 0 0; color: #eab308; font-size: 0.8rem; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px #10b981; }
.close-chatbot { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 24px; cursor: pointer; transition: color 0.2s; }
.close-chatbot:hover { color: #fff; }
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; animation: gnChatSlide 0.3s ease forwards; }
.chat-msg.bot { align-self: flex-start; background: rgba(255,255,255,0.07); color: #e2e8f0; border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: #eab308; color: #000; font-weight: 500; border-bottom-right-radius: 4px; }
.chatbot-input-area { padding: 16px; background: rgba(0,0,0,0.2); border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 10px; }
.chatbot-input-area input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 12px 16px; border-radius: 24px; color: #fff; font-size: 0.95rem; outline: none; transition: border-color 0.2s; }
.chatbot-input-area input:focus { border-color: #eab308; }
.chatbot-input-area button { background: #eab308; color: #000; border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.chatbot-input-area button:hover { transform: scale(1.05); }
.typing-indicator { align-self: flex-start; color: rgba(255,255,255,0.5); font-size: 0.85rem; display: none; padding: 8px 16px 8px 20px; }
@keyframes gnChatSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive mobile */
@media (max-width: 480px) {
    #gnosis-chatbot-container { right: 12px; bottom: 80px; }
    .chatbot-window { width: calc(100vw - 24px); bottom: 80px; right: 0; height: 70vh; max-height: 70vh; border-radius: 16px; }
    .chatbot-bubble { width: 52px; height: 52px; }
    .chatbot-bubble svg { width: 24px; height: 24px; }
    .chatbot-header { padding: 14px 16px; }
    .chatbot-messages { padding: 14px; gap: 12px; }
    .chatbot-input-area { padding: 12px; gap: 8px; }
    .chatbot-input-area input { padding: 10px 14px; font-size: 16px; /* Prevent zoom on iOS */ }
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .chatbot-bubble,
    .chatbot-window,
    .chatbot-input-area button,
    .close-chatbot,
    .chatbot-input-area input,
    .chat-msg {
        transition: none !important;
        animation: none !important;
    }
}
