
/* General styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
    z-index: 1000; /* Este valor asegura que esté sobre otros elementos */
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

/* Message Bubble */
.message-bubble {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    font-weight: bold;
    display: none;
    animation: fadeIn 0.5s;
}

.message-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #25D366 transparent transparent transparent;
}

@media (max-width: 768px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button img {
        width: 30px;
        height: 30px;
    }

    .message-bubble {
        font-size: 14px;
        padding: 10px 15px;
        bottom: 80px;
        right: 20px;
    }

    .message-bubble::after {
        bottom: -8px;
        right: 15px;
        border-width: 8px 8px 0 8px;
    }
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
