/* ==================== BOTÓN FLOTANTE DE WHATSAPP ==================== */
/* Asegura que el botón flotante de WhatsApp siempre esté por encima de todo */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999 !important;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button i {
    font-size: 32px;
    color: #ffffff;
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Tooltip opcional */
.whatsapp-float .whatsapp-tooltip {
    display: none !important;
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #333;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float .whatsapp-tooltip::after {
    display: none !important;
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid #ffffff;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    display: none !important;
    opacity: 0;
    visibility: hidden;
}

/* Variante con texto */
.whatsapp-float-expanded .whatsapp-button {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
    gap: 10px;
}

.whatsapp-button-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: none;
}

.whatsapp-float-expanded .whatsapp-button-text {
    display: block;
}

/* ==================== RESPONSIVE WHATSAPP ==================== */

/* Tablets horizontales (1024px - 1199px) */
@media (max-width: 1199px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }

    .whatsapp-button {
        width: 58px;
        height: 58px;
    }

    .whatsapp-button i {
        font-size: 30px;
    }
}

/* Tablets verticales (768px - 1023px) */
@media (max-width: 1023px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
        box-shadow: 0 3px 18px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-button i {
        font-size: 28px;
    }

    .whatsapp-float .whatsapp-tooltip {
        font-size: 13px;
        padding: 8px 12px;
        right: 70px;
    }
}

/* Móviles grandes (600px - 767px) */
@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 25px;
        right: 20px;
    }

    .whatsapp-button {
        width: 54px;
        height: 54px;
    }

    .whatsapp-button i {
        font-size: 27px;
    }

    .whatsapp-float .whatsapp-tooltip {
        display: none;
    }
}

/* Móviles estándar (480px - 599px) */
@media (max-width: 599px) {
    .whatsapp-float {
        bottom: 25px;
        right: 15px;
    }

    .whatsapp-button {
        width: 52px;
        height: 52px;
    }

    .whatsapp-button i {
        font-size: 26px;
    }
}

/* Móviles pequeños (menos de 480px) */
@media (max-width: 479px) {
    .whatsapp-float {
        bottom: 20px;
        right: 15px;
    }

    .whatsapp-button {
        width: 54px;
        height: 54px;
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }

    .whatsapp-button i {
        font-size: 28px;
    }
}

/* Móviles muy pequeños (menos de 375px) */
@media (max-width: 374px) {
    .whatsapp-float {
        bottom: 18px;
        right: 12px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button i {
        font-size: 26px;
    }
}