/* ===============================================
   FAVORITOS EN PERFIL - MINIATURAS
   Añadido: Noviembre 2025
   =============================================== */

.favoritos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.favorito-miniatura {
    display: block;
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.favorito-miniatura:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.favorito-miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.favorito-miniatura:hover img {
    transform: scale(1.1);
}

.placeholder-favorito {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
}

.favorito-nombre {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1.2;
}

.favorito-miniatura:hover .favorito-nombre {
    opacity: 1;
}

.empty-state-small {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
}

.empty-state-small p {
    margin: 0.5rem 0;
    color: #64748b;
}

.empty-state-small .text-muted {
    font-size: 0.9rem;
    color: #94a3b8;
}

.empty-state-small a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.empty-state-small a:hover {
    text-decoration: underline;
}

/* Responsive favoritos */
@media (max-width: 768px) {
    .favoritos-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .favorito-nombre {
        font-size: 0.7rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .favoritos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}
