/* Estilos para el botón flotante de WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 40px; /* Posición más arriba */
    right: 20px;
    width: 70px; /* Más grande */
    height: 70px; /* Más grande */
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: scale(1);
    opacity: 1;
}

.floating-whatsapp .svg-icon {
    width: 40px; /* Icono más grande */
    height: 40px; /* Icono más grande */
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Animaciones para el scroll */
.floating-whatsapp.hidden {
    transform: scale(0.8);
    opacity: 0.7;
}

.floating-whatsapp.visible {
    transform: scale(1);
    opacity: 1;
}

.floating-whatsapp.bounce {
    animation: whatsapp-bounce 0.5s ease;
}

/* Animación de giro completo */
.floating-whatsapp.rotate {
    animation: whatsapp-rotate 1s ease;
}

@keyframes whatsapp-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes whatsapp-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Estilos para el tooltip */
.floating-whatsapp .tooltip {
    position: absolute;
    right: 70px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-whatsapp:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 60px; /* Más grande que antes pero adaptado a móvil */
        height: 60px; /* Más grande que antes pero adaptado a móvil */
        bottom: 30px; /* Más arriba */
        right: 15px;
    }
    
    .floating-whatsapp .svg-icon {
        width: 35px; /* Icono adaptado */
        height: 35px; /* Icono adaptado */
    }
    
    .floating-whatsapp .tooltip {
        display: none;
    }
}