#ivn-container .loader {
    font-weight: bold;
    padding: 20px;
    text-align: center;
}

#ivn-filtros {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end; 
    margin-right: 5%;
}


#ivn-filtros select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.ivn-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

@media (max-width: 900px) {
    .ivn-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ivn-list-grid {
        grid-template-columns: 1fr;
    }
}

.ivn-card-onlyimg {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ivn-card-onlyimg:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2),
        0 16px 32px rgba(0, 0, 0, 0.15);
}

.ivn-card-onlyimg:active {
    transform: translateY(0px);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.ivn-img-only {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.ivn-card-onlyimg:hover .ivn-img-only {
    transform: scale(1.05);
}


.ivn-img-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
}


.ivn-nuevo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #d63031;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.ivn-pagination {
    text-align: center;
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.ivn-page {
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.ivn-page:hover {
    background-color: #dfe6e9;
    color: #000;
}

.ivn-page.active {
    background-color: #003087;
    color: white;
    font-weight: bold;
    cursor: default;
}

.ivn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.ivn-overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* fondo negro semitransparente */
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    text-align: center;
    pointer-events: none; /* para que no bloquee el click */
    z-index: 2;
}

.ivn-card-onlyimg:hover .ivn-overlay-text {
    opacity: 1;
}