﻿/* WhatsApp Widget Styles */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    font-family: 'Montserrat', sans-serif;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

    .whatsapp-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    }

    .whatsapp-button i {
        font-size: 32px;
        color: white;
    }

.whatsapp-chat {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

    .whatsapp-chat.active {
        display: block;
    }

.whatsapp-header {
    background-color: #075E54;
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

    .whatsapp-avatar i {
        font-size: 20px;
        color: white;
    }

.whatsapp-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.whatsapp-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

    .whatsapp-close:hover {
        opacity: 1;
    }

.whatsapp-messages {
    padding: 15px;
    background-color: #E5DDD5;
    min-height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.whatsapp-received {
    background-color: white;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

    .whatsapp-received p {
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
        color: #333;
    }

.whatsapp-footer {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #E0E0E0;
}

.whatsapp-start-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
}

    .whatsapp-start-chat:hover {
        background-color: #128C7E;
        color: white;
        text-decoration: none;
    }

    .whatsapp-start-chat i {
        margin-right: 8px;
        font-size: 18px;
    }

/* Animaciones */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 15px;
        left: 15px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

        .whatsapp-button i {
            font-size: 28px;
        }

    .whatsapp-chat {
        width: 280px;
        bottom: 70px;
    }
}

@media (max-width: 480px) {
    .whatsapp-container {
        bottom: 10px;
        left: 10px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

        .whatsapp-button i {
            font-size: 24px;
        }

    .whatsapp-chat {
        width: 260px;
        bottom: 65px;
    }
}
