/**
 * Botón Flotante WhatsApp
 * Botón sticky para seguir el canal de WhatsApp
 */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: fadeInUp 0.6s ease-out;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    box-shadow:
        0 4px 20px rgba(37, 211, 102, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 6px 30px rgba(37, 211, 102, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-button:active {
    transform: translateY(-1px) scale(1.02);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon svg {
    width: 20px;
    height: 20px;
    fill: #25D366;
}

.whatsapp-text {
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Animación de pulso sutil */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.whatsapp-float {
    animation: fadeInUp 0.6s ease-out, pulse 2s ease-in-out 1s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        padding: 12px 20px;
        font-size: 14px;
        gap: 10px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    .whatsapp-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .whatsapp-text {
        font-size: 12px;
    }

    .whatsapp-icon {
        width: 22px;
        height: 22px;
    }

    .whatsapp-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Ocultar texto en pantallas muy pequeñas - solo mostrar ícono */
@media (max-width: 360px) {
    .whatsapp-text {
        display: none;
    }

    .whatsapp-button {
        padding: 12px;
        border-radius: 50%;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-icon svg {
        width: 20px;
        height: 20px;
    }
}
