/* whatsapp.css - Botón flotante de WhatsApp premium */

.whatsapp-float {
    position: fixed;
    z-index: 1000;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

/* Posiciones */
.bottom-right { bottom: 30px; right: 30px; }
.bottom-left  { bottom: 30px; left: 30px;  }
.top-right    { top: 30px; right: 30px;    }
.top-left     { top: 30px; left: 30px;     }

/* Tamaños */
.large  { width: 70px; height: 70px; }
.medium { width: 60px; height: 60px; }
.small  { width: 50px; height: 50px; }

.whatsapp-float i {
    font-size: 38px;
    color: white;
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    background: #1e1e1e;
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    pointer-events: none;
}

/* Posición del tooltip según ubicación del botón */
.bottom-right .whatsapp-tooltip { right: 90px; top: 50%; transform: translateY(-50%); }
.bottom-left  .whatsapp-tooltip { left: 90px;  top: 50%; transform: translateY(-50%); }
.top-right    .whatsapp-tooltip { right: 90px; bottom: 50%; transform: translateY(50%); }
.top-left     .whatsapp-tooltip { left: 90px;  bottom: 50%; transform: translateY(50%); }

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animación sutil */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.4; }
}

/* Hover effect */
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float i {
        font-size: 32px;
    }

    .whatsapp-tooltip {
        font-size: 13px;
        padding: 8px 14px;
    }
}