/* WhatsApp Floating Button - Premium Aesthetics */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.whatsapp-float i {
    animation: whatsapp-glow 2s infinite alternate;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* Tooltip / Badge */
.whatsapp-float::after {
    content: "¡Contáctanos!";
    position: absolute;
    right: 80px;
    background: #075e54;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.whatsapp-float:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse Animation for a vibrant feeling */
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes whatsapp-glow {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    }

    to {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    }
}

/* Responsive: subir el botón por encima del bottom nav */
@media (max-width: 980px) {
    .whatsapp-float {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 16px);
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 24px;
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
        z-index: 10000;
    }

    .whatsapp-float::after {
        display: none; /* Ocultar tooltip en móvil */
    }

    .whatsapp-pulse {
        display: none; /* Menos ruido visual en móvil */
    }
}
