/* ==========================================
   FRUTA DORADA
   FLOATING-BUTTONS.CSS
========================================== */

.floating-buttons {
    position: fixed;
    bottom: 60px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
    transition: bottom .3s ease; /* ← agrega esta línea */
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

/* Tooltip */
.float-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 66px;
    background: var(--dark);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.float-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* WhatsApp */
.float-btn-whatsapp {
    background: #25D366;
}

.float-btn-whatsapp i {
    color: white;
    font-size: 1.5rem;
}

/* Instagram */
.float-btn-instagram {
    background: radial-gradient(circle at 30% 107%,
        #fdf497 0%, #fdf497 5%,
        #fd5949 45%, #d6249f 60%,
        #285AEB 90%);
}

.float-btn-instagram i {
    color: white;
    font-size: 1.4rem;
}

/* Pulso animado en WhatsApp */
.float-btn-whatsapp::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulse-ring 2.5s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: .5; }
    70%  { transform: scale(1.5); opacity: 0;  }
    100% { transform: scale(1.5); opacity: 0;  }
}

@media (max-width: 600px) {
    .floating-buttons {
        bottom: 24px;
        right: 20px;
    }
    .float-btn {
        width: 50px;
        height: 50px;
    }
    .float-btn::before {
        display: none;
    }
}
