/* Botón flotante */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #64BD82;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button img {
    width: 40px;
    height: 40px;
    padding: 2px;
    background-color: white;
    border-radius: 50%;
}

.chat-button.elevated {
    bottom: 90px;
}

/* Widget principal */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.elevated {
    bottom: 160px;
}

.chat-header {
    background: #64BD82;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
}

.chat-actions {
    display: flex;
    gap: 10px;
}

.chat-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-actions button:hover {
    opacity: 1;
}

.chat-header .fa-times {
    font-size: 14px;
    opacity: 0.8;
    cursor: pointer;
}

.chat-body {
    background: #1a1a1a;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.chat-input-container {
    padding: 10px;
    background: #2a2a2a;
    border-radius: 0 0 15px 15px;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    background: #333;
    border-radius: 25px;
    padding: 5px 10px;
}

.chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 8px 5px;
    font-size: 14px;
}

.chat-input::placeholder {
    color: #888;
}

.chat-input:focus {
    outline: none;
}

.chat-send {
    background: #64BD82;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 5px;
}

.chat-send .fa-paper-plane {
    font-size: 12px;
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    font-size: 14px;
}

.message.user {
    margin-left: auto;
    background: #64BD82;
    padding: 12px 15px;
    border-radius: 15px 15px 0 15px;
    color: white;
}

.message.assistant {
    margin-right: auto;
    background: #2a2a2a;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 0;
    color: white;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px 15px;
    background: #2a2a2a;
    border-radius: 15px;
    margin-bottom: 15px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #64BD82;
    border-radius: 50%;
    animation: typing 1s infinite;
}

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

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chat-widget.closed .chat-body {
    display: none;
} 