/* Chat con IA */
.daey-chat-container {
    position: fixed;
    bottom: 80px; /* Cambiado para no superponer con WhatsApp */
    right: 20px;
    z-index: 1000;
}

.daey-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.daey-chat-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.daey-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.daey-chat-window.active {
    display: flex;
}

.daey-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.daey-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.daey-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.daey-chat-input-container {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
}

.daey-chat-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.daey-chat-send {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.daey-chat-message {
    margin-bottom: 15px;
    display: flex;
}

.daey-chat-message.user {
    justify-content: flex-end;
}

.daey-chat-message-bubble {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.daey-chat-message.user .daey-chat-message-bubble {
    background: #667eea;
    color: white;
    border-bottom-right-radius: 5px;
}

.daey-chat-message.assistant .daey-chat-message-bubble {
    background: #f1f5f9;
    color: #4a5568;
    border-bottom-left-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .daey-chat-window {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}