/**********************
 paginación 2.0
***********************/

/* Loader */
#infinite-scroll-loader {
    display: none;
    width: 20px;
    height: 20px;
    margin: 2rem auto;
    border: 2px solid #e0e0e0;
    border-top-color: #999;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}
#infinite-scroll-loader.active {
    display: block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sentinel */
#scroll-sentinel {
    height: 1px;
    visibility: hidden;
}

/* Indicador de scroll */
#scroll-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.5rem 0;
    color: #999;
    font-size: 0.85rem;
}
#scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: bounceDown 1.5s ease-in-out infinite;
}
#scroll-indicator.active {
    display: flex;
}
#scroll-indicator.hidden {
    display: none !important;
}
@keyframes bounceDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Botón cargar más */
#load-more-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 200px;
    margin: 2rem auto;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
#load-more-btn:hover {
    border-color: #999;
    color: #333;
    transform: translateY(2px);
}
#load-more-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}
#load-more-btn:hover svg {
    transform: translateY(3px);
}
#load-more-btn.active {
    display: flex;
}
#load-more-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}
#load-more-btn.loading svg {
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}