/* Estilos para EMPbot Chat Widget */
#empbot-chat-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #1DAA61;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: #128C7E;
}

.whatsapp-button i {
    font-size: 32px;
    color: white;
}

#empbot-chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.25),
        0 10px 20px rgba(0,0,0,0.15),
        0 0 0 1px rgba(0,0,0,0.05);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

#empbot-chat-header {
    background: #FAFAFA;
    color: #333;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

#empbot-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

#empbot-close-btn {
    background: none;
    border: none;
    color: #001738;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

#empbot-close-btn:hover {
    color: #BCCF2C;
}

#empbot-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: rgba(0, 23, 56, 0.05);
    background-image: linear-gradient(135deg, rgba(0, 23, 56, 0.05) 0%, rgba(240, 240, 240, 0.8) 100%);
}

.empbot-message {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-end;
}

.empbot-message.bot {
    justify-content: flex-start;
}

.empbot-message.user {
    justify-content: flex-end;
}

.empbot-message-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-line;
}

.empbot-message.bot .empbot-message-bubble {
    background: rgba(0, 23, 56, 0.1);
    color: #333;
    border-bottom-left-radius: 4px;
}

.empbot-message.user .empbot-message-bubble {
    background: #DCF8C6;
    color: #333;
    border-bottom-right-radius: 4px;
}

.empbot-whatsapp-button {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 10px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    width: 100%;
    justify-content: center;
}

.empbot-whatsapp-button:hover {
    background: #128C7E;
}

.empbot-whatsapp-button i {
    font-size: 16px;
}

#empbot-chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

#empbot-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 16px;
    outline: none;
}

#empbot-send-btn {
    background: #001738;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    min-width: 70px;
}

#empbot-send-btn:hover,
#empbot-send-btn:active {
    background: #BCCF2C;
}

.empbot-typing {
    display: none;
    padding: 8px 12px;
    background: rgba(0, 23, 56, 0.1);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    margin-bottom: 10px;
    max-width: 80%;
}

.empbot-typing-dots {
    display: flex;
    gap: 4px;
}

.empbot-typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: empbot-typing-animation 1.4s infinite;
}

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

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

@keyframes empbot-typing-animation {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Responsive móvil */
@media (max-width: 768px) {
    #empbot-chat-container {
        bottom: 20px;
        left: 15px;
        right: auto;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
    }

    .whatsapp-button i {
        font-size: 32px;
    }

    #empbot-chat-window {
        position: fixed;
        bottom: 90px;
        left: 10px;
        right: auto;
        width: 90vw;
        max-width: 320px;
        height: 70vh;
        max-height: 450px;
        box-shadow: 
            0 25px 50px rgba(0,0,0,0.35),
            0 15px 30px rgba(0,0,0,0.25),
            0 5px 15px rgba(0,0,0,0.15),
            0 0 0 1px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.15);
    }

    #empbot-chat-header {
        padding: 12px 15px;
    }

    #empbot-chat-header h3 {
        font-size: 15px;
    }

    #empbot-chat-messages {
        padding: 10px;
    }

    .empbot-message-bubble {
        font-size: 13px;
        max-width: 85%;
    }

    #empbot-chat-input-container {
        padding: 10px;
        gap: 8px;
    }

    #empbot-chat-input {
        padding: 8px 12px;
        font-size: 16px;
    }

    #empbot-send-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    #empbot-chat-container {
        bottom: 15px;
        left: 10px;
        right: auto;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-button i {
        font-size: 28px;
    }

    #empbot-chat-window {
        bottom: 75px;
        left: 8px;
        width: 95vw;
        max-width: 300px;
        height: 65vh;
        max-height: 400px;
        box-shadow: 
            0 30px 60px rgba(0,0,0,0.4),
            0 20px 40px rgba(0,0,0,0.3),
            0 10px 20px rgba(0,0,0,0.2),
            0 0 0 1px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.2);
    }

    #empbot-chat-header {
        padding: 10px 12px;
    }

    #empbot-chat-header h3 {
        font-size: 14px;
    }

    #empbot-chat-messages {
        padding: 8px;
    }

    .empbot-message-bubble {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 90%;
    }

    #empbot-chat-input-container {
        padding: 8px;
        gap: 6px;
    }

    #empbot-chat-input {
        padding: 6px 10px;
        font-size: 16px;
    }

    #empbot-send-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 50px;
    }
}