.lmcc-wa-container {
    position: fixed;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    display: flex;
    flex-direction: column;
}

.lmcc-wa-container.bottom-right { bottom: 20px; right: 20px; align-items: flex-end; }
.lmcc-wa-container.bottom-left  { bottom: 20px; left: 20px; align-items: flex-start; }
.lmcc-wa-container.top-right    { top: 20px; right: 20px; align-items: flex-end; flex-direction: column-reverse; }
.lmcc-wa-container.top-left     { top: 20px; left: 20px; align-items: flex-start; flex-direction: column-reverse; }

.lmcc-wa-container.top-right .lmcc-wa-chat-box, 
.lmcc-wa-container.top-left .lmcc-wa-chat-box { margin-bottom: 0; margin-top: 15px; }

.lmcc-wa-chat-box {
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    overflow: hidden;
    display: none;
    animation: lmccFadeIn 0.3s ease-out;
}

@keyframes lmccFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.lmcc-wa-header {
    background: #075E54;
    color: white;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    position: relative;
}

.lmcc-wa-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

.lmcc-wa-info strong { display: block; font-size: 16px; line-height: 1.2; }
.lmcc-wa-info span { font-size: 12px; opacity: 0.9; }

.lmcc-wa-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}
.lmcc-wa-close:hover { opacity: 1; }

.lmcc-wa-body {
    padding: 20px;
    background-color: #e5ddd5;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png'); /* Fondo patrón WA */
}

.lmcc-wa-bubble {
    background: white;
    padding: 12px;
    border-radius: 0 12px 12px 12px;
    font-size: 14px;
    color: #303030;
    position: relative;
    max-width: 90%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.lmcc-wa-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #999;
    margin-top: 5px;
}

.lmcc-wa-btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-weight: 600;
    margin: 15px;
    border-radius: 25px;
    transition: background 0.3s;
}
.lmcc-wa-btn-link:hover { background: #128C7E; color: white; }

.lmcc-wa-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lmcc-wa-button:hover { transform: scale(1.1); }

.lmcc-wa-button img { width: 35px; height: 35px; }

.lmcc-wa-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
}

@media (max-width: 768px) {
    .lmcc-wa-chat-box {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .lmcc-wa-container {
        bottom: 15px;
        right: 15px;
    }

    .lmcc-wa-chat-box {
        width: calc(100vw - 40px);
        max-width: 350px;
        position: fixed;
        bottom: 85px;
        right: 20px;
    }

    .lmcc-wa-container.bottom-left .lmcc-wa-chat-box {
        left: 20px;
        right: auto;
    }

    .lmcc-wa-header {
        padding: 12px;
    }

    .lmcc-wa-button {
        width: 55px;
        height: 55px;
    }

    .lmcc-wa-button img {
        width: 30px;
        height: 30px;
    }
}