/* ============================================
   CUSTOM IMAGES FOR REVISTA AND LIBROS
   ============================================ */

/* Revista Image */
.revista-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.revista-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .revista-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .revista-img:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* Libros Image */
.libros-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.libros-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .libros-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .libros-img:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .revista-img,
    .libros-img {
        max-width: 100%;
        border-radius: 12px;
    }
}

/* Fallback for missing images */
.revista-image img[src*="revista-preview.png"],
.libros-image img[src*="libros-preview.png"] {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    min-height: 300px;
}

/* Loading state */
.revista-img:not([src]),
.libros-img:not([src]) {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.revista-img:not([src])::before,
.libros-img:not([src])::before {
    content: 'Imagen no disponible';
    color: white;
    font-size: 1rem;
}