/* Estilos para botón flotante de WhatsApp */
:root {
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --text-color: #fff;
}

/* Estilos del botón flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp-color);
    color: var(--text-color);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px var(--shadow-color);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-dark);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: var(--text-color);
}

.whatsapp-float i {
    transition: all 0.4s ease;
}

.whatsapp-float:hover i {
    transform: rotate(15deg);
}

/* Animación de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float.pulse {
    animation: pulse 1.5s infinite;
}

/* Tooltip */
.whatsapp-float::after {
    content: 'Contáctanos por WhatsApp';
    position: absolute;
    width: max-content;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    right: 70px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover::after {
    opacity: 1;
}

/* Efecto de onda al hacer clic */
.whatsapp-float:active {
    transform: scale(0.9);
}

.whatsapp-float.click-effect::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Versión móvil */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 20px;
        font-size: 25px;
    }
    
    .whatsapp-float::after {
        display: none;
    }
}