/* WHATSAPP FLUTUANTE WIDGET */

:root {
    --wa-green: #25d366;
    --wa-green-dark: #128c7e;
    --wa-shadow: rgba(37, 211, 102, 0.3);
}

.wa-floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    pointer-events: none;
}

/* Tooltip / Message */
.wa-floating-tooltip {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    max-width: 250px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    visibility: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-floating-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    width: 15px;
    height: 15px;
    background: white;
    transform: rotate(45deg);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-floating-container.active .wa-floating-tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Main Button */
.wa-floating-button {
    width: 60px;
    height: 60px;
    background-color: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 8px 20px var(--wa-shadow);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: visible;
    pointer-events: auto;
}

.wa-floating-button svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.wa-floating-button:hover {
    transform: scale(1.1);
    background-color: var(--wa-green-dark);
    box-shadow: 0 12px 25px var(--wa-shadow);
}

.wa-floating-button:hover svg {
    transform: rotate(10deg);
}

/* Wave Pulse Animation */
.wa-floating-button::before,
.wa-floating-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--wa-green);
    opacity: 0.6;
    z-index: -1;
}

.wa-floating-button::before {
    animation: wa-pulse 2s infinite;
}

.wa-floating-button::after {
    animation: wa-pulse 2s infinite 0.5s;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Bounce entrance */
.wa-floating-container {
    animation: wa-bounce-in 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes wa-bounce-in {
    0% {
        transform: scale(0) translateY(100px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Badge for "new message" feel */
.wa-floating-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #ff3b30;
    border: 2px solid white;
    border-radius: 50%;
    animation: wa-badge-pulse 1.5s infinite;
}

@keyframes wa-badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
