﻿/* 🎯 Estilo general para imágenes del sistema */
.imagen-destino {
    object-fit: cover;
    width: 100%;
    height: auto;
    border-radius: 0.5rem; /* Bootstrap rounded */
    transition: transform 0.3s ease-in-out, opacity 0.3s;
    opacity: 1;
    transform: scale(1);
}

    /* 🎬 Animación de entrada (fade-in) al insertar la imagen */
    .imagen-destino.animar-fadein {
        opacity: 0;
        transform: scale(0.98);
        animation: fadeInImagen 0.4s ease-out forwards;
    }

@keyframes fadeInImagen {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 💫 Efecto hover para interacción suave */
.imagen-destino:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

/* 📸 Miniatura para grillas o tarjetas */
.imagen-miniatura {
    max-height: 200px;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 🖼️ Detalle de imagen en vistas individuales */
.imagen-detalle {
    max-height: 480px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 📱 Fallback si aspect-ratio no es soportado */
@supports not (aspect-ratio: 4 / 3) {
    .imagen-miniatura {
        height: 200px;
    }

    .imagen-detalle {
        height: 480px;
    }
}
