/* Range Slider Custom Styling (for calculator page) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #13ec5b;
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 0 4px rgba(19, 236, 91, 0.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #cfe7d7;
    border-radius: 2px;
}

/* Firefox Range Slider */
input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #13ec5b;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 4px rgba(19, 236, 91, 0.2);
}

input[type=range]::-moz-range-track {
    background: #cfe7d7;
    border-radius: 2px;
    height: 4px;
    border: none;
}

/* Utility Classes */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Clase faltante en tailwind compilado — usada por el menú móvil */
.top-20 { top: 5rem; }

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ===== WhatsApp Floating Bubble ===== */
#whatsapp-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.50);
    z-index: 9999;
    text-decoration: none;
    /* Estado inicial: invisible y reducido */
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    pointer-events: none; /* deshabilitado mientras no es visible */
}

/* Clase activada por JS a los 3 s — fade-in con rebote */
#whatsapp-bubble.wa-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

#whatsapp-bubble:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}

#whatsapp-bubble svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
    display: block;
}

/* Móvil */
@media (max-width: 640px) {
    #whatsapp-bubble {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
    #whatsapp-bubble svg {
        width: 30px;
        height: 30px;
    }
}
/* ===================================== */

/* Lazy Loading de Productos */
.product-card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.product-card.product-loaded {
    opacity: 1;
    transform: translateY(0) scale(1);
}
