/* Chatbot Global Styles - Proyecto Escape */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none; /* Se activa por JS */
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.5s ease;
}

#chatbot-bubble {
    width: 65px;
    height: 65px;
    background: #ff5000; /* Coincide con var(--primary) */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 80, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #000;
    font-size: 1.6rem;
}

#chatbot-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 80, 0, 0.6);
}

#chatbot-window {
    width: 360px;
    height: 520px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: none; /* Controlado por JS */
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    margin-bottom: 20px;
    animation: chatSlideIn 0.4s ease-out;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chatbot-header {
    padding: 20px;
    background: linear-gradient(to right, #ff5000, #ff8000);
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.chatbot-close { cursor: pointer; font-size: 1.3rem; opacity: 0.7; transition: opacity 0.3s; }
.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.98rem;
    line-height: 1.45;
    animation: messageFadeIn 0.3s ease-in;
}

@keyframes messageFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.bot {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.message.user {
    background: #ff5000;
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 700;
}

.chatbot-options {
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.25);
}

.option-btn {
    background: transparent;
    border: 1px solid #ff5000;
    color: #ff5000;
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-weight: 600;
}

.option-btn:hover {
    background: #ff5000;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 80, 0, 0.4);
}

/* Custom Scrollbar */
.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }

@media (max-width: 480px) {
    #chatbot-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 100px;
        height: 480px;
    }
}
